viewer
Class Options

java.lang.Object
  extended by viewer.Options

public class Options
extends java.lang.Object

Make it easy to change some options other than just by using the command line

Author:
Henry

Constructor Summary
Options(Viewer viewer)
           
 
Method Summary
 void attachInteraction(Interaction interaction)
          give the options instance the interaction instance to use
 void attachInteractionListener(InteractionListener interactionListener)
          give the options instance the interactionlistener instance to use
 javax.swing.JTabbedPane getOptions()
          get the optionPane to display
 boolean isVisible()
          Get the visibility of the options
 void refreshStates()
          Refresh the states of the various options to make sure they are correct
 void requestFocus()
          Request that the options receive focus
 void saveOptions()
          Save the settings to the config file
 void setVisible(boolean b)
          Show or hide the options
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Options

public Options(Viewer viewer)
Method Detail

attachInteraction

public void attachInteraction(Interaction interaction)
give the options instance the interaction instance to use

Parameters:
interaction - the interaction instance to use

attachInteractionListener

public void attachInteractionListener(InteractionListener interactionListener)
give the options instance the interactionlistener instance to use

Parameters:
interactionListener - ine interactionListener instance to use

getOptions

public javax.swing.JTabbedPane getOptions()
get the optionPane to display

Returns:
the optionPane

refreshStates

public void refreshStates()
Refresh the states of the various options to make sure they are correct


setVisible

public void setVisible(boolean b)
Show or hide the options

Parameters:
b - true to display the options

isVisible

public boolean isVisible()
Get the visibility of the options

Returns:
true if the options is visible

requestFocus

public void requestFocus()
Request that the options receive focus


saveOptions

public void saveOptions()
Save the settings to the config file