Top Methods
com.sun.prism

public Interface Presentable

extends RenderTarget
Known Direct Implementers
com.sun.prism.null3d.DummySwapChain, com.sun.prism.d3d.D3DSwapChain, com.sun.prism.es2.ES2SwapChain, com.sun.prism.j2d.J2DPresentable, com.sun.prism.sw.SWPresentable
Imports
com.sun.javafx.geom.Rectangle

Method Summary

Modifier and TypeMethod and Description
public float
public float
public boolean

Returns:

true if the caller should recreate the Presentable
lockResources
(PresentableState
The presentation state for the upcoming pulse
pState
)

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated.

public boolean

Returns:

true if the provided region was successfully displayed, false otherwise
prepare
(Rectangle
display region or null for full area
dirtyregion
)

display the indicated region to the user.

public boolean
present()

present the prepared region to the user.

Inherited from com.sun.prism.RenderTarget:
createGraphicsgetAssociatedScreenisMSAAisOpaquesetOpaque

Method Detail

getPixelScaleFactorXback to summary
public float getPixelScaleFactorX()
getPixelScaleFactorYback to summary
public float getPixelScaleFactorY()
lockResourcesback to summary
public boolean lockResources(PresentableState pState)

Locks any underlying resources needed for a createGraphics/prepare/present sequence and returns a boolean indicating if the presentable needs to be recreated. If the method returns true and the Presentable implements GraphicsResource then its dispose() method will be called prior to recreating a new Presentable object and so no resource should need to be locked in that case. The resources will be unlocked in either prepare() or present().

Parameters
pState:PresentableState

The presentation state for the upcoming pulse

Returns:boolean

true if the caller should recreate the Presentable

prepareback to summary
public boolean prepare(Rectangle dirtyregion)

display the indicated region to the user.

Parameters
dirtyregion:Rectangle

display region or null for full area

Returns:boolean

true if the provided region was successfully displayed, false otherwise

presentback to summary
public boolean present()

present the prepared region to the user.