Packagecom.yworks.canvas.drawing
Classpublic class AbstractSingleLineSnapResultPaintable
InheritanceAbstractSingleLineSnapResultPaintable Inheritance Object
Implements IPaintable
Subclasses FixedLinePaintable, VariableLinePaintable

This abstract class contains some common properties that are used to visualize SnapLineSnapResults.



Public Properties
 PropertyDefined By
  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
Public Methods
 MethodDefined By
  
This implementation does nothing and has to be overridden by it's subclasses.
AbstractSingleLineSnapResultPaintable
Property Detail
orientationproperty
orientation:SnapLineOrientation

The orientation of the SnapLine.


Implementation
    public function get orientation():SnapLineOrientation
    public function set orientation(value:SnapLineOrientation):void
sourcePointproperty 
sourcePoint:IPoint

A position in world coordinates representing the source of the SnapLine.


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

See also

SnapLine
SnapLineSnapResult
strokeproperty 
stroke:IStroke

The stroke used in the paint method.


Implementation
    public function get stroke():IStroke
    public function set stroke(value:IStroke):void

See also

targetPointproperty 
targetPoint:IPoint

The location in world coordinates where the target has snapped to the SnapLine.


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

See also

SnapLine
SnapLineSnapResult
Method Detail
paint()method
public function paint(g:YGraphics, ctx:IPaintContext):void

This implementation does nothing and has to be overridden by it's subclasses.

Parameters

g:YGraphics
 
ctx:IPaintContext