public class UIPreviewWindow extends UI3dContext
Modifier and Type | Class and Description |
---|---|
class |
UIPreviewWindow.Grid |
UI3dContext.Camera, UI3dContext.InteractionMode, UI3dContext.MouseMode, UI3dContext.MovementListener, UI3dContext.ProjectionMode
LXSerializable.Utils
Modifier and Type | Field and Description |
---|---|
UIPointCloud |
pointCloud |
animation, animationProgress, animationTime, cameraAcceleration, cameraVelocity, cue, depth, focusCamera, mouseMode, NUM_CAMERA_POSITIONS, perspective, phiLock, projection, rotationAcceleration, rotationVelocity, showCenterPoint
children, hasFocus, mousePressContextMenu, visible
Constructor and Description |
---|
UIPreviewWindow(LXStudio.UI ui,
P3LX lx,
int x,
int y,
int w,
int h) |
Modifier and Type | Method and Description |
---|---|
void |
load(LX lx,
JsonObject object)
Restores this instance from a JSON object
|
protected void |
onMousePressed(MouseEvent mouseEvent,
float mx,
float my)
Subclasses override to receive mouse events
|
protected void |
onResize()
Subclasses may override to handle situation in which the size of the graphics
context has changed.
|
void |
save(LX lx,
JsonObject object)
Serializes this instance into the JSON object
|
addComponent, addMovementListener, clearCamera, draw, getCenter, getEye, getGraphics, getHeight, getWidth, newTopLevelContext, onKeyPressed, onMouseDragged, onMouseWheel, removeComponent, removeMovementListener, setBackground, setBackgroundColor, setCamera, setCameraAcceleration, setCameraVelocity, setCenter, setEye, setInteractionMode, setMaxRadius, setMinRadius, setPerspective, setPhi, setRadius, setRadiusBounds, setRotationAcceleration, setRotationVelocity, setSize, setTheta
addLoopTask, beginDraw, blur, bringToFront, consumeKeyEvent, consumeMousePress, consumeMouseWheelEvent, contains, endDraw, focus, getDescription, getFocusedChild, getLX, getParent, getUI, hasDirectFocus, hasFocus, isVisible, keyEventConsumed, loop, mousePressConsumed, onBlur, onDraw, onFocus, onUIResize, removeLoopTask, setDescription, setVisible, toggleVisible
onKeyReleased, onKeyTyped, onMouseClicked, onMouseMoved, onMouseOut, onMouseOver, onMouseReleased
public final UIPointCloud pointCloud
public UIPreviewWindow(LXStudio.UI ui, P3LX lx, int x, int y, int w, int h)
protected void onResize()
UI3dContext
onResize
in class UI3dContext
protected void onMousePressed(MouseEvent mouseEvent, float mx, float my)
UIEventHandler
onMousePressed
in class UI3dContext
mouseEvent
- Mouse eventmx
- x-coordinatemy
- y-coordinatepublic void save(LX lx, JsonObject object)
LXSerializable
save
in interface LXSerializable
save
in class UI3dContext
lx
- LX instanceobject
- Object to serialize intopublic void load(LX lx, JsonObject object)
LXSerializable
load
in interface LXSerializable
load
in class UI3dContext
lx
- LX instanceobject
- Object to deserializeLX library by Mark C. Slee. © 2012-2020