Class DefaultCapabilitiesChooser

java.lang.Object
com.jogamp.nativewindow.DefaultCapabilitiesChooser
All Implemented Interfaces:
CapabilitiesChooser

public class DefaultCapabilitiesChooser extends Object implements CapabilitiesChooser

The default implementation of the CapabilitiesChooser interface, which provides consistent visual selection behavior across platforms. The precise algorithm is deliberately left loosely specified. Some properties are:

  • Attempts to match as closely as possible the given Capabilities, but will select one with fewer capabilities (i.e., lower color depth) if necessary.
  • If there is no exact match, prefers a more-capable visual to a less-capable one.
  • If there is more than one exact match, chooses an arbitrary one.
  • If a valid windowSystemRecommendedChoice parameter is supplied, chooses that instead of using the cross-platform code.