Package | com.yworks.canvas.drawing |
Class | public class FixedLinePaintable |
Inheritance | FixedLinePaintable AbstractSingleLineSnapResultPaintable Object |
lineFrom
and lineTo
.
Both points as well as the targetPoint
are further marked with a cross.
Property | Defined By | ||
---|---|---|---|
lineFrom : IPoint
The start point of the SnapLine. | FixedLinePaintable | ||
lineTo : IPoint
The end point of the SnapLine. | FixedLinePaintable | ||
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 lineFrom and lineTo. | FixedLinePaintable | ||
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 lineFrom, lineTo
and targetPoint. | FixedLinePaintable |
lineFrom | property |
lineFrom:IPoint
The start point of the SnapLine
.
public function get lineFrom():IPoint
public function set lineFrom(value:IPoint):void
See also
lineTo | property |
lineTo:IPoint
The end point of the SnapLine
.
public function get lineTo():IPoint
public function set lineTo(value:IPoint):void
See also
markPoints | () | method |
protected function markPoints(g:YGraphics, ctx:IPaintContext):void
Callback used by the paint
method to paint the lineFrom
, lineTo
and targetPoint
.
This implementation paints a cross at each of these points.
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 lineFrom
and lineTo
.
Both points as well as the targetPoint
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