org.opensourcephysics.cabrillo.tracker
Class TActions

java.lang.Object
  extended by org.opensourcephysics.cabrillo.tracker.TActions

public class TActions
extends java.lang.Object

This creates a map of action name to action for many common tracker actions.

Author:
Douglas Brown

Method Summary
static void clear()
          Clears all actions.
static javax.swing.Action getAction(java.lang.String key, TrackerPanel trackerPanel)
          Gets an action for a TrackerPanel.
static java.util.Map<java.lang.String,javax.swing.AbstractAction> getActions(TrackerPanel trackerPanel)
          Gets the action map for a TrackerPanel.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

getAction

public static javax.swing.Action getAction(java.lang.String key,
                                           TrackerPanel trackerPanel)
Gets an action for a TrackerPanel.

Parameters:
key - the name of the action
trackerPanel - the TrackerPanel
Returns:
the Action

clear

public static void clear()
Clears all actions. This forces creation of new ones using new locale.


getActions

public static java.util.Map<java.lang.String,javax.swing.AbstractAction> getActions(TrackerPanel trackerPanel)
Gets the action map for a TrackerPanel.

Parameters:
trackerPanel - the TrackerPanel
Returns:
the Map