javax.media.nativewindow
Class DefaultGraphicsConfiguration

java.lang.Object
  extended by javax.media.nativewindow.DefaultGraphicsConfiguration
All Implemented Interfaces:
Cloneable, AbstractGraphicsConfiguration
Direct Known Subclasses:
AWTGraphicsConfiguration, jogamp.nativewindow.MutableGraphicsConfiguration

public class DefaultGraphicsConfiguration
extends Object
implements Cloneable, AbstractGraphicsConfiguration


Constructor Summary
DefaultGraphicsConfiguration(AbstractGraphicsScreen screen, CapabilitiesImmutable capsChosen, CapabilitiesImmutable capsRequested)
           
 
Method Summary
 Object clone()
           
 CapabilitiesImmutable getChosenCapabilities()
          Return the capabilities reflecting this graphics configuration, which may differ from the capabilities used to choose this configuration.
 AbstractGraphicsConfiguration getNativeGraphicsConfiguration()
          In case the implementation utilizes a delegation pattern to wrap abstract toolkits, this method shall return the native AbstractGraphicsConfiguration, otherwise this instance.
 CapabilitiesImmutable getRequestedCapabilities()
          Return the capabilities used to choose this graphics configuration.
 AbstractGraphicsScreen getScreen()
          Return the screen this graphics configuration is valid for
static String toHexString(int val)
           
static String toHexString(long val)
           
 String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

DefaultGraphicsConfiguration

public DefaultGraphicsConfiguration(AbstractGraphicsScreen screen,
                                    CapabilitiesImmutable capsChosen,
                                    CapabilitiesImmutable capsRequested)
Method Detail

clone

public Object clone()
Overrides:
clone in class Object

getScreen

public AbstractGraphicsScreen getScreen()
Description copied from interface: AbstractGraphicsConfiguration
Return the screen this graphics configuration is valid for

Specified by:
getScreen in interface AbstractGraphicsConfiguration

getChosenCapabilities

public CapabilitiesImmutable getChosenCapabilities()
Description copied from interface: AbstractGraphicsConfiguration
Return the capabilities reflecting this graphics configuration, which may differ from the capabilities used to choose this configuration.

Specified by:
getChosenCapabilities in interface AbstractGraphicsConfiguration
Returns:
An immutable instance of the Capabilities to avoid mutation by the user.

getRequestedCapabilities

public CapabilitiesImmutable getRequestedCapabilities()
Description copied from interface: AbstractGraphicsConfiguration
Return the capabilities used to choose this graphics configuration. These may be used to reconfigure the NativeWindow in case the device changes in a multiple screen environment.

Specified by:
getRequestedCapabilities in interface AbstractGraphicsConfiguration
Returns:
An immutable instance of the Capabilities to avoid mutation by the user.

getNativeGraphicsConfiguration

public AbstractGraphicsConfiguration getNativeGraphicsConfiguration()
Description copied from interface: AbstractGraphicsConfiguration
In case the implementation utilizes a delegation pattern to wrap abstract toolkits, this method shall return the native AbstractGraphicsConfiguration, otherwise this instance.

Specified by:
getNativeGraphicsConfiguration in interface AbstractGraphicsConfiguration
See Also:
NativeSurface.getGraphicsConfiguration()

toString

public String toString()
Overrides:
toString in class Object

toHexString

public static String toHexString(int val)

toHexString

public static String toHexString(long val)


Copyright 2010 JogAmp Community.