public class UIPreviewWindow.Grid extends UI3dComponent implements LXSerializable
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
DiscreteParameter |
planes |
DiscreteParameter |
size |
BoundedParameter |
spacing |
BoundedParameter |
x |
BoundedParameter |
y |
BoundedParameter |
z |
children, hasFocus, mousePressContextMenu, visible
Modifier and Type | Method and Description |
---|---|
void |
load(LX lx,
JsonObject object)
Restores this instance from a JSON object
|
void |
onDraw(UI ui,
PGraphics pg)
Subclasses should override this method to perform their drawing functions.
|
void |
save(LX lx,
JsonObject object)
Serializes this instance into the JSON object
|
addChild, contains, getHeight, getWidth, removeChild
addLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, endDraw, focus, getDescription, getFocusedChild, getLX, getParent, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onBlur, onFocus, onUIResize, removeLoopTask, setDescription, setVisible, toggleVisible
onKeyPressed, onKeyReleased, onKeyTyped, onMouseClicked, onMouseDragged, onMouseMoved, onMouseOut, onMouseOver, onMousePressed, onMouseReleased, onMouseWheel
public final BoundedParameter x
public final BoundedParameter y
public final BoundedParameter z
public final BoundedParameter spacing
public final DiscreteParameter size
public final DiscreteParameter planes
public void onDraw(UI ui, PGraphics pg)
UIObject
public void save(LX lx, JsonObject object)
LXSerializable
save
in interface LXSerializable
lx
- LX instanceobject
- Object to serialize intopublic void load(LX lx, JsonObject object)
LXSerializable
load
in interface LXSerializable
lx
- LX instanceobject
- Object to deserializeLX library by Mark C. Slee. © 2012-2020