Class SBGNProcessShape
java.lang.Object
org.graffiti.plugins.views.defaults.AbstractArrowShape
org.graffiti.plugins.views.defaults.RectangularNodeShape
org.graffiti.plugins.views.defaults.RectangleNodeShape
de.ipk_gatersleben.ag_nw.graffiti.plugins.shapes.SBGNProcessShape
- All Implemented Interfaces:
Shape
,ArrowShape
,GraffitiShape
,GraphElementShape
,NodeShape
,ProvidesAdditonalDrawingShapes
public class SBGNProcessShape extends RectangleNodeShape implements ProvidesAdditonalDrawingShapes
- Author:
- Tobias Czauderna
-
Constructor Summary
Constructors Constructor Description SBGNProcessShape()
-
Method Summary
Modifier and Type Method Description void
buildShape(NodeGraphicAttribute nodeGraphicAttribute)
This method sets all necessary properties using the values contained within theCollectionAttribute
.Point2D
getIntersection(Line2D line)
Calculates the intersection point between this node shape and a line.Collection<Shape>
getPostBorderShapes()
Collection<Shape>
getPreBorderShapes()
Methods inherited from class org.graffiti.plugins.views.defaults.RectangleNodeShape
contains, contains, getIntersectionOfRoundRectangleAndLine, getPathIterator, getPathIterator, shapeHeightCorrection, shapeWidthCorrection
Methods inherited from class org.graffiti.plugins.views.defaults.RectangularNodeShape
contains, contains, getBounds, getBounds2D, getRealBounds2D, getXexcess, getYexcess, intersects, intersects, setCoordinateSystem
Methods inherited from class org.graffiti.plugins.views.defaults.AbstractArrowShape
addThickness, affix, getAnchor, updateSize
-
Constructor Details
-
SBGNProcessShape
public SBGNProcessShape()
-
-
Method Details
-
buildShape
Description copied from class:RectangleNodeShape
This method sets all necessary properties using the values contained within theCollectionAttribute
. This includes- Specified by:
buildShape
in interfaceNodeShape
- Overrides:
buildShape
in classRectangleNodeShape
- Parameters:
nodeGraphicAttribute
- The attribute that contains all necessary information to construct a rectangle.
-
getIntersection
Description copied from interface:NodeShape
Calculates the intersection point between this node shape and a line. For irregularly shaped objects, the intersection that is nearest to the end point of the line is returned.- Specified by:
getIntersection
in interfaceNodeShape
- Overrides:
getIntersection
in classRectangleNodeShape
- Parameters:
line
- the line with which the intersection should be calculated.- Returns:
- the intersection point between this node shape and the line.
-
getPreBorderShapes
- Specified by:
getPreBorderShapes
in interfaceProvidesAdditonalDrawingShapes
-
getPostBorderShapes
- Specified by:
getPostBorderShapes
in interfaceProvidesAdditonalDrawingShapes
-