sonification.dataimport.visbards_resourcetoolkit.model
Class ModeManager

java.lang.Object
  extended by sonification.dataimport.visbards_resourcetoolkit.model.ModeManager
All Implemented Interfaces:
SettingsHolder

public class ModeManager
extends java.lang.Object
implements SettingsHolder


Constructor Summary
ModeManager()
           
 
Method Summary
 void addListener(ModeManagerListener listener)
          Registers a listener.
 void changeTo2D()
           
 void changeTo3D()
           
 java.lang.String getHolderID()
          Returns a string which identifies this object uniquely.
 java.util.HashMap getSettings()
          Returns a hashmap of settings (strings) which represent the current object state, and are keyed by string names.
 boolean isMode2D()
           
 boolean isMode3D()
           
 void removeListener(ModeManagerListener listener)
          Unregisters a listener.
 void setSettings(java.util.HashMap settings)
          Changes the settings of this object to match the settings in the specified hashmap.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ModeManager

public ModeManager()
Method Detail

changeTo3D

public void changeTo3D()

changeTo2D

public void changeTo2D()

isMode2D

public boolean isMode2D()

isMode3D

public boolean isMode3D()

addListener

public void addListener(ModeManagerListener listener)
Registers a listener.


removeListener

public void removeListener(ModeManagerListener listener)
Unregisters a listener.


getSettings

public java.util.HashMap getSettings()
Returns a hashmap of settings (strings) which represent the current object state, and are keyed by string names.

Specified by:
getSettings in interface SettingsHolder

setSettings

public void setSettings(java.util.HashMap settings)
Changes the settings of this object to match the settings in the specified hashmap. HashMap may be empty, in which case no settings are delivered

Specified by:
setSettings in interface SettingsHolder

getHolderID

public java.lang.String getHolderID()
Returns a string which identifies this object uniquely. Any string is valid as long as it does not contain the underscore character.

Specified by:
getHolderID in interface SettingsHolder