APIdia Launch Partner
Top Inners Fields Constructors Methods
com.sun.prism.j2d

public abstract Class J2DPresentable

extends Object
implements Presentable
Class Inheritance
All Implemented Interfaces
com.sun.prism.Presentable, com.sun.prism.RenderTarget, com.sun.prism.Surface
Known Direct Subclasses
com.sun.prism.j2d.J2DPresentable.Glass, com.sun.prism.j2d.J2DPresentable.Bimg, com.sun.prism.j2d.PrismPrintGraphics.PagePresentable
Imports
com.sun.glass.ui.Pixels, .Screen, com.sun.javafx.geom.Rectangle, com.sun.prism.Graphics, .Presentable, .PresentableState, .ResourceFactory, .Texture.WrapMode, com.sun.prism.impl.PrismSettings, .QueuedPixelSource, java.awt.Graphics2D, java.awt.image.BufferedImage, java.nio.ByteOrder, .IntBuffer

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class

Field Summary

Modifier and TypeField and Description
pack-priv BufferedImage
pack-priv J2DResourceFactory
pack-priv IntBuffer
pack-priv boolean
pack-priv J2DRTTexture

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
pack-priv static J2DPresentable
pack-priv static J2DPresentable
public abstract BufferedImage
createBuffer(int w, int h)

public Graphics
public Screen
pack-priv BufferedImage
public int
public int
public int
public int
public float
public float
pack-priv J2DRTTexture
pack-priv ResourceFactory
public boolean
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

bufferback to summary
pack-priv BufferedImage buffer
factoryback to summary
pack-priv J2DResourceFactory factory
ibback to summary
pack-priv IntBuffer ib
needsResizeback to summary
pack-priv boolean needsResize
readbackBufferback to summary
pack-priv J2DRTTexture readbackBuffer

Constructor Detail

J2DPresentableback to summary
pack-priv J2DPresentable(BufferedImage buffer, J2DResourceFactory factory)

Method Detail

createback to summary
pack-priv static J2DPresentable create(PresentableState pState, J2DResourceFactory factory)
createback to summary
pack-priv static J2DPresentable create(BufferedImage buffer, J2DResourceFactory factory)
createBufferback to summary
public abstract BufferedImage createBuffer(int w, int h)
createGraphicsback to summary
public Graphics createGraphics()

Implements com.sun.prism.RenderTarget.createGraphics.

Annotations
@Override
getAssociatedScreenback to summary
public Screen getAssociatedScreen()

Implements com.sun.prism.RenderTarget.getAssociatedScreen.

Annotations
@Override
getBackBufferback to summary
pack-priv BufferedImage getBackBuffer()
getContentXback to summary
public int getContentX()

Implements com.sun.prism.Surface.getContentX.

Annotations
@Override
getContentYback to summary
public int getContentY()

Implements com.sun.prism.Surface.getContentY.

Annotations
@Override
getPhysicalHeightback to summary
public int getPhysicalHeight()

Implements com.sun.prism.Surface.getPhysicalHeight.

Annotations
@Override
getPhysicalWidthback to summary
public int getPhysicalWidth()

Implements com.sun.prism.Surface.getPhysicalWidth.

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
getReadbackBufferback to summary
pack-priv J2DRTTexture getReadbackBuffer()
getResourceFactoryback to summary
pack-priv ResourceFactory getResourceFactory()
isMSAAback to summary
public boolean isMSAA()

Implements com.sun.prism.RenderTarget.isMSAA.

Annotations
@Override
com.sun.prism.j2d back to summary

private Class J2DPresentable.Bimg

extends J2DPresentable
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
Inherited from com.sun.prism.j2d.J2DPresentable:
bufferfactoryibneedsResizereadbackBuffer

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public BufferedImage
public int
public int
public boolean
public boolean
lockResources(PresentableState 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 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.

public void
Inherited from com.sun.prism.j2d.J2DPresentable:
createcreatecreateGraphicsgetAssociatedScreengetBackBuffergetContentXgetContentYgetPhysicalHeightgetPhysicalWidthgetPixelScaleFactorXgetPixelScaleFactorYgetReadbackBuffergetResourceFactoryisMSAA

Field Detail

opaqueback to summary
private boolean opaque

Constructor Detail

Bimgback to summary
public Bimg(BufferedImage buffer, J2DResourceFactory factory)

Method Detail

createBufferback to summary
public BufferedImage createBuffer(int w, int h)

Implements abstract com.sun.prism.j2d.J2DPresentable.createBuffer.

Annotations
@Override
getContentHeightback to summary
public int getContentHeight()

Implements com.sun.prism.Surface.getContentHeight.

Annotations
@Override
getContentWidthback to summary
public int getContentWidth()

Implements com.sun.prism.Surface.getContentWidth.

Annotations
@Override
isOpaqueback to summary
public boolean isOpaque()

Implements com.sun.prism.RenderTarget.isOpaque.

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().

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.

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
setOpaqueback to summary
public void setOpaque(boolean opaque)

Implements com.sun.prism.RenderTarget.setOpaque.

Annotations
@Override
com.sun.prism.j2d back to summary

private Class J2DPresentable.Glass

extends J2DPresentable
Class Inheritance

Field Summary

Modifier and TypeField and Description
private boolean
private Pixels
private QueuedPixelSource
private final PresentableState
private final int
Inherited from com.sun.prism.j2d.J2DPresentable:
bufferfactoryibneedsResizereadbackBuffer

Constructor Summary

AccessConstructor and Description
pack-priv

Method Summary

Modifier and TypeMethod and Description
public BufferedImage
public int
public int
public boolean
public boolean
lockResources(PresentableState 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 dirty)

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.

public void
Inherited from com.sun.prism.j2d.J2DPresentable:
createcreatecreateGraphicsgetAssociatedScreengetBackBuffergetContentXgetContentYgetPhysicalHeightgetPhysicalWidthgetPixelScaleFactorXgetPixelScaleFactorYgetReadbackBuffergetResourceFactoryisMSAA

Field Detail

opaqueback to summary
private boolean opaque
pixelsback to summary
private Pixels pixels
pixelSourceback to summary
private QueuedPixelSource pixelSource
pStateback to summary
private final PresentableState pState
theFormatback to summary
private final int theFormat

Constructor Detail

Glassback to summary
pack-priv Glass(PresentableState pState, J2DResourceFactory factory)

Method Detail

createBufferback to summary
public BufferedImage createBuffer(int w, int h)

Implements abstract com.sun.prism.j2d.J2DPresentable.createBuffer.

Annotations
@Override
getContentHeightback to summary
public int getContentHeight()

Implements com.sun.prism.Surface.getContentHeight.

Annotations
@Override
getContentWidthback to summary
public int getContentWidth()

Implements com.sun.prism.Surface.getContentWidth.

Annotations
@Override
isOpaqueback to summary
public boolean isOpaque()

Implements com.sun.prism.RenderTarget.isOpaque.

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().

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

Implements com.sun.prism.Presentable.prepare.

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

display the indicated region to the user.

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
setOpaqueback to summary
public void setOpaque(boolean opaque)

Implements com.sun.prism.RenderTarget.setOpaque.

Annotations
@Override