Class JGraphShapeView

  • All Implemented Interfaces:
    java.io.Serializable, org.jgraph.graph.CellView, org.processmining.framework.util.Cleanable

    public class JGraphShapeView
    extends org.jgraph.graph.VertexView
    implements org.processmining.framework.util.Cleanable
    See Also:
    Serialized Form
    • Nested Class Summary

      • Nested classes/interfaces inherited from class org.jgraph.graph.VertexView

        org.jgraph.graph.VertexView.SizeHandle
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.processmining.models.shapes.Shape RECTANGLE  
      • Fields inherited from class org.jgraph.graph.VertexView

        bounds, defaultBounds, defaultCursors, xCursors, yCursors
      • Fields inherited from class org.jgraph.graph.AbstractCellView

        allAttributes, attributes, cell, cellEditor, childViews, groupBounds, parent
    • Constructor Summary

      Constructors 
      Constructor Description
      JGraphShapeView​(ProMGraphCell cell, boolean isPIP, org.processmining.models.graphbased.ViewSpecificAttributeMap viewSpecificAttributes)  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      void cleanUp()  
      java.awt.geom.Rectangle2D getBounds()
      Returns the cached bounds for the vertex.
      org.processmining.models.graphbased.directed.DirectedGraphNode getNode()  
      java.awt.geom.Point2D getPerimeterPoint​(org.jgraph.graph.EdgeView edge, java.awt.geom.Point2D source, java.awt.geom.Point2D p)
      Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p.
      ProMShapeRenderer getRenderer()
      Returns a renderer for the class.
      org.processmining.models.graphbased.ViewSpecificAttributeMap getViewSpecificAttributeMap()  
      boolean isPIP()  
      void setBounds​(java.awt.geom.Rectangle2D bounds)
      Sets the bounds of this view.
      • Methods inherited from class org.jgraph.graph.VertexView

        getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, setCachedBounds, update
      • Methods inherited from class org.jgraph.graph.AbstractCellView

        changeAttributes, childUpdated, createAttributeMap, getAllAttributes, getAttributes, getBounds, getCell, getCellAttributes, getCenterPoint, getChildViews, getDescendantViews, getEditor, getParentView, getRendererComponent, includeInGroupBounds, intersects, isLeaf, mergeAttributes, refresh, removeFromParent, scale, setAttributes, setCell, translate, updateGroupBounds
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Field Detail

      • RECTANGLE

        public static final org.processmining.models.shapes.Shape RECTANGLE
    • Constructor Detail

      • JGraphShapeView

        public JGraphShapeView​(ProMGraphCell cell,
                               boolean isPIP,
                               org.processmining.models.graphbased.ViewSpecificAttributeMap viewSpecificAttributes)
    • Method Detail

      • getRenderer

        public ProMShapeRenderer getRenderer()
        Description copied from class: org.jgraph.graph.VertexView
        Returns a renderer for the class.
        Overrides:
        getRenderer in class org.jgraph.graph.VertexView
        Returns:
        the renderer instance for this view
      • getPerimeterPoint

        public java.awt.geom.Point2D getPerimeterPoint​(org.jgraph.graph.EdgeView edge,
                                                       java.awt.geom.Point2D source,
                                                       java.awt.geom.Point2D p)
        Description copied from class: org.jgraph.graph.VertexView
        Returns the intersection of the bounding rectangle and the straight line between the source and the specified point p. The specified point is expected not to intersect the bounds. Note: You must override this method if you use a different renderer. This is because this method relies on the VertexRenderer interface, which can not be safely assumed for subclassers.
        Specified by:
        getPerimeterPoint in interface org.jgraph.graph.CellView
        Overrides:
        getPerimeterPoint in class org.jgraph.graph.VertexView
      • getNode

        public org.processmining.models.graphbased.directed.DirectedGraphNode getNode()
      • getViewSpecificAttributeMap

        public org.processmining.models.graphbased.ViewSpecificAttributeMap getViewSpecificAttributeMap()
      • cleanUp

        public void cleanUp()
        Specified by:
        cleanUp in interface org.processmining.framework.util.Cleanable
      • isPIP

        public boolean isPIP()
      • getBounds

        public java.awt.geom.Rectangle2D getBounds()
        Description copied from class: org.jgraph.graph.VertexView
        Returns the cached bounds for the vertex.
        Specified by:
        getBounds in interface org.jgraph.graph.CellView
        Overrides:
        getBounds in class org.jgraph.graph.VertexView
      • setBounds

        public void setBounds​(java.awt.geom.Rectangle2D bounds)
        Sets the bounds of this view. Calls translateView and scaleView.
        Overrides:
        setBounds in class org.jgraph.graph.AbstractCellView
        Parameters:
        bounds - the new bounds for this cell view