final class EmbeddedScene extends GlassScene implements EmbeddedSceneInterface
Modifier and Type | Field and Description |
---|---|
private EmbeddedSceneDnD |
embeddedDnD |
private HostInterface |
host |
private UploadingPainter |
painter |
private PaintRenderJob |
paintRenderJob |
private float |
renderScale |
private java.nio.IntBuffer |
texBits |
private int |
texLineStride |
private float |
texScaleFactor |
dragGestureListener, dragSourceListener, dropTargetListener, fillPaint, inputMethodRequests, sceneListener, sceneState
Constructor and Description |
---|
EmbeddedScene(HostInterface host,
boolean depthBuffer,
boolean msaa) |
Modifier and Type | Method and Description |
---|---|
TKClipboard |
createDragboard(boolean isDragSource) |
EmbeddedSceneDTInterface |
createDropTarget() |
void |
dispose()
This method is called from Scene, when it is being destroyed.
|
void |
enableInputMethodEvents(boolean enable) |
void |
finishInputMethodComposition() |
protected Color |
getClearColor() |
InputMethodRequests |
getInputMethodRequests() |
boolean |
getPixels(java.nio.IntBuffer dest,
int width,
int height) |
float |
getRenderScale() |
void |
inputMethodEvent(EventType<InputMethodEvent> type,
ObservableList<InputMethodTextRun> composed,
java.lang.String committed,
int caretPosition) |
protected boolean |
isSynchronous() |
void |
keyEvent(int type,
int key,
char[] ch,
int modifiers) |
void |
menuEvent(int x,
int y,
int xAbs,
int yAbs,
boolean isKeyboardTrigger) |
void |
mouseEvent(int type,
int button,
boolean primaryBtnDown,
boolean middleBtnDown,
boolean secondaryBtnDown,
int x,
int y,
int xAbs,
int yAbs,
boolean shift,
boolean ctrl,
boolean alt,
boolean meta,
int wheelRotation,
boolean popupTrigger) |
void |
repaint() |
void |
setCursor(java.lang.Object cursor) |
void |
setDragStartListener(HostDragStartListener l) |
void |
setPixelScaleFactor(float scale) |
void |
setRoot(NGNode root) |
void |
setSize(int width,
int height) |
(package private) void |
setStage(GlassStage stage) |
boolean |
traverseOut(Direction dir) |
(package private) void |
uploadPixels(Pixels pixels) |
clearEntireSceneDirty, entireSceneNeedsRepaint, frameRendered, getAccessControlContext, getCamera, getCurrentPaint, getDepthBuffer, getDoPresent, getLights, getPlatformView, getRoot, getSceneState, getStage, isEntireSceneDirty, isMSAA, markDirty, releaseSynchronization, sceneChanged, setCamera, setDoPresent, setFillPaint, setInputMethodRequests, setLights, setPainting, setSecurityContext, setTKDragGestureListener, setTKDragSourceListener, setTKDropTargetListener, setTKSceneListener, setTKScenePaintListener, stageVisible, toString, updateSceneState, waitForRenderingToComplete, waitForSynchronization
private HostInterface host
private UploadingPainter painter
private PaintRenderJob paintRenderJob
private float renderScale
private final EmbeddedSceneDnD embeddedDnD
private volatile java.nio.IntBuffer texBits
private volatile int texLineStride
private volatile float texScaleFactor
public EmbeddedScene(HostInterface host, boolean depthBuffer, boolean msaa)
public void dispose()
TKScene
dispose
in interface TKScene
dispose
in class GlassScene
void setStage(GlassStage stage)
setStage
in class GlassScene
protected boolean isSynchronous()
isSynchronous
in class GlassScene
public void setRoot(NGNode root)
setRoot
in interface TKScene
setRoot
in class GlassScene
public TKClipboard createDragboard(boolean isDragSource)
createDragboard
in interface TKScene
createDragboard
in class GlassScene
public void enableInputMethodEvents(boolean enable)
enableInputMethodEvents
in interface TKScene
public void finishInputMethodComposition()
finishInputMethodComposition
in interface TKScene
public void setPixelScaleFactor(float scale)
setPixelScaleFactor
in interface EmbeddedSceneInterface
public float getRenderScale()
void uploadPixels(Pixels pixels)
public void repaint()
repaint
in class GlassScene
public boolean traverseOut(Direction dir)
traverseOut
in interface EmbeddedSceneInterface
public void setSize(int width, int height)
setSize
in interface EmbeddedSceneInterface
public boolean getPixels(java.nio.IntBuffer dest, int width, int height)
getPixels
in interface EmbeddedSceneInterface
dest
- the destination bufferwidth
- the logical width of the bufferheight
- the logical height of the bufferscale
- the scale factorprotected Color getClearColor()
getClearColor
in class GlassScene
public void mouseEvent(int type, int button, boolean primaryBtnDown, boolean middleBtnDown, boolean secondaryBtnDown, int x, int y, int xAbs, int yAbs, boolean shift, boolean ctrl, boolean alt, boolean meta, int wheelRotation, boolean popupTrigger)
mouseEvent
in interface EmbeddedSceneInterface
public void inputMethodEvent(EventType<InputMethodEvent> type, ObservableList<InputMethodTextRun> composed, java.lang.String committed, int caretPosition)
inputMethodEvent
in interface EmbeddedSceneInterface
public void menuEvent(int x, int y, int xAbs, int yAbs, boolean isKeyboardTrigger)
menuEvent
in interface EmbeddedSceneInterface
public void keyEvent(int type, int key, char[] ch, int modifiers)
keyEvent
in interface EmbeddedSceneInterface
public void setCursor(java.lang.Object cursor)
setCursor
in interface TKScene
setCursor
in class GlassScene
public void setDragStartListener(HostDragStartListener l)
setDragStartListener
in interface EmbeddedSceneInterface
public EmbeddedSceneDTInterface createDropTarget()
createDropTarget
in interface EmbeddedSceneInterface
public InputMethodRequests getInputMethodRequests()
getInputMethodRequests
in interface EmbeddedSceneInterface