abstract class GlassScene extends java.lang.Object implements TKScene
Modifier and Type | Field and Description |
---|---|
private java.security.AccessControlContext |
accessCtrlCtx |
private NGCamera |
camera |
private boolean |
depthBuffer |
private boolean |
doPresent |
protected TKDragGestureListener |
dragGestureListener |
protected TKDragSourceListener |
dragSourceListener |
protected TKDropTargetListener |
dropTargetListener |
private boolean |
entireSceneDirty |
protected Paint |
fillPaint |
protected InputMethodRequests |
inputMethodRequests |
private static sun.misc.JavaSecurityAccess |
javaSecurityAccess |
private NGLightBase[] |
lights |
private boolean |
msaa |
private java.util.concurrent.atomic.AtomicBoolean |
painting |
private NGNode |
root |
protected TKSceneListener |
sceneListener |
private TKScenePaintListener |
scenePaintListener |
(package private) SceneState |
sceneState |
private GlassStage |
stage |
Modifier | Constructor and Description |
---|---|
protected |
GlassScene(boolean depthBuffer,
boolean msaa) |
Modifier and Type | Method and Description |
---|---|
void |
clearEntireSceneDirty() |
TKClipboard |
createDragboard(boolean isDragSource) |
void |
dispose()
This method is called from Scene, when it is being destroyed.
|
void |
entireSceneNeedsRepaint() |
void |
frameRendered() |
java.security.AccessControlContext |
getAccessControlContext() |
(package private) NGCamera |
getCamera() |
protected Color |
getClearColor() |
(package private) Paint |
getCurrentPaint() |
(package private) boolean |
getDepthBuffer() |
boolean |
getDoPresent() |
NGLightBase[] |
getLights() |
protected View |
getPlatformView() |
protected NGNode |
getRoot() |
(package private) SceneState |
getSceneState() |
protected GlassStage |
getStage() |
boolean |
isEntireSceneDirty() |
(package private) boolean |
isMSAA() |
protected abstract boolean |
isSynchronous() |
void |
markDirty() |
void |
releaseSynchronization(boolean updateState)
Releases the synchronization lock previously held.
|
(package private) void |
repaint() |
void |
sceneChanged() |
void |
setCamera(NGCamera camera) |
void |
setCursor(java.lang.Object cursor) |
void |
setDoPresent(boolean value) |
void |
setFillPaint(java.lang.Object fillPaint)
Set the background fill for the scene
|
void |
setInputMethodRequests(InputMethodRequests requests) |
void |
setLights(NGLightBase[] lights) |
(package private) boolean |
setPainting(boolean value) |
void |
setRoot(NGNode root) |
void |
setSecurityContext(java.security.AccessControlContext ctx) |
(package private) void |
setStage(GlassStage stage) |
void |
setTKDragGestureListener(TKDragGestureListener listener) |
void |
setTKDragSourceListener(TKDragSourceListener listener) |
void |
setTKDropTargetListener(TKDropTargetListener listener) |
void |
setTKSceneListener(TKSceneListener listener) |
void |
setTKScenePaintListener(TKScenePaintListener listener) |
(package private) void |
stageVisible(boolean visible) |
java.lang.String |
toString() |
(package private) void |
updateSceneState() |
void |
waitForRenderingToComplete() |
void |
waitForSynchronization()
Waits until the render thread is available for synchronization
from the scene graph.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
enableInputMethodEvents, finishInputMethodComposition
private static final sun.misc.JavaSecurityAccess javaSecurityAccess
private GlassStage stage
protected TKSceneListener sceneListener
protected TKDragGestureListener dragGestureListener
protected TKDragSourceListener dragSourceListener
protected TKDropTargetListener dropTargetListener
protected InputMethodRequests inputMethodRequests
private TKScenePaintListener scenePaintListener
private NGNode root
private NGCamera camera
protected Paint fillPaint
private volatile boolean entireSceneDirty
private boolean doPresent
private final java.util.concurrent.atomic.AtomicBoolean painting
private final boolean depthBuffer
private final boolean msaa
SceneState sceneState
private java.security.AccessControlContext accessCtrlCtx
private NGLightBase[] lights
public void dispose()
TKScene
public final java.security.AccessControlContext getAccessControlContext()
getAccessControlContext
in interface TKScene
public final void setSecurityContext(java.security.AccessControlContext ctx)
public void waitForRenderingToComplete()
waitForRenderingToComplete
in interface TKScene
public void waitForSynchronization()
TKScene
waitForSynchronization
in interface TKScene
public void releaseSynchronization(boolean updateState)
TKScene
releaseSynchronization
in interface TKScene
boolean getDepthBuffer()
boolean isMSAA()
protected abstract boolean isSynchronous()
public void setTKSceneListener(TKSceneListener listener)
setTKSceneListener
in interface TKScene
public void setTKScenePaintListener(TKScenePaintListener listener)
setTKScenePaintListener
in interface TKScene
public void setTKDropTargetListener(TKDropTargetListener listener)
public void setTKDragSourceListener(TKDragSourceListener listener)
public void setTKDragGestureListener(TKDragGestureListener listener)
public void setInputMethodRequests(InputMethodRequests requests)
protected NGNode getRoot()
NGCamera getCamera()
public NGLightBase[] getLights()
public void setLights(NGLightBase[] lights)
public void setFillPaint(java.lang.Object fillPaint)
TKScene
setFillPaint
in interface TKScene
fillPaint
- This must be a paint class as returned from Toolkit.createPaint(...)public void setCursor(java.lang.Object cursor)
public void entireSceneNeedsRepaint()
entireSceneNeedsRepaint
in interface TKScene
public boolean isEntireSceneDirty()
public void clearEntireSceneDirty()
public TKClipboard createDragboard(boolean isDragSource)
createDragboard
in interface TKScene
protected final GlassStage getStage()
void setStage(GlassStage stage)
final SceneState getSceneState()
final void updateSceneState()
protected View getPlatformView()
boolean setPainting(boolean value)
void repaint()
final void stageVisible(boolean visible)
public void sceneChanged()
public final void frameRendered()
public final void setDoPresent(boolean value)
public final boolean getDoPresent()
protected Color getClearColor()
final Paint getCurrentPaint()
public java.lang.String toString()
toString
in class java.lang.Object