public class Grid extends java.lang.Object implements Drawable2D
| Modifier and Type | Field and Description |
|---|---|
private int |
gridWidth |
| Constructor and Description |
|---|
Grid(Transformation t,
processing.core.PGraphics view)
Creates a Grid with a default width of 5mm
|
| Modifier and Type | Method and Description |
|---|---|
void |
draw2D(processing.core.PGraphics context,
Transformation transformation)
Draws the Grid on the passed PGraphics-object view and scales it depending on the transformation.
|
int |
getScaledGridWidth(Transformation transformation) |
private float |
getScaleFactor(float scale) |
public Grid(Transformation t, processing.core.PGraphics view)
public void draw2D(processing.core.PGraphics context,
Transformation transformation)
draw2D in interface Drawable2Dprivate float getScaleFactor(float scale)
public int getScaledGridWidth(Transformation transformation)