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

pack-priv Class J2DRTTexture

extends J2DTexture
implements RTTexture
Class Inheritance
All Implemented Interfaces
com.sun.prism.RTTexture, com.sun.prism.RenderTarget, com.sun.prism.Surface, com.sun.prism.Texture, com.sun.prism.GraphicsResource
Imports
com.sun.glass.ui.Screen, com.sun.javafx.image.impl.IntArgbPre, com.sun.prism.Graphics, .Image, .PixelFormat, .RTTexture, java.awt.image.BufferedImage, java.nio.Buffer, .ByteBuffer, .IntBuffer

Field Summary

Modifier and TypeField and Description
protected J2DResourceFactory
private boolean

Constructor Summary

AccessConstructor and Description
pack-priv
J2DRTTexture(int w, int h, J2DResourceFactory factory)

Method Summary

Modifier and TypeMethod and Description
pack-priv Graphics2D
public Graphics
public Screen
public int[]
public boolean
public boolean
public boolean
public boolean
readPixels(Buffer pixels, int x, int y, int width, int height)

Implements com.sun.prism.RTTexture.readPixels.

public boolean
public void
public void
update(Image img)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Image img, int dstx, int dsty)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Image img, int dstx, int dsty, int w, int h)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Image img, int dstx, int dsty, int srcw, int srch, boolean skipFlush)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image.

public void
update(Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)

Overrides com.sun.prism.j2d.J2DTexture.update.

Implements com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer.

Inherited from com.sun.prism.j2d.J2DTexture:
createcreateSharedTexturegetBufferedImageupdateupdateFromBuffer

Field Detail

factoryback to summary
protected J2DResourceFactory factory
opaqueback to summary
private boolean opaque

Constructor Detail

J2DRTTextureback to summary
pack-priv J2DRTTexture(int w, int h, J2DResourceFactory factory)

Method Detail

createAWTGraphics2Dback to summary
pack-priv Graphics2D createAWTGraphics2D()
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
getPixelsback to summary
public int[] getPixels()

Implements com.sun.prism.RTTexture.getPixels.

Annotations
@Override
isMSAAback to summary
public boolean isMSAA()

Implements com.sun.prism.RenderTarget.isMSAA.

Annotations
@Override
isOpaqueback to summary
public boolean isOpaque()

Implements com.sun.prism.RenderTarget.isOpaque.

Annotations
@Override
isVolatileback to summary
public boolean isVolatile()

Implements com.sun.prism.RTTexture.isVolatile.

Annotations
@Override
readPixelsback to summary
public boolean readPixels(Buffer pixels, int x, int y, int width, int height)

Implements com.sun.prism.RTTexture.readPixels.

Annotations
@Override
readPixelsback to summary
public boolean readPixels(Buffer pixels)

Implements com.sun.prism.RTTexture.readPixels.

Annotations
@Override
setOpaqueback to summary
public void setOpaque(boolean opaque)

Implements com.sun.prism.RenderTarget.setOpaque.

Annotations
@Override
updateback to summary
public void update(Image img)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX, contentY) of the texture, and the full width and height of the image will be uploaded. This method will cause the vertex buffer to be flushed prior to uploading the pixels.

This is equivalent to calling:

    update(img, 0, 0);
Annotations
@Override
updateback to summary
public void update(Image img, int dstx, int dsty)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the full width and height of the image will be uploaded. This method will cause the vertex buffer to be flushed prior to uploading the pixels.

This is equivalent to calling:

    update(img, dstx, dsty, img.getWidth(), img.getHeight());
Annotations
@Override
updateback to summary
public void update(Image img, int dstx, int dsty, int w, int h)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed prior to uploading the pixels.

This is equivalent to calling:

    update(img, dstx, dsty, srcw, srch, false);
Annotations
@Override
updateback to summary
public void update(Image img, int dstx, int dsty, int srcw, int srch, boolean skipFlush)

Overrides com.sun.prism.impl.BaseTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Image. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed unless skipFlush is true.

This is equivalent to calling:

    update(img.getPixelBuffer(), img.getPixelFormat(),
           dstx, dsty, img.getMinX(), img.getMinY(),
           srcw, srch, img.getScanlineStride(), skipFlush);
Annotations
@Override
updateback to summary
public void update(Buffer buffer, PixelFormat format, int dstx, int dsty, int srcx, int srcy, int srcw, int srch, int srcscan, boolean skipFlush)

Overrides com.sun.prism.j2d.J2DTexture.update.

Implements com.sun.prism.Texture.update.

Doc from com.sun.prism.Texture.update.

Updates this texture using the contents of the given Buffer. The upper-left corner of the image data will be positioned at (contentX+dstx, contentY+dsty) of the texture, and the source region to be uploaded will be srcw by srch pixels. This method will cause the vertex buffer to be flushed unless skipFlush is true.

Annotations
@Override