Class SBGNCircleShape
java.lang.Object
org.graffiti.plugins.views.defaults.AbstractArrowShape
org.graffiti.plugins.views.defaults.RectangularNodeShape
org.graffiti.plugins.views.defaults.CircularNodeShape
org.graffiti.plugins.views.defaults.CircleNodeShape
de.ipk_gatersleben.ag_nw.graffiti.plugins.shapes.SBGNCircleShape
- All Implemented Interfaces:
Shape
,ArrowShape
,GraffitiShape
,GraphElementShape
,NodeShape
,ProvidesAdditonalDrawingShapes
- Direct Known Subclasses:
SBGNDissociationShape
public class SBGNCircleShape extends CircleNodeShape implements ProvidesAdditonalDrawingShapes
- Author:
- Tobias Czauderna
-
Constructor Summary
Constructors Constructor Description SBGNCircleShape()
-
Method Summary
Modifier and Type Method Description void
buildShape(NodeGraphicAttribute nodeGraphicAttribute)
This method sets all necessary properties using the values contained within theCollectionAttribute
(like size etc.).Point2D
getIntersection(Line2D line)
Calculates the intersection between this shape and a line.Collection<Shape>
getPostBorderShapes()
Collection<Shape>
getPreBorderShapes()
Methods inherited from class org.graffiti.plugins.views.defaults.CircleNodeShape
shapeHeightCorrection, shapeWidthCorrection
Methods inherited from class org.graffiti.plugins.views.defaults.CircularNodeShape
contains, contains, getIntersectionsWithCircle, getIntersectionWithCircle, getPathIterator, getPathIterator
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
-
SBGNCircleShape
public SBGNCircleShape()
-
-
Method Details
-
buildShape
Description copied from class:CircleNodeShape
This method sets all necessary properties using the values contained within theCollectionAttribute
(like size etc.).- Specified by:
buildShape
in interfaceNodeShape
- Overrides:
buildShape
in classCircleNodeShape
- Parameters:
nodeGraphicAttribute
- The attribute that contains all necessary information to construct an circle.
-
getIntersection
Description copied from class:CircleNodeShape
Calculates the intersection between this shape and a line.- Specified by:
getIntersection
in interfaceNodeShape
- Overrides:
getIntersection
in classCircleNodeShape
- Parameters:
line
- the line with which the intersection should be calculated.- Returns:
- the intersection point or null if shape and line do not intersect.
-
getPreBorderShapes
- Specified by:
getPreBorderShapes
in interfaceProvidesAdditonalDrawingShapes
-
getPostBorderShapes
- Specified by:
getPostBorderShapes
in interfaceProvidesAdditonalDrawingShapes
-