org.grinvin.gred.guides
Class VerticalIsometricGrid
- Guides
public class VerticalIsometricGrid
Guides based on a isometric grid with vertical lines. The number of
triangles in a column is configurable.
void | paint(Graphics2D g2, double scale, double maxX, double maxY) - Paint the grid
|
void | setNumberOfTriangles(int numberOfTriangles) - Set the number of divisions used by this gridtriangles in a column.
|
void | snap(double[] coords) - Snap coordinates to the closest grid position.
|
VerticalIsometricGrid
public VerticalIsometricGrid(int numberOfTriangles)
Create a new object of this type.
Set the number of divisions used by this gridtriangles in a column.
numberOfTriangles
- Number of triangles in a column.
paint
public void paint(Graphics2D g2,
double scale,
double maxX,
double maxY)
Paint the grid
- paint in interface Guides
- paint in interface AbstractGuides
setNumberOfTriangles
public void setNumberOfTriangles(int numberOfTriangles)
Set the number of divisions used by this gridtriangles in a column.
numberOfTriangles
- Number of triangles in a column.
snap
public void snap(double[] coords)
Snap coordinates to the closest grid position.
- snap in interface Guides
- snap in interface AbstractGuides