public interface RGrid
| Modifier and Type | Method and Description |
|---|---|
processing.core.PVector[] |
getCoordinates()
Returns all positions of all elements in the grid.
|
java.lang.Float |
getHeight()
Returns the current height of the grid.
|
java.lang.Float |
getHeight(java.lang.Integer index)
Returns the current height of the grid.
|
java.lang.Float |
getPadding()
Returns the space between the elements of the grid.
|
java.lang.Float |
getWidth()
Returns the width of the element at the given index.
|
java.lang.Float |
getWidth(java.lang.Integer index)
Returns the current width of the grid.
|
java.lang.Float |
getX()
Returns the current x-position of the grid.
|
java.lang.Float |
getX(java.lang.Integer index)
Returns the x-position of the element at the given index.
|
java.lang.Float |
getY()
Returns the current y-position of the grid.
|
java.lang.Float |
getY(java.lang.Integer index)
Returns the y-position of the element at the given index.
|
RGrid |
setPadding(float padding)
Sets the padding (space between elements of the grid).
|
RGrid |
setX(float x)
Set to x-position of the grid.
|
RGrid |
setY(float y)
Set to y-position of the grid.
|
java.lang.Integer |
size()
Returns the number of elements in the grid.
|
RGrid setX(float x)
x - The new x-position of the grid.RGrid setY(float y)
y - The new y-position of the grid.RGrid setPadding(float padding)
padding - The new padding of this grid.processing.core.PVector[] getCoordinates()
java.lang.Float getX()
java.lang.Float getY()
java.lang.Float getWidth()
java.lang.Float getHeight()
java.lang.Float getWidth(java.lang.Integer index)
index - The index of the element.java.lang.Float getHeight(java.lang.Integer index)
index - The index of the element.java.lang.Float getPadding()
java.lang.Integer size()
for (int i = 0; i < myGrid.size(); i++) {
float x = myGrid.getX(i);
float y = myGrid.getY(i):
}
java.lang.Float getX(java.lang.Integer index)
for (int i = 0; i < myGrid.size(); i++) {
float x = myGrid.getX(i);
float y = myGrid.getY(i):
}
index - The index of the element.java.lang.Float getY(java.lang.Integer index)
for (int i = 0; i < myGrid.size(); i++) {
float x = myGrid.getX(i);
float y = myGrid.getY(i):
}
index - The index of the element.