Package | com.yworks.canvas.drawing |
Class | public class VariableLinePaintable |
Inheritance | VariableLinePaintable AbstractSingleLineSnapResultPaintable Object |
Subclasses | BlankVariableLinePaintable |
sourcePoint
and targetPoint
that is extended by
the set offset
.
The source and target point are further marked with a cross.
Property | Defined By | ||
---|---|---|---|
offset : Number
The offset used to extend the line between the source and target point. | VariableLinePaintable | ||
orientation : SnapLineOrientation
The orientation of the SnapLine. | AbstractSingleLineSnapResultPaintable | ||
sourcePoint : IPoint
A position in world coordinates representing the source of the SnapLine. | AbstractSingleLineSnapResultPaintable | ||
stroke : IStroke
The stroke used in the paint method. | AbstractSingleLineSnapResultPaintable | ||
targetPoint : IPoint
The location in world coordinates where the target has snapped to the SnapLine. | AbstractSingleLineSnapResultPaintable |
Method | Defined By | ||
---|---|---|---|
createDisplayObject(context:IDisplayObjectContext):DisplayObject
Creates a new DisplayObject from scratch. | AbstractSingleLineSnapResultPaintable | ||
[override]
Draws a line between sourcePoint and targetPoint that is extended by
the set offset. | VariableLinePaintable | ||
updateDisplayObject(oldDisplayObject:DisplayObject, context:IDisplayObjectContext):DisplayObject
Updates the given DisplayObject or creates a new one. | AbstractSingleLineSnapResultPaintable |
Method | Defined By | ||
---|---|---|---|
Callback used by the paint method to paint the source and target points. | VariableLinePaintable |
offset | property |
offset:Number
The offset used to extend the line between the source and target point.
public function get offset():Number
public function set offset(value:Number):void
See also
markPoints | () | method |
protected function markPoints(g:YGraphics, ctx:IPaintContext):void
Callback used by the paint
method to paint the source and target points.
This implementation paints crosses at the source and target point.
Parameters
g:YGraphics — The graphics object to paint upon.
| |
ctx:IPaintContext — The paint context.
|
See also
paint | () | method |
override public function paint(g:YGraphics, ctx:IPaintContext):void
Draws a line between sourcePoint
and targetPoint
that is extended by
the set offset
.
Both points are further marked with a cross using the markPoints
callback.
Parameters
g:YGraphics — The graphics object to paint upon.
| |
ctx:IPaintContext — The paint context.
|
See also