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

public final Class XRSurfaceDataProxy

extends SurfaceDataProxy
implements Transparency
Class Inheritance
All Implemented Interfaces
java.awt.Transparency
Imports
java.awt.Color, .Transparency, sun.java2d.SurfaceData, .SurfaceDataProxy, sun.java2d.loops.CompositeType

The proxy class contains the logic if to replace a SurfaceData with a cached X11 Pixmap and the code to create the accelerated surfaces.

Field Summary

Modifier and TypeField and Description
pack-priv int
pack-priv XRGraphicsConfig
Inherited from sun.java2d.SurfaceDataProxy:
UNCACHED

Constructor Summary

AccessConstructor and Description
public
public
XRSurfaceDataProxy(XRGraphicsConfig x11gc, int transparency)

Method Summary

Modifier and TypeMethod and Description
public static SurfaceDataProxy
public int
getTransparency()

Implements java.awt.Transparency.getTransparency.

Returns the type of this Transparency.

public boolean
isSupportedOperation(SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)

Implements abstract sun.java2d.SurfaceDataProxy.isSupportedOperation.

Determine if an alternate form for the srcData is needed and appropriate from the given operational parameters.

public SurfaceData
validateSurfaceData(SurfaceData srcData, SurfaceData cachedData, int w, int h)

Implements abstract sun.java2d.SurfaceDataProxy.validateSurfaceData.

Construct an alternate form of the given SurfaceData.

Inherited from sun.java2d.SurfaceDataProxy:
activateDisplayListenerdisplayChangedflushflushgetRetryTrackerinvalidateisAcceleratedisCachingAllowedisValidpaletteChangedreplaceDataupdateSurfaceDataupdateSurfaceDataBg

Field Detail

transparencyback to summary
pack-priv int transparency
xrgcback to summary
pack-priv XRGraphicsConfig xrgc

Constructor Detail

XRSurfaceDataProxyback to summary
public XRSurfaceDataProxy(XRGraphicsConfig x11gc)
XRSurfaceDataProxyback to summary
public XRSurfaceDataProxy(XRGraphicsConfig x11gc, int transparency)

Method Detail

createProxyback to summary
public static SurfaceDataProxy createProxy(SurfaceData srcData, XRGraphicsConfig dstConfig)
getTransparencyback to summary
public int getTransparency()

Implements java.awt.Transparency.getTransparency.

Doc from java.awt.Transparency.getTransparency.

Returns the type of this Transparency.

Annotations
@Override
isSupportedOperationback to summary
public boolean isSupportedOperation(SurfaceData srcData, int txtype, CompositeType comp, Color bgColor)

Implements abstract sun.java2d.SurfaceDataProxy.isSupportedOperation.

Doc from sun.java2d.SurfaceDataProxy.isSupportedOperation.

Determine if an alternate form for the srcData is needed and appropriate from the given operational parameters.

Annotations
@Override
validateSurfaceDataback to summary
public SurfaceData validateSurfaceData(SurfaceData srcData, SurfaceData cachedData, int w, int h)

Implements abstract sun.java2d.SurfaceDataProxy.validateSurfaceData.

Doc from sun.java2d.SurfaceDataProxy.validateSurfaceData.

Construct an alternate form of the given SurfaceData. The contents of the returned SurfaceData may be undefined since the calling code will take care of updating the contents with a subsequent call to updateSurfaceData.

If the method returns null then there was a problem with allocating the accelerated surface. The getRetryTracker() method will be called to track when to attempt another revalidation.

Annotations
@Override