Top Description Fields Constructors Methods
com.sun.javafx.tk.quantum

pack-priv Class SceneState

extends PresentableState
Class Inheritance
Known Direct Subclasses
com.sun.javafx.tk.quantum.EmbeddedState
Imports
com.sun.glass.ui.Application, com.sun.javafx.sg.prism.NGCamera, com.sun.prism.PixelSource, .PresentableState, com.sun.prism.paint.Color, .Paint

SceneState is intended to provide for a shadow copy the View/Scene state similar to the shadow Graph, providing a static snapshot until the Scene is rendered.

Field Summary

Modifier and TypeField and Description
private NGCamera
private Color
private Paint
pack-priv final GlassScene
Inherited from com.sun.prism.PresentableState:
hasWindowManagerisClosedisWindowMinimizedisWindowVisiblenativeFrameBuffernativeViewnativeWindowHandleoutputHeightoutputScaleXoutputScaleYoutputWidthpixelFormatrenderHeightrenderScaleXrenderScaleYrenderWidthscreenHeightscreenWidthviewviewHeightviewWidthwindowwindowAlphawindowXwindowY

Constructor Summary

AccessConstructor and Description
public
SceneState(GlassScene vs)

Create the View State .

Method Summary

Modifier and TypeMethod and Description
pack-priv NGCamera
pack-priv Color
pack-priv Paint
public GlassScene

Returns:

the glass scene May be called on any thread.
getScene
()

Returns the glass scene for the view state .

public boolean
public boolean

Returns:

true if drawing can occur; false otherwise May be called on any thread. Must be called under the render lock.
isValid
()

Drawing can occur in a Glass view if the view exists (is not null), the window exists (is not null) and the view is attached to a window (ie.

public void
update()

Overrides com.sun.prism.PresentableState.update.

Updates the state of this object based on the current state of the glass scene.

public void
uploadPixels(PixelSource
- the source for the Pixels object to be uploaded
source
)

Overrides com.sun.prism.PresentableState.uploadPixels.

Put the pixels on the screen.

Inherited from com.sun.prism.PresentableState:
getAlphagetHeightgetNativeFrameBuffergetNativeViewgetNativeWindowgetOutputHeightgetOutputScaleXgetOutputScaleYgetOutputWidthgetPixelFormatgetRenderHeightgetRenderScaleXgetRenderScaleYgetRenderWidthgetScreenHeightgetScreenWidthgetViewgetWidthgetWindowgetWindowXgetWindowYhasWindowManagerisViewClosedisWindowMinimizedisWindowVisiblelockunlockupdate

Field Detail

cameraback to summary
private NGCamera camera
clearColorback to summary
private Color clearColor
currentPaintback to summary
private Paint currentPaint
sceneback to summary
pack-priv final GlassScene scene

Constructor Detail

SceneStateback to summary
public SceneState(GlassScene vs)

Create the View State . May only be called from the event thread.

Method Detail

getCameraback to summary
pack-priv NGCamera getCamera()
getClearColorback to summary
pack-priv Color getClearColor()
getCurrentPaintback to summary
pack-priv Paint getCurrentPaint()
getSceneback to summary
public GlassScene getScene()

Returns the glass scene for the view state .

Returns:GlassScene

the glass scene May be called on any thread.

isMSAAback to summary
public boolean isMSAA()

Overrides com.sun.prism.PresentableState.isMSAA.

Annotations
@Override
isValidback to summary
public boolean isValid()

Drawing can occur in a Glass view if the view exists (is not null), the window exists (is not null) and the view is attached to a window (ie. has not been closed).

Returns:boolean

true if drawing can occur; false otherwise May be called on any thread. Must be called under the render lock.

updateback to summary
public void update()

Overrides com.sun.prism.PresentableState.update.

Updates the state of this object based on the current state of the glass scene. May only be called from the event thread. Must be called under the render lock.

Annotations
@Override
uploadPixelsback to summary
public void uploadPixels(PixelSource source)

Overrides com.sun.prism.PresentableState.uploadPixels.

Put the pixels on the screen.

Parameters
source:PixelSource

- the source for the Pixels object to be uploaded

Annotations
@Override