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

public Class ContextCapabilities

extends Object
Class Inheritance
Known Direct Subclasses
sun.java2d.opengl.OGLContext.OGLContextCaps

Represents a set of capabilities of a BufferedContext and associated AccelGraphicsConfig.
See Also
AccelGraphicsConfig

Field Summary

Modifier and TypeField and Description
protected final String
protected final int
public static final int
CAPS_EMPTY

Indicates that the context has no capabilities.

public static final int
CAPS_MULTITEXTURE

Indicates that the context supports multitexturing.

public static final int
CAPS_PS20

Indicates that the context supports pixel shader 2.0 or better.

public static final int
CAPS_PS30

Indicates that the context supports pixel shader 3.0 or better.

public static final int
CAPS_RT_PLAIN_ALPHA

Indicates that the context supports RT surfaces with alpha channel.

public static final int
CAPS_RT_TEXTURE_ALPHA

Indicates that the context supports RT textures with alpha channel.

public static final int
CAPS_RT_TEXTURE_OPAQUE

Indicates that the context supports opaque RT textures.

public static final int
CAPS_TEXNONPOW2

Indicates that the context supports non-pow2 texture dimensions.

public static final int
CAPS_TEXNONSQUARE

Indicates that the context supports non-square textures.

protected static final int

Constructor Summary

AccessConstructor and Description
protected
ContextCapabilities(int
an int representing the capabilities
caps
,
String
String representing the name of the adapter, or null, in which case the adapterId will be set to "unknown adapter".
adapterId
)

Constructs a ContextCapabilities object.

Method Summary

Modifier and TypeMethod and Description
public String

Returns:

string representing adapter id
getAdapterId
()

Returns a string representing the name of the graphics adapter if such could be determined.

public int

Returns:

capabilities as int
getCaps
()

Returns an int with capabilities (OR-ed constants defined in this class and its pipeline-specific subclasses).

public String
toString()

Overrides java.lang.Object.toString.

Returns a string representation of the object.

Inherited from java.lang.Object:
cloneequalsfinalizegetClasshashCodenotifynotifyAllwaitwaitwait

Field Detail

adapterIdback to summary
protected final String adapterId
capsback to summary
protected final int caps
CAPS_EMPTYback to summary
public static final int CAPS_EMPTY

Indicates that the context has no capabilities.

CAPS_MULTITEXTUREback to summary
public static final int CAPS_MULTITEXTURE

Indicates that the context supports multitexturing.

CAPS_PS20back to summary
public static final int CAPS_PS20

Indicates that the context supports pixel shader 2.0 or better.

CAPS_PS30back to summary
public static final int CAPS_PS30

Indicates that the context supports pixel shader 3.0 or better.

CAPS_RT_PLAIN_ALPHAback to summary
public static final int CAPS_RT_PLAIN_ALPHA

Indicates that the context supports RT surfaces with alpha channel.

CAPS_RT_TEXTURE_ALPHAback to summary
public static final int CAPS_RT_TEXTURE_ALPHA

Indicates that the context supports RT textures with alpha channel.

CAPS_RT_TEXTURE_OPAQUEback to summary
public static final int CAPS_RT_TEXTURE_OPAQUE

Indicates that the context supports opaque RT textures.

CAPS_TEXNONPOW2back to summary
public static final int CAPS_TEXNONPOW2

Indicates that the context supports non-pow2 texture dimensions.

CAPS_TEXNONSQUAREback to summary
public static final int CAPS_TEXNONSQUARE

Indicates that the context supports non-square textures.

FIRST_PRIVATE_CAPback to summary
protected static final int FIRST_PRIVATE_CAP

Constructor Detail

ContextCapabilitiesback to summary
protected ContextCapabilities(int caps, String adapterId)

Constructs a ContextCapabilities object.

Parameters
caps:int

an int representing the capabilities

adapterId:String

String representing the name of the adapter, or null, in which case the adapterId will be set to "unknown adapter".

Method Detail

getAdapterIdback to summary
public String getAdapterId()

Returns a string representing the name of the graphics adapter if such could be determined. It is guaranteed to never return null.

Returns:String

string representing adapter id

getCapsback to summary
public int getCaps()

Returns an int with capabilities (OR-ed constants defined in this class and its pipeline-specific subclasses).

Returns:int

capabilities as int

toStringback to summary
public String toString()

Overrides java.lang.Object.toString.

Doc from java.lang.Object.toString.

Returns a string representation of the object. Satisfying this method's contract implies a non-null result must be returned.

Annotations
@Override