Class SBGNMultiStadiumShape
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.SBGNMultiStadiumShape
- All Implemented Interfaces:
Shape,ArrowShape,GraffitiShape,GraphElementShape,NodeShape,ProvidesAdditonalDrawingShapes
public class SBGNMultiStadiumShape extends RectangleNodeShape implements ProvidesAdditonalDrawingShapes
- Author:
- Tobias Czauderna
-
Constructor Summary
Constructors Constructor Description SBGNMultiStadiumShape()SBGNMultiStadiumShape(boolean multi) -
Method Summary
Modifier and Type Method Description voidbuildShape(NodeGraphicAttribute graphics)This method sets all necessary properties using the values contained within theCollectionAttribute.Point2DgetIntersection(Line2D line)Calculates the intersection point between this node shape and a line.Collection<Shape>getPostBorderShapes()Collection<Shape>getPreBorderShapes()intshapeHeightCorrection()intshapeWidthCorrection()Methods inherited from class org.graffiti.plugins.views.defaults.RectangleNodeShape
contains, contains, getIntersectionOfRoundRectangleAndLine, getPathIterator, getPathIteratorMethods inherited from class org.graffiti.plugins.views.defaults.RectangularNodeShape
contains, contains, getBounds, getBounds2D, getRealBounds2D, getXexcess, getYexcess, intersects, intersects, setCoordinateSystemMethods inherited from class org.graffiti.plugins.views.defaults.AbstractArrowShape
addThickness, affix, getAnchor, updateSize
-
Constructor Details
-
SBGNMultiStadiumShape
public SBGNMultiStadiumShape() -
SBGNMultiStadiumShape
public SBGNMultiStadiumShape(boolean multi)
-
-
Method Details
-
getIntersection
Description copied from interface:NodeShapeCalculates 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:
getIntersectionin interfaceNodeShape- Overrides:
getIntersectionin classRectangleNodeShape- Parameters:
line- the line with which the intersection should be calculated.- Returns:
- the intersection point between this node shape and the line.
-
buildShape
Description copied from class:RectangleNodeShapeThis method sets all necessary properties using the values contained within theCollectionAttribute. This includes- Specified by:
buildShapein interfaceNodeShape- Overrides:
buildShapein classRectangleNodeShape- Parameters:
graphics- The attribute that contains all necessary information to construct a rectangle.
-
getPreBorderShapes
- Specified by:
getPreBorderShapesin interfaceProvidesAdditonalDrawingShapes
-
getPostBorderShapes
- Specified by:
getPostBorderShapesin interfaceProvidesAdditonalDrawingShapes
-
shapeWidthCorrection
public int shapeWidthCorrection()- Specified by:
shapeWidthCorrectionin interfaceNodeShape- Overrides:
shapeWidthCorrectionin classRectangleNodeShape
-
shapeHeightCorrection
public int shapeHeightCorrection()- Specified by:
shapeHeightCorrectionin interfaceNodeShape- Overrides:
shapeHeightCorrectionin classRectangleNodeShape
-