public class DrawingGrid extends Object
Modifier and Type | Field and Description |
---|---|
static int |
DEFAULT_GRID_SIZE |
static int |
GRID_MAJOR_FACTOR |
Constructor and Description |
---|
DrawingGrid() |
DrawingGrid(int gridSize) |
Modifier and Type | Method and 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) |
public static int DEFAULT_GRID_SIZE
public static final int GRID_MAJOR_FACTOR
Copyright © 2022. All rights reserved.