public class JGraphShapeView
extends org.jgraph.graph.VertexView
implements org.processmining.framework.util.Cleanable
Modifier and Type | Field and Description |
---|---|
static org.processmining.models.shapes.Shape |
RECTANGLE |
Constructor and Description |
---|
JGraphShapeView(ProMGraphCell cell,
boolean isPIP,
org.processmining.models.graphbased.ViewSpecificAttributeMap viewSpecificAttributes) |
Modifier and Type | Method and 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 . |
getCachedBounds, getCenterPoint, getHandle, getPerimeterPoint, setCachedBounds, update
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
public JGraphShapeView(ProMGraphCell cell, boolean isPIP, org.processmining.models.graphbased.ViewSpecificAttributeMap viewSpecificAttributes)
public ProMShapeRenderer getRenderer()
org.jgraph.graph.VertexView
getRenderer
in class org.jgraph.graph.VertexView
public java.awt.geom.Point2D getPerimeterPoint(org.jgraph.graph.EdgeView edge, java.awt.geom.Point2D source, java.awt.geom.Point2D p)
org.jgraph.graph.VertexView
getPerimeterPoint
in interface org.jgraph.graph.CellView
getPerimeterPoint
in class org.jgraph.graph.VertexView
public org.processmining.models.graphbased.directed.DirectedGraphNode getNode()
public org.processmining.models.graphbased.ViewSpecificAttributeMap getViewSpecificAttributeMap()
public void cleanUp()
cleanUp
in interface org.processmining.framework.util.Cleanable
public boolean isPIP()
public java.awt.geom.Rectangle2D getBounds()
org.jgraph.graph.VertexView
getBounds
in interface org.jgraph.graph.CellView
getBounds
in class org.jgraph.graph.VertexView
public void setBounds(java.awt.geom.Rectangle2D bounds)
view
. Calls translateView and
scaleView.setBounds
in class org.jgraph.graph.AbstractCellView
bounds
- the new bounds for this cell view