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 voidbuildShape(NodeGraphicAttribute graphics)Shapes itself according to the graphics attribute found in the CollectionAttributegraphicsbooleancontains(double x, double y)DOCUMENT ME!booleancontains(double x, double y, double w, double h)DOCUMENT ME!RectanglegetBounds()DOCUMENT ME!Rectangle2DgetBounds2D()DOCUMENT ME!PolygongetIgnorePolygon()Point2DgetIntersection(Line2D line)Calculates the intersection point between this node shape and a line.PathIteratorgetPathIterator(AffineTransform at)DOCUMENT ME!PathIteratorgetPathIterator(AffineTransform at, double flatness)DOCUMENT ME!booleanintersects(double x, double y, double w, double h)DOCUMENT ME!booleanintersects(Rectangle2D r)DOCUMENT ME!intshapeHeightCorrection()intshapeWidthCorrection()Methods inherited from class org.graffiti.plugins.views.defaults.RectangularNodeShape
contains, contains, getRealBounds2D, getXexcess, getYexcess, setCoordinateSystemMethods 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:
getBoundsin interfaceShape- Overrides:
getBoundsin classRectangularNodeShape- Returns:
- DOCUMENT ME!
-
getBounds2D
DOCUMENT ME!- Specified by:
getBounds2Din interfaceShape- Overrides:
getBounds2Din classRectangularNodeShape- Returns:
- DOCUMENT ME!
-
getIntersection
Description copied from interface:NodeShapeCalculates 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:AbstractArrowShapeDOCUMENT ME!- Specified by:
getPathIteratorin interfaceShape- Overrides:
getPathIteratorin classRectangularNodeShape- Parameters:
at- DOCUMENT ME!- Returns:
- DOCUMENT ME!
- See Also:
Shape.getPathIterator(java.awt.geom.AffineTransform)
-
getPathIterator
Description copied from class:AbstractArrowShapeDOCUMENT ME!- Specified by:
getPathIteratorin interfaceShape- Overrides:
getPathIteratorin 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:NodeShapeShapes itself according to the graphics attribute found in the CollectionAttributegraphics- Parameters:
graphics- theCollectionAttributeaccording to which this shape is constructed.- See Also:
NodeShape.buildShape(NodeGraphicAttribute)
-
contains
public boolean contains(double x, double y)Description copied from class:AbstractArrowShapeDOCUMENT ME!- Specified by:
containsin interfaceShape- Overrides:
containsin 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:AbstractArrowShapeDOCUMENT ME!- Specified by:
containsin interfaceShape- Overrides:
containsin 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:RectangularNodeShapeDOCUMENT ME!- Specified by:
intersectsin interfaceShape- Overrides:
intersectsin classRectangularNodeShape- Parameters:
x- DOCUMENT ME!y- DOCUMENT ME!w- DOCUMENT ME!h- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
intersects
Description copied from class:RectangularNodeShapeDOCUMENT ME!- Specified by:
intersectsin interfaceShape- Overrides:
intersectsin classRectangularNodeShape- Parameters:
r- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
shapeHeightCorrection
public int shapeHeightCorrection() -
shapeWidthCorrection
public int shapeWidthCorrection() -
getIgnorePolygon
-