org.jzy3d.global
Class Settings

java.lang.Object
  extended by org.jzy3d.global.Settings

public class Settings
extends java.lang.Object

Settings is a singleton that holds general settings that configure Imaging classes instantiation.


Method Summary
 javax.media.opengl.GLCapabilities getGLCapabilities()
          Returns a copy of the current GL capabilities.
static Settings getInstance()
          Return the single allowed instance of Settings.
 boolean isHardwareAccelerated()
          Returns true if hardware acceleration is used for 3d graphics.
 void setHardwareAccelerated(boolean hardwareAccelerated)
          Modifies the acceleration status for all ICanvas.Canvas instantiations.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Method Detail

getInstance

public static Settings getInstance()
Return the single allowed instance of Settings. Multithreading is handled through the synchronized definition of getInstance().


setHardwareAccelerated

public void setHardwareAccelerated(boolean hardwareAccelerated)
Modifies the acceleration status for all ICanvas.Canvas instantiations. This doesn't modify the status of canvases that have allready been instantiated.


isHardwareAccelerated

public boolean isHardwareAccelerated()
Returns true if hardware acceleration is used for 3d graphics.


getGLCapabilities

public javax.media.opengl.GLCapabilities getGLCapabilities()
Returns a copy of the current GL capabilities.


toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object