Class RectangularNodeShape
java.lang.Object
org.graffiti.plugins.views.defaults.AbstractArrowShape
org.graffiti.plugins.views.defaults.RectangularNodeShape
- All Implemented Interfaces:
Shape,ArrowShape,GraffitiShape,GraphElementShape,NodeShape
- Direct Known Subclasses:
CircularNodeShape,PolygonalNodeShape,RectangleNodeShape
public abstract class RectangularNodeShape extends AbstractArrowShape implements NodeShape
An implementation of
NodeShape representing rectangular shapes.-
Constructor Summary
Constructors Constructor Description RectangularNodeShape() -
Method Summary
Modifier and Type Method Description booleancontains(double x, double y)DOCUMENT ME!booleancontains(double x, double y, double w, double h)DOCUMENT ME!booleancontains(Point2D p)DOCUMENT ME!booleancontains(Rectangle2D r)DOCUMENT ME!RectanglegetBounds()DOCUMENT ME!Rectangle2DgetBounds2D()DOCUMENT ME!PathIteratorgetPathIterator(AffineTransform at)DOCUMENT ME!PathIteratorgetPathIterator(AffineTransform at, double flatness)DOCUMENT ME!Rectangle2DgetRealBounds2D()Returns aRectangle2Dthat represents the encapsulatedRectangle2D, but has coordinates transformed relative to the view (instead of relative to theNodeComponent).doublegetXexcess()doublegetYexcess()booleanintersects(double x, double y, double w, double h)DOCUMENT ME!booleanintersects(Rectangle2D r)DOCUMENT ME!voidsetCoordinateSystem(CoordinateSystem coordinates)Methods inherited from class org.graffiti.plugins.views.defaults.AbstractArrowShape
addThickness, affix, getAnchor, updateSizeMethods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graffiti.plugin.view.NodeShape
buildShape, getIntersection, shapeHeightCorrection, shapeWidthCorrection
-
Constructor Details
-
RectangularNodeShape
public RectangularNodeShape()
-
-
Method Details
-
getBounds
DOCUMENT ME!- Specified by:
getBoundsin interfaceShape- Overrides:
getBoundsin classAbstractArrowShape- Returns:
- DOCUMENT ME!
-
getBounds2D
DOCUMENT ME!- Specified by:
getBounds2Din interfaceShape- Overrides:
getBounds2Din classAbstractArrowShape- Returns:
- DOCUMENT ME!
-
getPathIterator
Description copied from class:AbstractArrowShapeDOCUMENT ME!- Specified by:
getPathIteratorin interfaceShape- Overrides:
getPathIteratorin classAbstractArrowShape- Parameters:
at- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getPathIterator
Description copied from class:AbstractArrowShapeDOCUMENT ME!- Specified by:
getPathIteratorin interfaceShape- Overrides:
getPathIteratorin classAbstractArrowShape- Parameters:
at- DOCUMENT ME!flatness- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getRealBounds2D
Returns aRectangle2Dthat represents the encapsulatedRectangle2D, but has coordinates transformed relative to the view (instead of relative to theNodeComponent).- Specified by:
getRealBounds2Din interfaceGraphElementShape- Returns:
- a copy of the encapsulated rectangle but which has the real coordinates in the view.
-
contains
DOCUMENT ME!- Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractArrowShape- Parameters:
p- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
contains
DOCUMENT ME!- Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractArrowShape- Parameters:
r- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
contains
public boolean contains(double x, double y)Description copied from class:AbstractArrowShapeDOCUMENT ME!- Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractArrowShape- Parameters:
x- DOCUMENT ME!y- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
contains
public boolean contains(double x, double y, double w, double h)Description copied from class:AbstractArrowShapeDOCUMENT ME!- Specified by:
containsin interfaceShape- Overrides:
containsin classAbstractArrowShape- Parameters:
x- DOCUMENT ME!y- DOCUMENT ME!w- DOCUMENT ME!h- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
intersects
public boolean intersects(double x, double y, double w, double h)DOCUMENT ME!- Specified by:
intersectsin interfaceShape- Overrides:
intersectsin classAbstractArrowShape- Parameters:
x- DOCUMENT ME!y- DOCUMENT ME!w- DOCUMENT ME!h- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
intersects
DOCUMENT ME!- Specified by:
intersectsin interfaceShape- Overrides:
intersectsin classAbstractArrowShape- Parameters:
r- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
setCoordinateSystem
- Specified by:
setCoordinateSystemin interfaceGraphElementShape
-
getXexcess
public double getXexcess()- Specified by:
getXexcessin interfaceGraphElementShape
-
getYexcess
public double getYexcess()- Specified by:
getYexcessin interfaceGraphElementShape
-