rle.simple.action
Class Look

java.lang.Object
  extended by javax.swing.AbstractAction
      extended by rle.core.ui.UiActionBase
          extended by rle.simple.action.Look
All Implemented Interfaces:
java.awt.event.ActionListener, java.io.Serializable, java.lang.Cloneable, java.util.EventListener, javax.swing.Action, UiAction, PlugIn

public class Look
extends UiActionBase

Class that handles a look command, ie move around the screen heuristically and highlight things of interest.

See Also:
Serialized Form

Nested Class Summary
protected  class Look.StepIndex
          If there is more than one object under the pointer, move to the next one.
protected  class Look.StepLook
          Move the pointer to an adjacent location and describe what is there.
protected  class Look.StopLook
          Hide the prompt and return to board commands.
 
Field Summary
 
Fields inherited from class rle.core.ui.UiActionBase
config, context, parameters
 
Fields inherited from class javax.swing.AbstractAction
changeSupport, enabled
 
Fields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SHORT_DESCRIPTION, SMALL_ICON
 
Constructor Summary
Look()
           
 
Method Summary
 void configureCommands()
          Enable the appropriate commands for the current item table.
protected  java.lang.String describe(Thing o)
          Describe a single object.
 void doAction()
          Perform the look.
 void setConfig(InfoView view)
          Set the configuring InfoView.
protected  void showMessage()
          Set the text of the message label to reflect what is currently under the pointer.
 
Methods inherited from class rle.core.ui.UiActionBase
actionPerformed, config, getContext, getEvent, getParameters, paramMap, setParameters
 
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.swing.Action
addPropertyChangeListener, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
 

Constructor Detail

Look

public Look()
Method Detail

setConfig

public void setConfig(InfoView view)
Description copied from interface: PlugIn
Set the configuring InfoView.

Specified by:
setConfig in interface PlugIn
Overrides:
setConfig in class UiActionBase

configureCommands

public void configureCommands()
Enable the appropriate commands for the current item table. This method is general to all commands that must choose an item. The action to take once an item is chosen is specified by the Plug-in parameter "action-path", which is the VM path of the Plug-in node.


doAction

public void doAction()
Perform the look.


describe

protected java.lang.String describe(Thing o)
Describe a single object.


showMessage

protected void showMessage()
Set the text of the message label to reflect what is currently under the pointer.