Class AbstractArrowShape
java.lang.Object
org.graffiti.plugins.views.defaults.AbstractArrowShape
- All Implemented Interfaces:
Shape,ArrowShape
- Direct Known Subclasses:
AbsoluteInhibitorArrowShape,AbsoluteStimulationArrowShape,AssignmentArrowShape,CircleArrowShape,CircleConnectArrowShape,DiamondArrowShape,InhibitorArrowShape,RectangularNodeShape,StandardArrowShape,StandardArrowShapeLeft,StandardArrowShapeRight,TriggerArrowShape
public abstract class AbstractArrowShape extends Object implements ArrowShape
DOCUMENT ME!
- Version:
- $Revision: 1.10 $ $Date: 2010/12/22 13:06:19 $
- Author:
- $Author: klukas $
-
Constructor Summary
Constructors Constructor Description AbstractArrowShape() -
Method Summary
Modifier and Type Method Description static Rectangle2DaddThickness(Rectangle2D b, double lineWidth)Shapeaffix(Point2D target, Point2D other, double lineWidth)Sets this arrow to the target point and rotates it according to the line given by the connection between points target and other.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!Point2DgetAnchor()Returns the anchor of the arrow, i.e.RectanglegetBounds()DOCUMENT ME!Rectangle2DgetBounds2D()DOCUMENT ME!PathIteratorgetPathIterator(AffineTransform t)DOCUMENT ME!PathIteratorgetPathIterator(AffineTransform t, double d)DOCUMENT ME!booleanintersects(double x, double y, double w, double h)DOCUMENT ME!booleanintersects(Rectangle2D r)DOCUMENT ME!voidupdateSize(double sz)
-
Constructor Details
-
AbstractArrowShape
public AbstractArrowShape()
-
-
Method Details
-
updateSize
public void updateSize(double sz)- Specified by:
updateSizein interfaceArrowShape
-
getAnchor
Returns the anchor of the arrow, i.e. the point where the line should be attached to the arrow. This is only valid after a call toaffix.- Specified by:
getAnchorin interfaceArrowShape- Returns:
- the anchor of the arrow.
-
getBounds
DOCUMENT ME! -
getBounds2D
DOCUMENT ME!- Specified by:
getBounds2Din interfaceShape- Returns:
- DOCUMENT ME!
-
addThickness
-
getPathIterator
DOCUMENT ME!- Specified by:
getPathIteratorin interfaceShape- Parameters:
t- DOCUMENT ME!d- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
getPathIterator
DOCUMENT ME!- Specified by:
getPathIteratorin interfaceShape- Parameters:
t- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
affix
Sets this arrow to the target point and rotates it according to the line given by the connection between points target and other. Ensures that the arrow is always larger than the line.- Specified by:
affixin interfaceArrowShape- Parameters:
target- the point where the arrow should be put.other- needed to calculate the direction in which the arrow should point to. The line is given by the two points target and other.lineWidth- The total width of the line. May be used to scale the arrow so as to be larger than the line.- Returns:
- the point where the line meets the arrow
-
contains
public boolean contains(double x, double y, double w, double h)DOCUMENT ME! -
contains
public boolean contains(double x, double y)DOCUMENT ME! -
contains
DOCUMENT ME! -
contains
DOCUMENT ME! -
intersects
public boolean intersects(double x, double y, double w, double h)DOCUMENT ME!- Specified by:
intersectsin interfaceShape- Parameters:
x- DOCUMENT ME!y- DOCUMENT ME!w- DOCUMENT ME!h- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-
intersects
DOCUMENT ME!- Specified by:
intersectsin interfaceShape- Parameters:
r- DOCUMENT ME!- Returns:
- DOCUMENT ME!
-