APIdia Launch Partner
Top Inners Fields Constructors Methods
sun.java2d.xr

public abstract Class XRSurfaceData

extends XSurfaceData
Class Inheritance
Known Direct Subclasses
sun.java2d.xr.XRSurfaceData.XRWindowSurfaceData, sun.java2d.xr.XRSurfaceData.XRInternalSurfaceData, sun.java2d.xr.XRSurfaceData.XRPixmapSurfaceData
Imports
java.awt.AlphaComposite, .GraphicsConfiguration, .GraphicsDevice, .GraphicsEnvironment, .Image, .Rectangle, .Transparency, java.awt.geom.AffineTransform, java.awt.image.ColorModel, .DirectColorModel, .Raster, sun.awt.SunHints, .SunToolkit, .X11ComponentPeer, sun.awt.image.PixelConverter, sun.font.FontManagerNativeLibrary, sun.java2d.InvalidPipeException, .SunGraphics2D, .SurfaceData, .SurfaceDataProxy, sun.java2d.loops.CompositeType, .MaskFill, .RenderLoops, .SurfaceType, .XORComposite, sun.java2d.pipe.PixelToShapeConverter, .Region, .ShapeDrawPipe, .TextPipe, .ValidatePipe, sun.java2d.x11.XSurfaceData

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
public static class
public static class
public static class

Field Summary

Modifier and TypeField and Description
protected PixelToShapeConverter
protected ShapeDrawPipe
public static final SurfaceType
protected int
public static final String
public static final String
public static final String
pack-priv XRGraphicsConfig
public static final SurfaceType
public static final SurfaceType
public XRCompositeManager
pack-priv X11ComponentPeer
public int
pack-priv XRBackend
private RenderLoops
pack-priv AffineTransform
pack-priv boolean
private Region
private boolean
pack-priv int
private Region
private int
pack-priv int
pack-priv AffineTransform
private XORComposite
private long
private int
protected XRDrawImage
protected XRRenderer
protected TextPipe
protected PixelToShapeConverter

Constructor Summary

AccessConstructor and Description
protected
XRSurfaceData(X11ComponentPeer peer, XRGraphicsConfig gc, SurfaceType sType, ColorModel cm, int depth, int transparency)

protected
XRSurfaceData(XRBackend renderQueue)

Method Summary

Modifier and TypeMethod and Description
public abstract boolean

Returns:

true if there is any chance that an XCopyArea from the given source coordinates could produce any X11 Exposure events.
canSourceSendExposures
(int x, int y, int w, int h)

Returns a boolean indicating whether or not a copyArea from the given rectangle source coordinates might be incomplete and result in X11 GraphicsExposure events being generated from XCopyArea.

public boolean
copyArea(SunGraphics2D sg2d, int x, int y, int w, int h, int dx, int dy)

Overrides sun.java2d.SurfaceData.copyArea.

Performs a copyarea within this surface.

public static XRSurfaceData.XRWindowSurfaceData
createData(X11ComponentPeer peer)

Method for instantiating a Window SurfaceData

public static XRSurfaceData.XRPixmapSurfaceData
createData(XRGraphicsConfig gc, int width, int height, ColorModel cm, Image image, long drawable, int transparency, boolean isTexture)

Method for instantiating a Pixmap SurfaceData (offscreen).

pack-priv native void
freeXSDOPicture(long xsdo)

public GraphicsConfiguration
getDeviceConfiguration()

Implements abstract sun.java2d.SurfaceData.getDeviceConfiguration.

Return the GraphicsConfiguration object that describes this destination surface.

public static XRGraphicsConfig
public long
public XRGraphicsConfig
protected MaskFill
getMaskFill(SunGraphics2D sg2d)

Overrides sun.java2d.SurfaceData.getMaskFill.

Returns a MaskFill object that can be used on this destination with the source (paint) and composite types determined by the given SunGraphics2D, or null if no such MaskFill object can be located.

public int
public static SurfaceType
getPixmapSurfaceType(int transparency)

Returns the XRender SurfaceType which is able to fulfill the specified transparency requirement.

public Raster
getRaster(int x, int y, int w, int h)

Implements abstract sun.java2d.SurfaceData.getRaster.

Return a readable Raster which contains the pixels for the specified rectangular region of the destination surface.

public RenderLoops
getRenderLoops(SunGraphics2D sg2d)

Overrides sun.java2d.SurfaceData.getRenderLoops.

Return a RenderLoops object containing all of the basic GraphicsPrimitive objects for rendering to the destination surface with the current attributes of the given SunGraphics2D.

protected TextPipe
public int
private static native void
public void
initXRender(int pictureFormat)

Inits the XRender-data-structures which belong to the XRSurfaceData.

pack-priv native void
initXRPicture(long xsdo, int pictForm)

public static void
public void
invalidate()

Overrides sun.java2d.SurfaceData.invalidate.

Sets this SurfaceData object to the invalid state.

protected boolean
isXRDrawableValid()

Synchronized accessor method for isDrawableValid.

public synchronized void
public SurfaceDataProxy
makeProxyFor(SurfaceData srcData)

Overrides sun.java2d.SurfaceData.makeProxyFor.

This method is called on a destination SurfaceData to choose a proper SurfaceDataProxy subclass for a source SurfaceData to use to control when and with what surface to override a given image operation.

public void
public void
validateAsDestination(SunGraphics2D sg2d, Region clip)

Validates the Surface when used as destination.

pack-priv void
validateAsSource(AffineTransform sxForm, int repeat, int filter)

Validates an XRSurfaceData when used as source.

public void
validateCopyAreaGC(Region gcClip, boolean needExposures)

CopyArea is implemented using the "old" X11 GC, therefore clip and needExposures have to be validated against that GC.

public void
protected native void
XRInitSurface(int depth, int width, int height, long drawable, int pictFormat)

Inherited from sun.java2d.x11.XSurfaceData:
flushNativeSurfaceinitOpsisDrawableValidisX11SurfaceDataInitializedsetInvalidsetX11SurfaceDataInitializedXCreateGCXResetClipXSetClipXSetGraphicsExposures