public class GridInfo extends Object
It is used by the IGridConstraintProvider as well as by the
GridSnapResultVisualCreator<T>
IGridConstraintProvider| Constructor and Description |
|---|
GridInfo()
Creates a new instance using "25" as the grid spacing.
|
GridInfo(double spacing)
Creates a new instance using "25" as the grid spacing.
|
GridInfo(double horizontalSpacing,
double verticalSpacing,
PointD origin)
Creates a new instance using the given horizontal and vertical grid spacing as well as the given origin.
|
| Modifier and Type | Method and Description |
|---|---|
boolean |
equals(Object o) |
double |
getHorizontalSpacing()
Gets the horizontal spacing between grid points in the world coordinate system.
|
PointD |
getOrigin()
Gets the canonic origin of the grid.
|
double |
getVerticalSpacing()
Gets the vertical spacing between grid points in the world coordinate system.
|
void |
setHorizontalSpacing(double value)
Sets the horizontal spacing between grid points in the world coordinate system.
|
void |
setOrigin(PointD value)
Sets the canonic origin of the grid.
|
void |
setVerticalSpacing(double value)
Sets the vertical spacing between grid points in the world coordinate system.
|
public GridInfo()
public GridInfo(double spacing)
spacing - The horizontal and vertical spacing between the grid points.public GridInfo(double horizontalSpacing,
double verticalSpacing,
PointD origin)
horizontalSpacing - The horizontal spacing between the grid points.verticalSpacing - The vertical spacing between the grid points.origin - The canonic origin of the grid.public final double getHorizontalSpacing()
setHorizontalSpacing(double)public final PointD getOrigin()
setOrigin(PointD)public final double getVerticalSpacing()
setVerticalSpacing(double)public final void setHorizontalSpacing(double value)
value - The HorizontalSpacing to set.getHorizontalSpacing()public final void setOrigin(PointD value)
value - The Origin to set.getOrigin()public final void setVerticalSpacing(double value)
value - The VerticalSpacing to set.getVerticalSpacing()