| Package | com.yworks.canvas.drawing |
| Class | public class AbstractInBetweenSnapResultPaintable |
| Inheritance | AbstractInBetweenSnapResultPaintable Object |
| Implements | IDisplayObjectCreator |
| Subclasses | CenterBetweenBoundsPaintable, CenterBetweenCenterPaintable, EqualDistanceBetweenBoundsPaintable, EqualDistanceBetweenCentersPaintable |
SnapLine
induced by two non-moved objects so that all three are positioned in a line and have an equal distance
either between their centers or their bounds.
The outer lines are positioned at the inner bounds or the centers of the outer two of these three objects
while the inner lines belong to the inner object and are either at it's outer bounds or at it's center
(In the latter case both inner lines are identical).
The equal distance can be visualized by the two distance indicator lines which span between
their corresponding outer and inner line.
In the created DisplayObject, four lines between outer/innerLine1/2From and outer/innerLine1/2To
as well as two double-pointed arrows between distanceIndicator1/2From and
distanceIndicator1/2To are painted.
| Property | Defined By | ||
|---|---|---|---|
| distance : Number
The distance either between the bounds or the centers of the three objects. | AbstractInBetweenSnapResultPaintable | ||
| distanceIndicator1From : IPoint
The begin of the first distance indicator line between the first outer and inner lines. | AbstractInBetweenSnapResultPaintable | ||
| distanceIndicator1To : IPoint
The end of the first distance indicator line between the first outer and inner lines. | AbstractInBetweenSnapResultPaintable | ||
| distanceIndicator2From : IPoint
The begin of the second distance indicator line between the second outer and inner lines. | AbstractInBetweenSnapResultPaintable | ||
| distanceIndicator2To : IPoint
The end of the second distance indicator line between the second outer and inner lines. | AbstractInBetweenSnapResultPaintable | ||
| innerLine1From : IPoint
The begin of the first inner line segment. | AbstractInBetweenSnapResultPaintable | ||
| innerLine1To : IPoint
The end of the first inner line segment. | AbstractInBetweenSnapResultPaintable | ||
| innerLine2From : IPoint
The begin of the second inner line segment. | AbstractInBetweenSnapResultPaintable | ||
| innerLine2To : IPoint
The end of the second inner line segment. | AbstractInBetweenSnapResultPaintable | ||
| outerLine1From : IPoint
The begin of the first outer line segment. | AbstractInBetweenSnapResultPaintable | ||
| outerLine1To : IPoint
The end of the first outer line segment. | AbstractInBetweenSnapResultPaintable | ||
| outerLine2From : IPoint
The begin of the second outer line segment. | AbstractInBetweenSnapResultPaintable | ||
| outerLine2To : IPoint
The end of the second outer line segment. | AbstractInBetweenSnapResultPaintable | ||
| stroke : IStroke
The stroke used in the paint method. | AbstractInBetweenSnapResultPaintable | ||
| Method | Defined By | ||
|---|---|---|---|
createDisplayObject(context:IDisplayObjectContext):DisplayObject
Creates a new DisplayObject from scratch. | AbstractInBetweenSnapResultPaintable | ||
Draws lines between:
outerLine1From and outerLine1To
outerLine2From and outerLine2To
innerLine1From and innerLine1To
innerLine2From and innerLine2To
as well as double-pointed arrows between distanceIndicator1From and
distanceIndicator1To resp. | AbstractInBetweenSnapResultPaintable | ||
updateDisplayObject(oldDisplayObject:DisplayObject, context:IDisplayObjectContext):DisplayObject
Updates the given DisplayObject or creates a new one. | AbstractInBetweenSnapResultPaintable | ||
| distance | property |
distance:NumberThe distance either between the bounds or the centers of the three objects.
public function get distance():Number public function set distance(value:Number):void| distanceIndicator1From | property |
distanceIndicator1From:IPointThe begin of the first distance indicator line between the first outer and inner lines.
public function get distanceIndicator1From():IPoint public function set distanceIndicator1From(value:IPoint):void| distanceIndicator1To | property |
distanceIndicator1To:IPointThe end of the first distance indicator line between the first outer and inner lines.
public function get distanceIndicator1To():IPoint public function set distanceIndicator1To(value:IPoint):void| distanceIndicator2From | property |
distanceIndicator2From:IPointThe begin of the second distance indicator line between the second outer and inner lines.
public function get distanceIndicator2From():IPoint public function set distanceIndicator2From(value:IPoint):void| distanceIndicator2To | property |
distanceIndicator2To:IPointThe end of the second distance indicator line between the second outer and inner lines.
public function get distanceIndicator2To():IPoint public function set distanceIndicator2To(value:IPoint):void| innerLine1From | property |
innerLine1From:IPointThe begin of the first inner line segment.
public function get innerLine1From():IPoint public function set innerLine1From(value:IPoint):void| innerLine1To | property |
innerLine1To:IPointThe end of the first inner line segment.
public function get innerLine1To():IPoint public function set innerLine1To(value:IPoint):void| innerLine2From | property |
innerLine2From:IPointThe begin of the second inner line segment.
public function get innerLine2From():IPoint public function set innerLine2From(value:IPoint):void| innerLine2To | property |
innerLine2To:IPointThe end of the second inner line segment.
public function get innerLine2To():IPoint public function set innerLine2To(value:IPoint):void| outerLine1From | property |
outerLine1From:IPointThe begin of the first outer line segment.
public function get outerLine1From():IPoint public function set outerLine1From(value:IPoint):void| outerLine1To | property |
outerLine1To:IPointThe end of the first outer line segment.
public function get outerLine1To():IPoint public function set outerLine1To(value:IPoint):void| outerLine2From | property |
outerLine2From:IPointThe begin of the second outer line segment.
public function get outerLine2From():IPoint public function set outerLine2From(value:IPoint):void| outerLine2To | property |
outerLine2To:IPointThe end of the second outer line segment.
public function get outerLine2To():IPoint public function set outerLine2To(value:IPoint):void| stroke | property |
stroke:IStroke
The stroke used in the paint method.
public function get stroke():IStroke public function set stroke(value:IStroke):voidSee also
| createDisplayObject | () | method |
public function createDisplayObject(context:IDisplayObjectContext):DisplayObject
Creates a new DisplayObject from scratch.
Parameters
context:IDisplayObjectContext — The context for which the display object is created.
|
DisplayObject — A DisplayObject.
|
| paint | () | method |
public function paint(g:YGraphics, ctx:IPaintContext):voidDraws lines between:
outerLine1From and outerLine1ToouterLine2From and outerLine2ToinnerLine1From and innerLine1ToinnerLine2From and innerLine2TodistanceIndicator1From and
distanceIndicator1To resp. distanceIndicator2From and
distanceIndicator2To.
Parameters
g:YGraphics — The graphics object to paint upon.
| |
ctx:IPaintContext — The paint context.
|
| updateDisplayObject | () | method |
public function updateDisplayObject(oldDisplayObject:DisplayObject, context:IDisplayObjectContext):DisplayObject
Updates the given DisplayObject or creates a new one.
Implementors can decide whether they update the given display object or create a new one. Updating can mean re-rendering or updating size and/or coordinates.
Parameters
oldDisplayObject:DisplayObject — The display object to update.
| |
context:IDisplayObjectContext — The context for which the display object should be updated.
|
DisplayObject — The updated display object or a completely new display object.
|