APIdia Launch Partner
Top Description Methods
sun.java2d.pipe.hw

public Interface AccelGraphicsConfig

extends BufferedContextProvider
Known Direct Subinterfaces
sun.java2d.opengl.OGLGraphicsConfig
Imports
java.awt.image.VolatileImage

Implementors of this interface provida a way to create a VolatileImage whose destination surface is an AccelSurface of specified type.
See Also
AccelSurface

Method Summary

Modifier and TypeMethod and Description
public VolatileImage

Returns:

a VolatileImage backed up by requested accelerated surface type or null
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
)

Returns a VolatileImage with specified width, height, transparency and guaranteed accelerated surface type.

public ContextCapabilities

Returns:

ContextCapabilities object representing caps
getContextCapabilities
()

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

Inherited from sun.java2d.pipe.hw.BufferedContextProvider:
getContext

Method Detail

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

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

Exceptions
IllegalArgumentException:
if the transparency is not a valid value
See Also
AccelSurface#TEXTURE, AccelSurface#RT_PLAIN, AccelSurface#RT_TEXTURE
getContextCapabilitiesback to summary
public ContextCapabilities getContextCapabilities()

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

Returns:ContextCapabilities

ContextCapabilities object representing caps

See Also
ContextCapabilities