public class GridMaker
extends java.lang.Object
| Modifier and Type | Method and Description |
|---|---|
static EllipseGrid |
createEllipse()
Creates an ellipsoid grid.
|
static EllipseGrid |
createEllipse(float x,
float y)
Creates an ellipsoid grid.
|
static EllipseGrid |
createEllipse(float x,
float y,
float radius)
Creates an ellipsoid grid.
|
static EllipseGrid |
createEllipse(float x,
float y,
float radius,
int size)
Creates an ellipsoid grid.
|
static EquiSpiralGrid |
createEquiSpiral()
Creates a spiral grid.
|
static EquiSpiralGrid |
createEquiSpiral(float x,
float y)
Creates a spiral grid.
|
static EquiSpiralGrid |
createEquiSpiral(float x,
float y,
float radius)
Creates a spiral grid.
|
static EquiSpiralGrid |
createEquiSpiral(float x,
float y,
float radius,
float elementDistance)
Creates a spiral grid.
|
static EquiSpiralGrid |
createEquiSpiral(float x,
float y,
float radius,
float elementDistance,
float rotations)
Creates a spiral grid.
|
static SpiralGrid |
createSpiral()
Creates a spiral grid.
|
static SpiralGrid |
createSpiral(float x,
float y)
Creates a spiral grid.
|
static SpiralGrid |
createSpiral(float x,
float y,
float angle)
Creates a spiral grid.
|
static SpiralGrid |
createSpiral(float x,
float y,
float angle,
float rotations)
Creates a spiral grid.
|
static SpiralGrid |
createSpiral(float x,
float y,
float radius,
float angle,
float rotations)
Creates a spiral grid.
|
static SpiralGrid |
createSpiral(float x,
float y,
int size,
float rotations,
float endRadius)
Creates a spiral grid.
|
static TableGrid |
createTable()
Creates a table grid (a grid that is defined by rows and columns).
|
static TableGrid |
createTable(float x,
float y,
float w,
float h,
int size)
Creates a table grid (a grid that is defined by rows and columns).
|
static TableGrid |
createTable(float x,
float y,
float w,
float h,
int columns,
int rows)
Creates a table grid (a grid that is defined by rows and columns).
|
static TableGrid |
createTable(float w,
float h,
int size)
Creates a table grid (a grid that is defined by rows and columns).
|
static TableGrid |
createTable(float w,
float h,
int columns,
int rows)
Creates a table grid (a grid that is defined by rows and columns).
|
public static SpiralGrid createSpiral()
SpiralGrid grid = GridMaker.createSpiral().setX(200).setY(100);
public static SpiralGrid createSpiral(float x, float y)
SpiralGrid grid = GridMaker.createSpiral(200, 100).setRotations(5);
x - The center-x location of the grid.y - The center-y location of the gridpublic static SpiralGrid createSpiral(float x, float y, float angle)
SpiralGrid grid = GridMaker.createSpiral(200, 100, PI / 4).setRotations(5);
x - The center-x location of the grid.y - The center-y location of the gridangle - The angle distance for each element (in radians).public static SpiralGrid createSpiral(float x, float y, float angle, float rotations)
SpiralGrid grid = GridMaker.createSpiral(200, 100, PI / 4, 5).setEndRadius(300);
x - The center-x location of the grid.y - The center-y location of the gridangle - The angle distance for each element (in radians).rotations - Sets the number of rotations the spiral should make.public static SpiralGrid createSpiral(float x, float y, float radius, float angle, float rotations)
SpiralGrid grid = GridMaker.createSpiral(200, 100, PI / 4, 5).setEndRadius(300);
x - The center-x location of the grid.y - The center-y location of the grid.radius - The outer radius of the spiral.angle - The angle distance for each element (in radians).rotations - Sets the number of rotations the spiral should make.public static SpiralGrid createSpiral(float x, float y, int size, float rotations, float endRadius)
SpiralGrid grid = GridMaker.createSpiral(200, 100, 20, 5, 300);
x - The center-x location of the grid.y - The center-y location of the gridsize - Sets the number of elements which will be placed on the grid.rotations - Sets the number of rotations the spiral should make.endRadius - Sets the radius where the spiral ends. The last element of
this grid will be positioned on that radius.public static EllipseGrid createEllipse()
EllipseGrid grid = GridMaker.createEllipse().setX(200).setY(100);
public static EllipseGrid createEllipse(float x, float y)
EllipseGrid grid = GridMaker.createEllipse(200, 100).setRadius(200);
x - The center-x location of the grid.y - The center-y location of the gridpublic static EllipseGrid createEllipse(float x, float y, float radius)
EllipseGrid grid = GridMaker.createEllipse(200, 100, 50.5).setSize(50);
x - The center-x location of the grid.y - The center-y location of the gridradius - Sets the radius for this grid. The width and height of the
grid will be equal.public static EllipseGrid createEllipse(float x, float y, float radius, int size)
EllipseGrid grid = GridMaker.createEllipse(200, 100, 50.5, 50)
x - The center-x location of the grid.y - The center-y location of the gridradius - Sets the radius for this grid. The width and height of the
grid will be equal.size - The number of elements for this grid (>= 1).public static TableGrid createTable()
TableGrid grid = GridMaker.createTable().setX(200).setY(100);
public static TableGrid createTable(float w, float h, int size)
TableGrid grid = GridMaker.createTable(100, 200, 344).setX(200).setY(100);
w - The width of the grid.h - The height of the grid.size - The number of elements for this grid (>= 1).public static TableGrid createTable(float w, float h, int columns, int rows)
TableGrid grid = GridMaker.createTable(200.5, 100, 10, 20).setX(200).setY(100);
w - The width of the grid.h - The height of the grid.columns - The number of columns of the grid.rows - The number of rows of the grid.public static TableGrid createTable(float x, float y, float w, float h, int size)
TableGrid grid = GridMaker.createTable(200, 200, 100, 100, 344);
x - The x-location of the grid (top-left corner).y - The y-location of the grid (top-left corner).w - The width of the grid.h - The height of the grid.size - The number of elements for this grid (>= 1).public static TableGrid createTable(float x, float y, float w, float h, int columns, int rows)
TableGrid grid = GridMaker.createTable(200, 100, 200.5, 100, 10, 20);
x - The x-location of the grid (top-left corner).y - The y-location of the grid (top-left corner).w - The width of the grid.h - The height of the grid.columns - The number of columns of the grid.rows - The number of rows of the grid.public static EquiSpiralGrid createEquiSpiral()
EquiSpiralGrid grid = GridMaker.createEquiSpiral().setX(200).setY(200);
public static EquiSpiralGrid createEquiSpiral(float x, float y)
EquiSpiralGrid grid = GridMaker.createEquiSpiral(200, 200).setElementDistance(60);
x - The center-x location of the grid.y - The center-y location of the gridpublic static EquiSpiralGrid createEquiSpiral(float x, float y, float radius)
EquiSpiralGrid grid = GridMaker.createEquiSpiral(200, 200, 100).setElementDistance(60);
x - The center-x location of the grid.y - The center-y location of the gridradius - Sets the radius where the spiral ends. The last element of
this grid will be positioned on that radius.public static EquiSpiralGrid createEquiSpiral(float x, float y, float radius, float elementDistance)
EquiSpiralGrid grid = GridMaker.createEquiSpiral(200, 200, 100, 60).setRotations(5.5);
x - The center-x location of the grid.y - The center-y location of the gridradius - Sets the radius where the spiral ends. The last element of
this grid will be positioned on that radius.elementDistance - The distance of each element to its neighbors (>= 1).public static EquiSpiralGrid createEquiSpiral(float x, float y, float radius, float elementDistance, float rotations)
EquiSpiralGrid grid = GridMaker.createEquiSpiral(200, 200, 100, 60, 5.5);
x - The center-x location of the grid.y - The center-y location of the gridradius - Sets the radius where the spiral ends. The last element of
this grid will be positioned on that radius.elementDistance - The distance of each element to its neighbors (>= 1).rotations - Sets the number of rotations the spiral should make.