Class JGraphShapeView
- java.lang.Object
-
- org.jgraph.graph.AbstractCellView
-
- org.jgraph.graph.VertexView
-
- org.processmining.models.jgraph.views.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
-
-
Field Summary
Fields Modifier and Type Field Description static org.processmining.models.shapes.ShapeRECTANGLE
-
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 voidcleanUp()java.awt.geom.Rectangle2DgetBounds()Returns the cached bounds for the vertex.org.processmining.models.graphbased.directed.DirectedGraphNodegetNode()java.awt.geom.Point2DgetPerimeterPoint(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.ProMShapeRenderergetRenderer()Returns a renderer for the class.org.processmining.models.graphbased.ViewSpecificAttributeMapgetViewSpecificAttributeMap()booleanisPIP()voidsetBounds(java.awt.geom.Rectangle2D bounds)Sets the bounds of thisview.-
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
-
-
-
-
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.VertexViewReturns a renderer for the class.- Overrides:
getRendererin classorg.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.VertexViewReturns 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:
getPerimeterPointin interfaceorg.jgraph.graph.CellView- Overrides:
getPerimeterPointin classorg.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:
cleanUpin interfaceorg.processmining.framework.util.Cleanable
-
isPIP
public boolean isPIP()
-
getBounds
public java.awt.geom.Rectangle2D getBounds()
Description copied from class:org.jgraph.graph.VertexViewReturns the cached bounds for the vertex.- Specified by:
getBoundsin interfaceorg.jgraph.graph.CellView- Overrides:
getBoundsin classorg.jgraph.graph.VertexView
-
setBounds
public void setBounds(java.awt.geom.Rectangle2D bounds)
Sets the bounds of thisview. Calls translateView and scaleView.- Overrides:
setBoundsin classorg.jgraph.graph.AbstractCellView- Parameters:
bounds- the new bounds for this cell view
-
-