Class EllipseNodeShape
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.EllipseNodeShape
- All Implemented Interfaces:
Shape
,ArrowShape
,GraffitiShape
,GraphElementShape
,NodeShape
- Direct Known Subclasses:
DoubleEllipseShape
,MultiEllipseShape
public class EllipseNodeShape extends CircularNodeShape
Concrete class representing an ellipse.
-
Constructor Summary
Constructors Constructor Description EllipseNodeShape()
-
Method Summary
Modifier and Type Method Description Point2D
getIntersection(Line2D line)
Calculates the intersection between this ellipse and a line.int
shapeHeightCorrection()
int
shapeWidthCorrection()
Methods inherited from class org.graffiti.plugins.views.defaults.CircularNodeShape
buildShape, 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
-
EllipseNodeShape
public EllipseNodeShape()
-
-
Method Details
-
getIntersection
Calculates the intersection between this ellipse and a line.- Specified by:
getIntersection
in interfaceNodeShape
- Specified by:
getIntersection
in classCircularNodeShape
- Parameters:
line
-- Returns:
- DOCUMENT ME!
- Throws:
RuntimeException
- DOCUMENT ME!
-
shapeHeightCorrection
public int shapeHeightCorrection() -
shapeWidthCorrection
public int shapeWidthCorrection()
-