Class PolygonalNodeShape
java.lang.Object
org.graffiti.plugins.views.defaults.AbstractArrowShape
org.graffiti.plugins.views.defaults.RectangularNodeShape
org.graffiti.plugins.views.defaults.PolygonalNodeShape
- All Implemented Interfaces:
Shape
,ArrowShape
,GraffitiShape
,GraphElementShape
,NodeShape
- Direct Known Subclasses:
RelativePolyShape
public class PolygonalNodeShape extends RectangularNodeShape
DOCUMENT ME!
-
Constructor Summary
Constructors Constructor Description PolygonalNodeShape()
-
Method Summary
Modifier and Type Method Description void
buildShape(NodeGraphicAttribute graphics)
Shapes itself according to the graphics attribute found in the CollectionAttributegraphics
boolean
contains(double x, double y)
DOCUMENT ME!boolean
contains(double x, double y, double w, double h)
DOCUMENT ME!Rectangle
getBounds()
DOCUMENT ME!Rectangle2D
getBounds2D()
DOCUMENT ME!Polygon
getIgnorePolygon()
Point2D
getIntersection(Line2D line)
Calculates the intersection point between this node shape and a line.PathIterator
getPathIterator(AffineTransform at)
DOCUMENT ME!PathIterator
getPathIterator(AffineTransform at, double flatness)
DOCUMENT ME!boolean
intersects(double x, double y, double w, double h)
DOCUMENT ME!boolean
intersects(Rectangle2D r)
DOCUMENT ME!int
shapeHeightCorrection()
int
shapeWidthCorrection()
Methods inherited from class org.graffiti.plugins.views.defaults.RectangularNodeShape
contains, contains, getRealBounds2D, getXexcess, getYexcess, setCoordinateSystem
Methods inherited from class org.graffiti.plugins.views.defaults.AbstractArrowShape
addThickness, affix, getAnchor, updateSize
-
Constructor Details
-
PolygonalNodeShape
public PolygonalNodeShape()
-
-
Method Details
-
getBounds
DOCUMENT ME!- Specified by:
getBounds
in interfaceShape
- Overrides:
getBounds
in classRectangularNodeShape
- Returns:
- DOCUMENT ME!
-
getBounds2D
DOCUMENT ME!- Specified by:
getBounds2D
in interfaceShape
- Overrides:
getBounds2D
in classRectangularNodeShape
- Returns:
- DOCUMENT ME!
-
getIntersection
Description copied from interface:NodeShape
Calculates 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.- Parameters:
line
- the line with which the intersection should be calculated.- Returns:
- the intersection point between this node shape and the line.
- See Also:
NodeShape.getIntersection(Line2D)
-
getPathIterator
Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
getPathIterator
in interfaceShape
- Overrides:
getPathIterator
in classRectangularNodeShape
- Parameters:
at
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- See Also:
Shape.getPathIterator(java.awt.geom.AffineTransform)
-
getPathIterator
Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
getPathIterator
in interfaceShape
- Overrides:
getPathIterator
in classRectangularNodeShape
- Parameters:
at
- DOCUMENT ME!flatness
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- See Also:
Shape.getPathIterator(java.awt.geom.AffineTransform, double)
-
buildShape
Description copied from interface:NodeShape
Shapes itself according to the graphics attribute found in the CollectionAttributegraphics
- Parameters:
graphics
- theCollectionAttribute
according to which this shape is constructed.- See Also:
NodeShape.buildShape(NodeGraphicAttribute)
-
contains
public boolean contains(double x, double y)Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
contains
in interfaceShape
- Overrides:
contains
in classRectangularNodeShape
- Parameters:
x
- DOCUMENT ME!y
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- See Also:
Shape.contains(double, double)
-
contains
public boolean contains(double x, double y, double w, double h)Description copied from class:AbstractArrowShape
DOCUMENT ME!- Specified by:
contains
in interfaceShape
- Overrides:
contains
in classRectangularNodeShape
- Parameters:
x
- DOCUMENT ME!y
- DOCUMENT ME!w
- DOCUMENT ME!h
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- See Also:
Shape.contains(double, double, double, double)
-
intersects
public boolean intersects(double x, double y, double w, double h)Description copied from class:RectangularNodeShape
DOCUMENT ME!- Specified by:
intersects
in interfaceShape
- Overrides:
intersects
in classRectangularNodeShape
- Parameters:
x
- DOCUMENT ME!y
- DOCUMENT ME!w
- DOCUMENT ME!h
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
intersects
Description copied from class:RectangularNodeShape
DOCUMENT ME!- Specified by:
intersects
in interfaceShape
- Overrides:
intersects
in classRectangularNodeShape
- Parameters:
r
- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
shapeHeightCorrection
public int shapeHeightCorrection() -
shapeWidthCorrection
public int shapeWidthCorrection() -
getIgnorePolygon
-