Top Inners Fields Constructors Methods
sun.java2d.opengl

public final Class GLXGraphicsConfig

extends X11GraphicsConfig
implements OGLGraphicsConfig
Class Inheritance
All Implemented Interfaces
sun.java2d.opengl.OGLGraphicsConfig, sun.awt.image.SurfaceManager.ProxiedGraphicsConfig, sun.java2d.pipe.hw.AccelGraphicsConfig, sun.java2d.pipe.hw.BufferedContextProvider
Imports
java.awt.AWTException, .BufferCapabilities, .Color, .Component, .Graphics, .Graphics2D, .Image, .ImageCapabilities, .Transparency, java.awt.color.ColorSpace, java.awt.image.BufferedImage, .ColorModel, .DataBuffer, .DirectColorModel, .VolatileImage, .WritableRaster, sun.awt.X11ComponentPeer, .X11GraphicsConfig, .X11GraphicsDevice, .X11GraphicsEnvironment, sun.awt.image.OffScreenImage, .SunVolatileImage, .SurfaceManager, sun.java2d.SunGraphics2D, .Surface, .SurfaceData, sun.java2d.opengl.GLXSurfaceData.GLXVSyncOffScreenSurfaceData, sun.java2d.pipe.hw.AccelSurface, .AccelTypedVolatileImage, .ContextCapabilities

Nested and Inner Type Summary

Modifier and TypeClass and Description
private static class
private static class
GLXGraphicsConfig.GLXGetConfigInfo

This is a small helper class that allows us to execute getGLXConfigInfo() on the queue flushing thread.

private static class

Field Summary

Modifier and TypeField and Description
private BufferCapabilities
private final OGLContext
private static ImageCapabilities
private ContextCapabilities
private long
Inherited from sun.awt.X11GraphicsConfig:
bitsPerPixelsolidloopssurfaceTypevisual

Constructor Summary

AccessConstructor and Description
private
GLXGraphicsConfig(X11GraphicsDevice device, int visualnum, long configInfo, ContextCapabilities oglCaps)

Method Summary

Modifier and TypeMethod and Description
public Image
createAcceleratedImage(Component target, int width, int height)

Overrides sun.awt.X11GraphicsConfig.createAcceleratedImage.

Creates a new hidden-acceleration image of the given width and height that is associated with the target Component.
public long
createBackBuffer(X11ComponentPeer peer, int numBuffers, BufferCapabilities caps)

Overrides sun.awt.X11GraphicsConfig.createBackBuffer.

Attempts to create a GLX-based backbuffer for the given peer.
public VolatileImage
createBackBufferImage(Component target, long backBuffer)

Overrides sun.awt.X11GraphicsConfig.createBackBufferImage.

Creates a VolatileImage that essentially wraps the target Component's backbuffer (the provided backbuffer handle is essentially ignored).
public BufferedImage
createCompatibleImage(int
the width of the returned BufferedImage
width
,
int
the height of the returned BufferedImage
height
)

Overrides java.awt.GraphicsConfiguration.createCompatibleImage.

Returns a BufferedImage with a data layout and color model compatible with this GraphicsConfiguration.
public VolatileImage
createCompatibleVolatileImage(int
the width of the returned VolatileImage
width
,
int
the height of the returned VolatileImage
height
,
int
the specified transparency mode
transparency
,
int
requested accelerated surface type as specified by constants in AccelSurface interface
type
)

Implements sun.java2d.pipe.hw.AccelGraphicsConfig.createCompatibleVolatileImage.

Returns a VolatileImage with specified width, height, transparency and guaranteed accelerated surface type.
public SurfaceData
public SurfaceData
createSurfaceData(X11ComponentPeer peer)

Overrides sun.awt.X11GraphicsConfig.createSurfaceData.

Creates a new SurfaceData that will be associated with the given X11ComponentPeer.
public void
destroyBackBuffer(long backBuffer)

Overrides sun.awt.X11GraphicsConfig.destroyBackBuffer.

Destroys the backbuffer object represented by the given handle value.
public void
flip(X11ComponentPeer peer, Component target, VolatileImage xBackBuffer, int x1, int y1, int x2, int y2, BufferCapabilities.FlipContents flipAction)

Overrides sun.awt.X11GraphicsConfig.flip.

Performs the native GLX flip operation for the given target Component.
public BufferCapabilities
getBufferCapabilities()

Overrides sun.awt.X11GraphicsConfig.getBufferCapabilities.

Returns the buffering capabilities of this GraphicsConfiguration.
public ColorModel
getColorModel(int
the specified transparency mode
transparency
)

Overrides sun.awt.X11GraphicsConfig.getColorModel.

Returns the color model associated with this configuration that supports the specified transparency.
public static GLXGraphicsConfig
getConfig(X11GraphicsDevice device, int visualnum)

public final OGLContext
getContext()

Implements sun.java2d.opengl.OGLGraphicsConfig.getContext.

Retrieves a context associated with object implementing this interface.
public ContextCapabilities
getContextCapabilities()

Implements sun.java2d.pipe.hw.AccelGraphicsConfig.getContextCapabilities.

Returns object representing capabilities of the context associated with this AccelGraphicsConfig.
private static native long
getGLXConfigInfo(int screennum, int visualnum)

public ImageCapabilities
getImageCapabilities()

Overrides sun.awt.X11GraphicsConfig.getImageCapabilities.

Returns the image capabilities of this GraphicsConfiguration.
public final long
private static native int
getOGLCapabilities(long configInfo)

public Object
getProxyKey()

Overrides sun.awt.X11GraphicsConfig.getProxyKey.

Implements sun.awt.image.SurfaceManager.ProxiedGraphicsConfig.getProxyKey.

Return the key that destination surfaces created on the given GraphicsConfiguration use to store SurfaceDataProxy objects for their cached copies.
private native void
initConfig(long aData, long ctxinfo)

public final boolean
isCapPresent(int cap)

Implements sun.java2d.opengl.OGLGraphicsConfig.isCapPresent.

Returns true if the provided capability bit is present for this config.
public String
toString()

Overrides sun.awt.X11GraphicsConfig.toString.

Returns a string representation of the object.
Inherited from sun.awt.X11GraphicsConfig:
createABGRCCMcreateDCM32getADatagetBitsPerPixelgetBoundsgetColormapgetColorModelgetConfiggetConfiggetDefaultTransformgetDepthgetDevicegetNormalizingTransformgetScalegetSolidLoopsgetSurfaceTypegetVisualisDoubleBufferedisTranslucencyCapablescaleDownscaleUp

Field Detail

bufferCapsback to summary
private BufferCapabilities bufferCaps

Hides sun.awt.X11GraphicsConfig.bufferCaps.

contextback to summary
private final OGLContext context
imageCapsback to summary
private static ImageCapabilities imageCaps

Hides sun.awt.X11GraphicsConfig.imageCaps.

oglCapsback to summary
private ContextCapabilities oglCaps
pConfigInfoback to summary
private long pConfigInfo

Constructor Detail

GLXGraphicsConfigback to summary
private GLXGraphicsConfig(X11GraphicsDevice device, int visualnum, long configInfo, ContextCapabilities oglCaps)

Method Detail

createAcceleratedImageback to summary
public Image createAcceleratedImage(Component target, int width, int height)

Overrides sun.awt.X11GraphicsConfig.createAcceleratedImage.

Creates a new hidden-acceleration image of the given width and height that is associated with the target Component.

Annotations
@Override
createBackBufferback to summary
public long createBackBuffer(X11ComponentPeer peer, int numBuffers, BufferCapabilities caps) throws AWTException

Overrides sun.awt.X11GraphicsConfig.createBackBuffer.

Attempts to create a GLX-based backbuffer for the given peer. If the requested configuration is not natively supported, an AWTException is thrown. Otherwise, if the backbuffer creation is successful, a value of 1 is returned.

Annotations
@Override
createBackBufferImageback to summary
public VolatileImage createBackBufferImage(Component target, long backBuffer)

Overrides sun.awt.X11GraphicsConfig.createBackBufferImage.

Creates a VolatileImage that essentially wraps the target Component's backbuffer (the provided backbuffer handle is essentially ignored).

Annotations
@Override
createCompatibleImageback to summary
public BufferedImage createCompatibleImage(int width, int height)

Overrides java.awt.GraphicsConfiguration.createCompatibleImage.

Doc from java.awt.GraphicsConfiguration.createCompatibleImage.

Returns a BufferedImage with a data layout and color model compatible with this GraphicsConfiguration. This method has nothing to do with memory-mapping a device. The returned BufferedImage has a layout and color model that is closest to this native device configuration and can therefore be optimally blitted to this device.

Parameters
width:int

the width of the returned BufferedImage

height:int

the height of the returned BufferedImage

Returns:BufferedImage

a BufferedImage whose data layout and color model is compatible with this GraphicsConfiguration.

Annotations
@Override
createCompatibleVolatileImageback to summary
public VolatileImage createCompatibleVolatileImage(int width, int height, int transparency, int type)

Implements sun.java2d.pipe.hw.AccelGraphicsConfig.createCompatibleVolatileImage.

Doc from sun.java2d.pipe.hw.AccelGraphicsConfig.createCompatibleVolatileImage.

Returns a VolatileImage with specified width, height, transparency and guaranteed accelerated surface type. If such image can not be created (out of vram error, specific surface type is not supported) null is returned.

Note

if AccelSurface#TEXTURE type is requested, rendering to the image will be denied by throwing UnsupportedOperationException from java.awt.image.VolatileImage#getGraphics and java.awt.image.VolatileImage#createGraphics

Parameters
width:int

the width of the returned VolatileImage

height:int

the height of the returned VolatileImage

transparency:int

the specified transparency mode

type:int

requested accelerated surface type as specified by constants in AccelSurface interface

Returns:VolatileImage

a VolatileImage backed up by requested accelerated surface type or null

Annotations
@Override
createManagedSurfaceback to summary
public SurfaceData createManagedSurface(int w, int h, int transparency)

Implements sun.java2d.opengl.OGLGraphicsConfig.createManagedSurface.

Annotations
@Override
createSurfaceDataback to summary
public SurfaceData createSurfaceData(X11ComponentPeer peer)

Overrides sun.awt.X11GraphicsConfig.createSurfaceData.

Creates a new SurfaceData that will be associated with the given X11ComponentPeer.

Annotations
@Override
destroyBackBufferback to summary
public void destroyBackBuffer(long backBuffer)

Overrides sun.awt.X11GraphicsConfig.destroyBackBuffer.

Destroys the backbuffer object represented by the given handle value.

Annotations
@Override
flipback to summary
public void flip(X11ComponentPeer peer, Component target, VolatileImage xBackBuffer, int x1, int y1, int x2, int y2, BufferCapabilities.FlipContents flipAction)

Overrides sun.awt.X11GraphicsConfig.flip.

Performs the native GLX flip operation for the given target Component.

Annotations
@Override
getBufferCapabilitiesback to summary
public BufferCapabilities getBufferCapabilities()

Overrides sun.awt.X11GraphicsConfig.getBufferCapabilities.

Doc from java.awt.GraphicsConfiguration.getBufferCapabilities.

Returns the buffering capabilities of this GraphicsConfiguration.

Returns:BufferCapabilities

the buffering capabilities of this graphics configuration object

Annotations
@Override
getColorModelback to summary
public ColorModel getColorModel(int transparency)

Overrides sun.awt.X11GraphicsConfig.getColorModel.

Doc from sun.awt.X11GraphicsConfig.getColorModel.

Returns the color model associated with this configuration that supports the specified transparency.

Parameters
transparency:int

Doc from java.awt.GraphicsConfiguration.getColorModel.

the specified transparency mode

Returns:ColorModel

Doc from java.awt.GraphicsConfiguration.getColorModel.

a ColorModel object that is associated with this GraphicsConfiguration and supports the specified transparency or null if the transparency is not a valid value.

Annotations
@Override
getConfigback to summary
public static GLXGraphicsConfig getConfig(X11GraphicsDevice device, int visualnum)
getContextback to summary
public final OGLContext getContext()

Implements sun.java2d.opengl.OGLGraphicsConfig.getContext.

Doc from sun.java2d.pipe.hw.BufferedContextProvider.getContext.

Retrieves a context associated with object implementing this interface.

Returns:OGLContext

associated context

Annotations
@Override
getContextCapabilitiesback to summary
public ContextCapabilities getContextCapabilities()

Implements sun.java2d.pipe.hw.AccelGraphicsConfig.getContextCapabilities.

Doc from sun.java2d.pipe.hw.AccelGraphicsConfig.getContextCapabilities.

Returns object representing capabilities of the context associated with this AccelGraphicsConfig.

Returns:ContextCapabilities

ContextCapabilities object representing caps

Annotations
@Override
getGLXConfigInfoback to summary
private static native long getGLXConfigInfo(int screennum, int visualnum)
getImageCapabilitiesback to summary
public ImageCapabilities getImageCapabilities()

Overrides sun.awt.X11GraphicsConfig.getImageCapabilities.

Doc from java.awt.GraphicsConfiguration.getImageCapabilities.

Returns the image capabilities of this GraphicsConfiguration.

Returns:ImageCapabilities

the image capabilities of this graphics configuration object

Annotations
@Override
getNativeConfigInfoback to summary
public final long getNativeConfigInfo()

Implements sun.java2d.opengl.OGLGraphicsConfig.getNativeConfigInfo.

Annotations
@Override
getOGLCapabilitiesback to summary
private static native int getOGLCapabilities(long configInfo)
getProxyKeyback to summary
public Object getProxyKey()

Overrides sun.awt.X11GraphicsConfig.getProxyKey.

Implements sun.awt.image.SurfaceManager.ProxiedGraphicsConfig.getProxyKey.

Doc from sun.awt.image.SurfaceManager.ProxiedGraphicsConfig.getProxyKey.

Return the key that destination surfaces created on the given GraphicsConfiguration use to store SurfaceDataProxy objects for their cached copies.

Annotations
@Override
initConfigback to summary
private native void initConfig(long aData, long ctxinfo)
isCapPresentback to summary
public final boolean isCapPresent(int cap)

Implements sun.java2d.opengl.OGLGraphicsConfig.isCapPresent.

Returns true if the provided capability bit is present for this config. See OGLContext.java for a list of supported capabilities.

Annotations
@Override
toStringback to summary
public String toString()

Overrides sun.awt.X11GraphicsConfig.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object.

Returns:String

a string representation of the object

sun.java2d.opengl back to summary

private Class GLXGraphicsConfig.GLXBufferCaps

extends BufferCapabilities
Class Inheritance

Constructor Summary

AccessConstructor and Description
public
GLXBufferCaps(boolean dblBuf)

Method Summary

Inherited from java.awt.BufferCapabilities:
clonegetBackBufferCapabilitiesgetFlipContentsgetFrontBufferCapabilitiesisFullScreenRequiredisMultiBufferAvailableisPageFlipping

Constructor Detail

GLXBufferCapsback to summary
public GLXBufferCaps(boolean dblBuf)
sun.java2d.opengl back to summary

private Class GLXGraphicsConfig.GLXGetConfigInfo

extends Object
implements Runnable
Class Inheritance
All Implemented Interfaces
java.lang.Runnable

This is a small helper class that allows us to execute getGLXConfigInfo() on the queue flushing thread.

Field Summary

Modifier and TypeField and Description
private long
private int
private int

Constructor Summary

AccessConstructor and Description
private
GLXGetConfigInfo(int screen, int visual)

Method Summary

Modifier and TypeMethod and Description
public long
public void
run()

Implements java.lang.Runnable.run.

Runs this operation.
Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAlltoStringwaitwaitwait

Field Detail

cfginfoback to summary
private long cfginfo
screenback to summary
private int screen
visualback to summary
private int visual

Constructor Detail

GLXGetConfigInfoback to summary
private GLXGetConfigInfo(int screen, int visual)

Method Detail

getConfigInfoback to summary
public long getConfigInfo()
runback to summary
public void run()

Implements java.lang.Runnable.run.

Doc from java.lang.Runnable.run.

Runs this operation.

sun.java2d.opengl back to summary

private Class GLXGraphicsConfig.GLXImageCaps

extends ImageCapabilities
Class Inheritance

Constructor Summary

AccessConstructor and Description
private

Method Summary

Modifier and TypeMethod and Description
public boolean
isTrueVolatile()

Overrides java.awt.ImageCapabilities.isTrueVolatile.

Returns true if the VolatileImage described by this ImageCapabilities can lose its surfaces.
Inherited from java.awt.ImageCapabilities:
cloneisAccelerated

Constructor Detail

GLXImageCapsback to summary
private GLXImageCaps()

Method Detail

isTrueVolatileback to summary
public boolean isTrueVolatile()

Overrides java.awt.ImageCapabilities.isTrueVolatile.

Doc from java.awt.ImageCapabilities.isTrueVolatile.

Returns true if the VolatileImage described by this ImageCapabilities can lose its surfaces.

Returns:boolean

whether or not a volatile image is subject to losing its surfaces at the whim of the operating system.