Class PortLabelVertexView.WrapperPortLabelRenderer

java.lang.Object
java.awt.Component
java.awt.Container
javax.swing.JComponent
javax.swing.JPanel
org.processmining.contexts.util.jgraph.PortLabelVertexView.WrapperPortLabelRenderer
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, org.jgraph.graph.CellViewRenderer
Enclosing class:
PortLabelVertexView

public static class PortLabelVertexView.WrapperPortLabelRenderer extends JPanel implements org.jgraph.graph.CellViewRenderer
See Also:
  • Field Details

    • graph

      protected transient org.jgraph.JGraph graph
      Cache the current graph for drawing
    • gradientColor

      protected transient Color gradientColor
    • hasFocus

      protected transient boolean hasFocus
      Cached hasFocus and selected value.
    • selected

      protected transient boolean selected
      Cached hasFocus and selected value.
    • preview

      protected transient boolean preview
      Cached hasFocus and selected value.
  • Constructor Details

    • WrapperPortLabelRenderer

      public WrapperPortLabelRenderer()
      Constructs a renderer that may be used to render vertices.
  • Method Details

    • getRendererComponent

      public Component getRendererComponent(org.jgraph.JGraph graph, org.jgraph.graph.CellView view, boolean sel, boolean focus, boolean preview)
      Description copied from interface: org.jgraph.graph.CellViewRenderer
      Configure and return the renderer based on the passed in components. The value is typically set from messaging the graph with convertValueToString. We recommend you check the value's class and throw an illegal argument exception if it's not correct.
      Specified by:
      getRendererComponent in interface org.jgraph.graph.CellViewRenderer
      Parameters:
      graph - the graph that that defines the rendering context.
      view - the view that should be rendered.
      sel - whether the object is selected.
      focus - whether the object has the focus.
      preview - whether we are drawing a preview.
      Returns:
      the component used to render the value.
    • paint

      public void paint(Graphics g)
      Overrides:
      paint in class JComponent
    • paintSelectionBorder

      protected void paintSelectionBorder(Graphics g)
    • getPerimeterPoint

      public Point2D getPerimeterPoint(org.jgraph.graph.VertexView view, Point2D source, Point2D p)
    • installAttributes

      protected void installAttributes(org.jgraph.graph.CellView view)