APIdia Launch Partner
Top Description Inners Fields Constructors Methods
sun.java2d.x11

public abstract Class X11SurfaceDataProxy

extends SurfaceDataProxy
implements Transparency
Class Inheritance
All Implemented Interfaces
java.awt.Transparency
Known Direct Subclasses
sun.java2d.x11.X11SurfaceDataProxy.Opaque, sun.java2d.x11.X11SurfaceDataProxy.Bitmask
Imports
java.awt.Color, .Transparency, java.awt.image.ColorModel, .DirectColorModel, .IndexColorModel, sun.awt.X11GraphicsConfig, sun.java2d.SunGraphics2D, .SurfaceData, .SurfaceDataProxy, sun.java2d.loops.CompositeType

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

Nested and Inner Type Summary

Modifier and TypeClass and Description
public static class
X11SurfaceDataProxy.Bitmask

Proxy for bitmask transparent source images.

public static class
X11SurfaceDataProxy.Opaque

Proxy for opaque source images.

Field Summary

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

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
public static SurfaceDataProxy
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:
activateDisplayListenerdisplayChangedflushflushgetRetryTrackerinvalidateisAcceleratedisCachingAllowedisSupportedOperationisValidpaletteChangedreplaceDataupdateSurfaceDataupdateSurfaceDataBg

Field Detail

x11gcback to summary
pack-priv X11GraphicsConfig x11gc

Constructor Detail

X11SurfaceDataProxyback to summary
public X11SurfaceDataProxy(X11GraphicsConfig x11gc)

Method Detail

createProxyback to summary
public static SurfaceDataProxy createProxy(SurfaceData srcData, X11GraphicsConfig dstConfig)
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
sun.java2d.x11 back to summary

public final Class X11SurfaceDataProxy.Bitmask

extends X11SurfaceDataProxy
Class Inheritance

Proxy for bitmask transparent source images. This proxy can accelerate unscaled Src copies or unscaled SrcOver copies that use an opaque bgColor.

Field Summary

Inherited from sun.java2d.x11.X11SurfaceDataProxy:
x11gc

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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.

Inherited from sun.java2d.x11.X11SurfaceDataProxy:
createProxyvalidateSurfaceData

Constructor Detail

Bitmaskback to summary
public Bitmask(X11GraphicsConfig x11gc)

Method Detail

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
sun.java2d.x11 back to summary

public final Class X11SurfaceDataProxy.Opaque

extends X11SurfaceDataProxy
Class Inheritance

Proxy for opaque source images. This proxy can accelerate unscaled Src copies.

Field Summary

Inherited from sun.java2d.x11.X11SurfaceDataProxy:
x11gc

Constructor Summary

AccessConstructor and Description
public

Method Summary

Modifier and TypeMethod and Description
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.

Inherited from sun.java2d.x11.X11SurfaceDataProxy:
createProxyvalidateSurfaceData

Constructor Detail

Opaqueback to summary
public Opaque(X11GraphicsConfig x11gc)

Method Detail

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