Class DrawingGrid
- java.lang.Object
-
- org.locationtech.jtstest.testbuilder.ui.render.DrawingGrid
-
public class DrawingGrid extends Object
- Version:
- 1.7
-
-
Field Summary
Fields Modifier and Type Field Description static int
DEFAULT_GRID_SIZE
static int
GRID_MAJOR_FACTOR
-
Constructor Summary
Constructors Constructor Description DrawingGrid()
DrawingGrid(int gridSize)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description double
getGridSize()
boolean
isFractional()
boolean
isResolvable(Point2D p1, Point2D p2)
void
setGridSize(double gridSize)
Point2D
snapToGrid(Point2D modelPoint)
Point2D
snapToGrid(Point2D modelPoint, int factor)
Point2D
snapToMajorGrid(Point2D modelPoint)
-
-
-
Field Detail
-
DEFAULT_GRID_SIZE
public static int DEFAULT_GRID_SIZE
-
GRID_MAJOR_FACTOR
public static final int GRID_MAJOR_FACTOR
- See Also:
- Constant Field Values
-
-