The interface for the visual representation of an arrow that is normally
used to decorate the visual representation of an
IEdge.
Instances of this class are used by IEdgeStyle implementations.
cropLength:Number [read-only]
Gets the cropping length associated with this instance.
This value is used by IEdgeStyle implementations to let the
edge appear to end shortly before it's actual target.
Implementation
public function get cropLength():Number
length:Number [read-only]
Returns the length of the arrow, i.e. the distance from the arrows tip to
the position where the visual representation of the edge's path should begin.
Implementation
public function get length():Number
public function getBoundsProvider(edge:IEdge, atSource:Boolean, anchor:IPoint, direction:IPoint):IBoundsProvider
Gets an IBoundsProvider implemenation that can yield
this arrow's bounds if painted the given location using the
given direction for the given edge.
Parameters
| edge:IEdge — The edge this arrow belongs to
|
| |
| atSource:Boolean — Whether this will be the source arrow
|
| |
| anchor:IPoint — The anchor point for the tip of the arrow
|
| |
| direction:IPoint — The direction the arrow is pointing in
|
Returns
| IBoundsProvider —
An implemenation of the IBoundsProvider
interface that can
subsequently be used to query the bounds. Clients will always call
this method before using the implementation and may not cache the instance returned.
This allows for applying the flyweight design pattern to implementations.
|
public function getPaintable(edge:IEdge, atSource:Boolean, anchor:IPoint, direction:IPoint):IPaintable
Gets an IPaintable implemenation that will paint this arrow
at the given location using the given direction for the given edge.
Parameters
| edge:IEdge — The edge this arrow belongs to
|
| |
| atSource:Boolean — Whether this will be the source arrow
|
| |
| anchor:IPoint — The anchor point for the tip of the arrow
|
| |
| direction:IPoint — The direction the arrow is pointing in
|
Returns
| IPaintable —
an implemenation of the IPaintable interface that can
subsequently be used to perform the actual painting. Clients will always call
this method before using the implementation and may not cache the instance returned.
This allows for applying the flyweight design pattern to implementations.
|