graph3d
Class GraphicsConfigTemplate

java.lang.Object
  |
  +--java.awt.GraphicsConfigTemplate
        |
        +--graph3d.GraphicsConfigTemplate
All Implemented Interfaces:
java.io.Serializable

public class GraphicsConfigTemplate
extends java.awt.GraphicsConfigTemplate

This GraphicsConfigTemplate will select an OpenGL suitable configuration (see the native implementation for details).

See Also:
Serialized Form

Fields inherited from class java.awt.GraphicsConfigTemplate
PREFERRED, REQUIRED, UNNECESSARY
 
Constructor Summary
GraphicsConfigTemplate()
           
 
Method Summary
 java.awt.GraphicsConfiguration getBestConfiguration(java.awt.GraphicsConfiguration[] gc)
          Find the optimal configuration.
 boolean isGraphicsConfigSupported(java.awt.GraphicsConfiguration gc)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphicsConfigTemplate

public GraphicsConfigTemplate()
Method Detail

getBestConfiguration

public java.awt.GraphicsConfiguration getBestConfiguration(java.awt.GraphicsConfiguration[] gc)
Find the optimal configuration. Here, we use a simplicistic approach: we consider the first match to be the 'optimal' one.
Overrides:
getBestConfiguration in class java.awt.GraphicsConfigTemplate

isGraphicsConfigSupported

public boolean isGraphicsConfigSupported(java.awt.GraphicsConfiguration gc)
Overrides:
isGraphicsConfigSupported in class java.awt.GraphicsConfigTemplate
Parameters:
gc - a configuration to be checked
Returns:
true, if it is supported, else false.