org.graffiti.plugin.view
Interface ArrowShape

All Superinterfaces:
Shape

public interface ArrowShape
extends Shape

DOCUMENT ME!

Version:
$Revision: 5768 $
Author:
$Author: gleissner $

Method Summary
 Shape affix(Point2D target, Point2D other, double lineWidth)
          Sets this arrow to the target point and rotates it according to the line given by the conenction between points target and other.
 Point2D getAnchor()
          Returns the anchor of the arrow, i.e.
 
Methods inherited from interface java.awt.Shape
contains, contains, contains, contains, getBounds, getBounds2D, getPathIterator, getPathIterator, intersects, intersects
 

Method Detail

getAnchor

Point2D 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 to affix.

Returns:
the anchor of the arrow.

affix

Shape affix(Point2D target,
            Point2D other,
            double lineWidth)
Sets this arrow to the target point and rotates it according to the line given by the conenction between points target and other.

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:
DOCUMENT ME!


Generated at 2012-05-30 11:00:36 PM CEST