Class CircleNodeShape
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
- All Implemented Interfaces:
Shape
,ArrowShape
,GraffitiShape
,GraphElementShape
,NodeShape
- Direct Known Subclasses:
SBGNCircleShape
,SourceSinkShape
public class CircleNodeShape extends CircularNodeShape
Class representing a circle.
-
Constructor Summary
Constructors Constructor Description CircleNodeShape()
The constructor creates a circle using default values. -
Method Summary
Modifier and Type Method Description void
buildShape(NodeGraphicAttribute nodeAttr)
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.int
shapeHeightCorrection()
int
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
-
CircleNodeShape
public CircleNodeShape()The constructor creates a circle using default values.
-
-
Method Details
-
getIntersection
Calculates the intersection between this shape and a line.- Specified by:
getIntersection
in interfaceNodeShape
- Specified by:
getIntersection
in classCircularNodeShape
- Parameters:
line
-- Returns:
- the intersection point or null if shape and line do not intersect.
-
buildShape
This method sets all necessary properties using the values contained within theCollectionAttribute
(like size etc.).- Specified by:
buildShape
in interfaceNodeShape
- Overrides:
buildShape
in classCircularNodeShape
- Parameters:
nodeAttr
- The attribute that contains all necessary information to construct an circle.
-
shapeHeightCorrection
public int shapeHeightCorrection() -
shapeWidthCorrection
public int shapeWidthCorrection()
-