Top Fields Constructors Methods
com.sun.prism.sw

pack-priv final Class SWPresentable

extends SWRTTexture
implements Presentable
Class Inheritance
All Implemented Interfaces
com.sun.prism.Presentable, com.sun.prism.RenderTarget, com.sun.prism.Surface
Imports
com.sun.glass.ui.Pixels, com.sun.javafx.geom.Rectangle, com.sun.prism.Presentable, .PresentableState, com.sun.prism.impl.QueuedPixelSource, java.nio.IntBuffer

Field Summary

Modifier and TypeField and Description
private Pixels
private QueuedPixelSource
private final PresentableState

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public int
public int
public float
public float
public boolean
public boolean
lockResources(PresentableState
The presentation state for the upcoming pulse
pState
)

Implements com.sun.prism.Presentable.lockResources.

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
prepare(Rectangle
display region or null for full area
dirtyregion
)

Implements com.sun.prism.Presentable.prepare.

display the indicated region to the user.

public boolean
present()

Implements com.sun.prism.Presentable.present.

present the prepared region to the user.

Inherited from com.sun.prism.sw.SWRTTexture:
createGraphicsgetAssociatedScreengetDimensionsgetPixelsgetSurfaceisOpaqueisVolatilereadPixelsreadPixelssetOpaque

Field Detail

pixelsback to summary
private Pixels pixels
pixelSourceback to summary
private QueuedPixelSource pixelSource
pStateback to summary
private final PresentableState pState

Constructor Detail

SWPresentableback to summary
public SWPresentable(PresentableState pState, SWResourceFactory factory)

Method Detail

getContentHeightback to summary
public int getContentHeight()

Overrides com.sun.prism.sw.SWTexture.getContentHeight.

Implements com.sun.prism.Surface.getContentHeight, com.sun.prism.Texture.getContentHeight.

Doc from com.sun.prism.Texture.getContentHeight.

Returns the content height of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content height will be less than or equal to the content height.

For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256, but the content dimensions will be 400x200.

Returns:int

the content height of this texture, in pixels

Annotations
@Override
getContentWidthback to summary
public int getContentWidth()

Overrides com.sun.prism.sw.SWTexture.getContentWidth.

Implements com.sun.prism.Surface.getContentWidth, com.sun.prism.Texture.getContentWidth.

Doc from com.sun.prism.Texture.getContentWidth.

Returns the content width of this texture, in pixels. Note that the content size of a texture may be smaller than the requested size due to hardware restrictions (e.g. lack of non-power-of-two texture support). The content width will be less than or equal to the content width.

For example, if the hardware does not support non-power-of-two textures, and you call ResourceFactory.createTexture(400, 200), the returned Texture will have physical dimensions of 512x256, but the content dimensions will be 400x200.

Returns:int

the content width of this texture, in pixels

Annotations
@Override
getPixelScaleFactorXback to summary
public float getPixelScaleFactorX()

Implements com.sun.prism.Presentable.getPixelScaleFactorX.

Annotations
@Override
getPixelScaleFactorYback to summary
public float getPixelScaleFactorY()

Implements com.sun.prism.Presentable.getPixelScaleFactorY.

Annotations
@Override
isMSAAback to summary
public boolean isMSAA()

Overrides com.sun.prism.sw.SWRTTexture.isMSAA.

Implements com.sun.prism.RenderTarget.isMSAA.

Annotations
@Override
lockResourcesback to summary
public boolean lockResources(PresentableState pState)

Implements com.sun.prism.Presentable.lockResources.

Doc from com.sun.prism.Presentable.lockResources.

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

Annotations
@Override
prepareback to summary
public boolean prepare(Rectangle dirtyregion)

Implements com.sun.prism.Presentable.prepare.

Doc from com.sun.prism.Presentable.prepare.

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

Annotations
@Override
presentback to summary
public boolean present()

Implements com.sun.prism.Presentable.present.

Doc from com.sun.prism.Presentable.present.

present the prepared region to the user.

Annotations
@Override