Package | com.yworks.canvas |
Class | public class GridInfo |
Inheritance | GridInfo Object |
IGridConstraintProvider
as well as by the GridSnapResultPaintable
.
See also
Property | Defined By | ||
---|---|---|---|
horizontalSpacing : Number
The canonic grid spacing in horizontal direction. | GridInfo | ||
origin : IPoint
The canonic origin of the grid. | GridInfo | ||
verticalSpacing : Number
The canonic grid spacing in vertical direction. | GridInfo |
Method | Defined By | ||
---|---|---|---|
Creates a new instance using the given horizontal and vertical grid spacing as well as the given origin. | GridInfo |
horizontalSpacing | property |
horizontalSpacing:Number
The canonic grid spacing in horizontal direction.
The default value is 25
.
public function get horizontalSpacing():Number
public function set horizontalSpacing(value:Number):void
origin | property |
origin:IPoint
The canonic origin of the grid.
public function get origin():IPoint
public function set origin(value:IPoint):void
verticalSpacing | property |
verticalSpacing:Number
The canonic grid spacing in vertical direction.
The default value is 25
.
public function get verticalSpacing():Number
public function set verticalSpacing(value:Number):void
GridInfo | () | Constructor |
public function GridInfo(horizontalSpacing:Number = 25, verticalSpacing:Number = -1, origin:IPoint = null)
Creates a new instance using the given horizontal and vertical grid spacing as well as the given origin.
ParametershorizontalSpacing:Number (default = 25 ) — The horizontal spacing between the grid points. If no value is passed, a spacing
of 25 is used.
| |
verticalSpacing:Number (default = -1 ) — The vertical spacing between the grid points. If a negative value is passed, the
horizontalSpacing is used for the vertical spacing as well.
| |
origin:IPoint (default = null ) — The canonic origin of the grid. If null is passed, (0, 0) is used as origin.
|