Packagecom.yworks.canvas.drawing
Classpublic class VariableLinePaintable
InheritanceVariableLinePaintable Inheritance AbstractSingleLineSnapResultPaintable Inheritance Object
Subclasses BlankVariableLinePaintable

Draws a line between the sourcePoint and targetPoint that is extended by the set offset. The source and target point are further marked with a cross.



Public Properties
 PropertyDefined By
  offset : Number
The offset used to extend the line between the source and target point.
VariableLinePaintable
 Inheritedorientation : SnapLineOrientation
The orientation of the SnapLine.
AbstractSingleLineSnapResultPaintable
 InheritedsourcePoint : IPoint
A position in world coordinates representing the source of the SnapLine.
AbstractSingleLineSnapResultPaintable
 Inheritedstroke : IStroke
The stroke used in the paint method.
AbstractSingleLineSnapResultPaintable
 InheritedtargetPoint : IPoint
The location in world coordinates where the target has snapped to the SnapLine.
AbstractSingleLineSnapResultPaintable
Public Methods
 MethodDefined By
  
[override] Draws a line between sourcePoint and targetPoint that is extended by the set offset.
VariableLinePaintable
Protected Methods
 MethodDefined By
  
Callback used by the paint method to paint the source and target points.
VariableLinePaintable
Property Detail
offsetproperty
offset:Number

The offset used to extend the line between the source and target point.


Implementation
    public function get offset():Number
    public function set offset(value:Number):void

See also

Method Detail
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