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 voidbuildShape(NodeGraphicAttribute nodeAttr)This method sets all necessary properties using the values contained within theCollectionAttribute(like size etc.).Point2DgetIntersection(Line2D line)Calculates the intersection between this shape and a line.intshapeHeightCorrection()intshapeWidthCorrection()Methods inherited from class org.graffiti.plugins.views.defaults.CircularNodeShape
contains, contains, getIntersectionsWithCircle, getIntersectionWithCircle, 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
-
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:
getIntersectionin interfaceNodeShape- Specified by:
getIntersectionin 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:
buildShapein interfaceNodeShape- Overrides:
buildShapein classCircularNodeShape- Parameters:
nodeAttr- The attribute that contains all necessary information to construct an circle.
-
shapeHeightCorrection
public int shapeHeightCorrection() -
shapeWidthCorrection
public int shapeWidthCorrection()
-