Package fr.formiko.views.gui2d
Class arrowAction
java.lang.Object
javax.swing.AbstractAction
fr.formiko.views.gui2d.arrowAction
- All Implemented Interfaces:
 ActionListener,Serializable,Cloneable,EventListener,Action
Do a map move as an arrow action.
- Author:
 - Hydrolien
 
- 
Field Summary
FieldsFields inherited from class javax.swing.AbstractAction
changeSupport, enabledFields inherited from interface javax.swing.Action
ACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON - 
Constructor Summary
Constructors - 
Method Summary
Modifier and TypeMethodDescriptionvoidactionPerformed(ActionEvent actionEvent) Do a map move action.toString()Strandard to string.Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled 
- 
Field Details
- 
inX
private boolean inX - 
up
private boolean up - 
speed
private double speed 
 - 
 - 
Constructor Details
- 
arrowAction
public arrowAction(boolean inX, boolean up, boolean keyRelease) Main constructor.- Parameters:
 inX- true if we are moving in x, false if we are moving in yup- true if windows should up in X or in YkeyRelease- if true speed is set to 0 else speed is set to 1
 
 - 
 - 
Method Details