Packagecom.yworks.canvas.drawing
Classpublic class EqualSizePaintable
InheritanceEqualSizePaintable Inheritance Object
Implements IPaintable
Subclasses EqualHeightPaintable, EqualWidthPaintable

This abstract class contains some common properties that are used to visualize resize snap results.



Public Properties
 PropertyDefined By
  rectangles : Iterable
An Iterable of IRectangles containing the bounds of the resized objects as well as the bounds of the (non-resizing) rectangular objects the snapped size was based upon.
EqualSizePaintable
  size : Number
The size the resized object snapped to.
EqualSizePaintable
  stroke : IStroke
The stroke used in the paint method.
EqualSizePaintable
Public Methods
 MethodDefined By
  
This implementation does nothing and has to be overridden by it's subclasses.
EqualSizePaintable
Property Detail
rectanglesproperty
rectangles:Iterable

An Iterable of IRectangles containing the bounds of the resized objects as well as the bounds of the (non-resizing) rectangular objects the snapped size was based upon.


Implementation
    public function get rectangles():Iterable
    public function set rectangles(value:Iterable):void
sizeproperty 
size:Number

The size the resized object snapped to.


Implementation
    public function get size():Number
    public function set size(value:Number):void
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

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