|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--VASSAL.build.AbstractBuildable
|
+--VASSAL.build.module.map.Scroller
This component listens to key events on a Map window and scrolls the map. Depending on the USE_ARROWS attribute, will use number keypad or arrow keys, or will offer a preferences setting for the user to choose
| Field Summary | |
static java.lang.String |
ALWAYS
|
static java.lang.String |
NEVER
|
static java.lang.String |
PROMPT
|
static java.lang.String |
USE_ARROWS
The attribute name for whether to use arrow keys instead of number keypad. |
protected java.lang.String |
usingArrows
|
protected int |
xStep
|
protected int |
yStep
|
| Fields inherited from class VASSAL.build.AbstractBuildable |
buildComponents |
| Constructor Summary | |
Scroller()
|
|
| Method Summary | |
void |
add(Buildable b)
Add a Buildable object to this object |
void |
addTo(Buildable parent)
Adds this component to its parent. |
java.lang.String[] |
getAttributeNames()
|
java.lang.String |
getAttributeValueString(java.lang.String name)
Return a String representation of the attribute with the given name. |
void |
keyPressed(java.awt.event.KeyEvent e)
|
void |
keyReleased(java.awt.event.KeyEvent e)
|
void |
keyTyped(java.awt.event.KeyEvent e)
|
void |
setAttribute(java.lang.String name,
java.lang.Object value)
Sets an attribute value for this component. |
| Methods inherited from class VASSAL.build.AbstractBuildable |
build, getBuildComponents, getBuildElement, getComponents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
public static final java.lang.String USE_ARROWS
public static final java.lang.String ALWAYS
public static final java.lang.String NEVER
public static final java.lang.String PROMPT
protected java.lang.String usingArrows
protected int xStep
protected int yStep
| Constructor Detail |
public Scroller()
| Method Detail |
public void addTo(Buildable parent)
Buildable
addTo in interface Buildablepublic void add(Buildable b)
AbstractBuildable
add in interface Buildableadd in class AbstractBuildablepublic java.lang.String[] getAttributeNames()
getAttributeNames in class AbstractBuildable
public void setAttribute(java.lang.String name,
java.lang.Object value)
AbstractBuildablekey
parameter will be one of those listed in AbstractBuildable.getAttributeNames().
If the value parameter is a String, it will be the
value returned by AbstractBuildable.getAttributeValueString(java.lang.String) for the same
key. If the implementing class extends
AbstractConfigurable, then value will be
an instance of the corresponding Class listed in
AbstractConfigurable.getAttributeTypes()
setAttribute in class AbstractBuildablename - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()public java.lang.String getAttributeValueString(java.lang.String name)
AbstractBuildableAbstractBuildable.setAttribute(java.lang.String, java.lang.Object).
getAttributeValueString in class AbstractBuildablename - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()public void keyPressed(java.awt.event.KeyEvent e)
keyPressed in interface java.awt.event.KeyListenerpublic void keyReleased(java.awt.event.KeyEvent e)
keyReleased in interface java.awt.event.KeyListenerpublic void keyTyped(java.awt.event.KeyEvent e)
keyTyped in interface java.awt.event.KeyListener
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||