Packagecom.yworks.canvas.drawing
Classpublic class FixedLinePaintable
InheritanceFixedLinePaintable Inheritance AbstractSingleLineSnapResultPaintable Inheritance Object

Draws a line between lineFrom and lineTo. Both points as well as the targetPoint are further marked with a cross.



Public Properties
 PropertyDefined By
  lineFrom : IPoint
The start point of the SnapLine.
FixedLinePaintable
  lineTo : IPoint
The end point of the SnapLine.
FixedLinePaintable
 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
 Inherited
Creates a new DisplayObject from scratch.
AbstractSingleLineSnapResultPaintable
  
[override] Draws a line between lineFrom and lineTo.
FixedLinePaintable
 Inherited
updateDisplayObject(oldDisplayObject:DisplayObject, context:IDisplayObjectContext):DisplayObject
Updates the given DisplayObject or creates a new one.
AbstractSingleLineSnapResultPaintable
Protected Methods
 MethodDefined By
  
Callback used by the paint method to paint the lineFrom, lineTo and targetPoint.
FixedLinePaintable
Property Detail
lineFromproperty
lineFrom:IPoint

The start point of the SnapLine.


Implementation
    public function get lineFrom():IPoint
    public function set lineFrom(value:IPoint):void

See also

SnapLine
lineToproperty 
lineTo:IPoint

The end point of the SnapLine.


Implementation
    public function get lineTo():IPoint
    public function set lineTo(value:IPoint):void

See also

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