Package | com.yworks.yfiles.layout.router.polyline |
Class | public class Grid |
Inheritance | Grid YObject Object |
The grid is defined by its origin and the spacing between the equidistant grid lines.
Property | Defined By | ||
---|---|---|---|
originX : Number [read-only]
Returns the horizontal coordinate of the origin. | Grid | ||
originY : Number [read-only]
Returns the vertical coordinate of the origin. | Grid | ||
spacing : Number [read-only]
Returns the spacing between the horizontal and vertical grid lines. | Grid |
Method | Defined By | ||
---|---|---|---|
Grid(originX:Number, originY:Number, spacing:Number, init:Boolean = true)
Creates a new instance. | Grid | ||
equals(o:Object):Boolean | YObject | ||
getClass():Class [override] | Grid | ||
hashCode():int | YObject | ||
[static]
Creates a new instance. | Grid | ||
toString():String
Returns a String representation of Grid. | Grid |
Method | Defined By | ||
---|---|---|---|
initGrid(originX:Number, originY:Number, spacing:Number):void
Initializes this object. | Grid |
originX | property |
originX:Number
[read-only] Returns the horizontal coordinate of the origin.
public function get originX():Number
originY | property |
originY:Number
[read-only] Returns the vertical coordinate of the origin.
public function get originY():Number
spacing | property |
spacing:Number
[read-only] Returns the spacing between the horizontal and vertical grid lines.
public function get spacing():Number
Grid | () | Constructor |
public function Grid(originX:Number, originY:Number, spacing:Number, init:Boolean = true)
Creates a new instance.
The spacing between the grid lines must be at least 1
. If spacing is smaller, 1 is assumed.
originX:Number — The horizontal coordinate of the origin.
| |
originY:Number — The vertical coordinate of the origin.
| |
spacing:Number — The spacing between the grid lines. Must be at least 1 .
| |
init:Boolean (default = true ) — An internally used switch to help handle proper instance initialization in inheritance chains where classes can have multiple constructor-like factory methods.
This parameter can safely be ignored/omitted when calling the constructor.
|
getClass | () | method |
override public function getClass():Class
ReturnsClass |
initGrid | () | method |
protected final function initGrid(originX:Number, originY:Number, spacing:Number):void
Initializes this object. See the documentation of the corresponding factory method newGrid()
for details.
Parameters
originX:Number | |
originY:Number | |
spacing:Number |
See also
newGrid | () | method |
public static function newGrid(originX:Number, originY:Number, spacing:Number):Grid
Creates a new instance.
The spacing between the grid lines must be at least 1
. If spacing is smaller, 1 is assumed.
Parameters
originX:Number — The horizontal coordinate of the origin.
| |
originY:Number — The vertical coordinate of the origin.
| |
spacing:Number — The spacing between the grid lines. Must be at least 1 .
|
Grid |
toString | () | method |
public function toString():String
Returns a String
representation of Grid
.
String — A String representation of Grid .
|