Packagecom.yworks.canvas.geom
Interfacepublic interface IRectangle extends ISize, IPoint
Implementors ImmutableRectangle

Interface for rectangles aligned to the axes in 2D coordinate space.

This interface provides read access to the features of the rectangle only, however this does not mean that an instance that implements IRectangle will always return the same values for its properties. Often times the instance provides a dynamic read access to the current state of a rectangle. It depends on the context whether it is allowed to or even necessary to copy the state of the properties or whether the reference to the instance should always be used to query the values.

This interface does not declare any additional methods. It combines the IPoint interface that describes the upper left corner of the rectangle with the ISize interface that describes the width and height of the rectangle.



Public Properties
 PropertyDefined By
 Inheritedheight : Number
[read-only] Gets the current height of this instance.
ISize
 Inheritedwidth : Number
[read-only] Gets the current width of this instance.
ISize
 Inheritedx : Number
[read-only] Gets the current x coordinate of this point.
IPoint
 Inheritedy : Number
[read-only] Gets the current y coordinate of this point.
IPoint