|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object
|
+--VASSAL.build.AbstractBuildable
|
+--VASSAL.build.AbstractConfigurable
|
+--VASSAL.build.module.map.boardPicker.board.mapgrid.RegularGridNumbering
Abstract base class for grid numbering classes for hexagonal and rectangular grids
| Nested Class Summary | |
static class |
RegularGridNumbering.F
|
static class |
RegularGridNumbering.T
|
| Nested classes inherited from class VASSAL.build.AutoConfigurable |
AutoConfigurable.Util |
| Field Summary | |
static java.lang.String |
ALPHABET
|
protected java.awt.Color |
color
|
static java.lang.String |
COLOR
|
protected char |
first
|
static java.lang.String |
FIRST
|
static java.lang.String |
FONT_SIZE
|
protected int |
fontSize
|
static java.lang.String |
H_LEADING
|
static java.lang.String |
H_OFF
|
static java.lang.String |
H_TYPE
|
protected int |
hLeading
|
protected int |
hOff
|
protected char |
hType
|
protected java.beans.PropertyChangeSupport |
propSupport
|
protected java.lang.String |
sep
|
static java.lang.String |
SEP
|
static java.lang.String |
V_LEADING
|
static java.lang.String |
V_OFF
|
static java.lang.String |
V_TYPE
|
protected boolean |
visible
|
static java.lang.String |
VISIBLE
|
protected javax.swing.JComponent |
visualizer
|
protected int |
vLeading
|
protected int |
vOff
|
protected char |
vType
|
| Fields inherited from class VASSAL.build.AbstractConfigurable |
changeSupport, config, name |
| Fields inherited from class VASSAL.build.AbstractBuildable |
buildComponents |
| Fields inherited from interface VASSAL.build.Configurable |
NAME_PROPERTY |
| Constructor Summary | |
RegularGridNumbering()
|
|
| Method Summary | |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener. |
java.lang.Class[] |
getAllowableConfigureComponents()
Return a list of valid sub-component Classes. |
java.lang.String[] |
getAttributeDescriptions()
Return an array of Strings describing the attributes of this object. |
java.lang.String[] |
getAttributeNames()
|
java.lang.Class[] |
getAttributeTypes()
Return the Class for the attributes of this object. |
java.lang.String |
getAttributeValueString(java.lang.String key)
Called by the AbstractBuildable.getBuildElement(org.w3c.dom.Document) method to write the
attributes into an XML element |
VisibilityCondition |
getAttributeVisibility(java.lang.String name)
By default, all attributes are visible |
abstract int |
getColumn(java.awt.Point p)
|
Configurer |
getConfigurer()
The default Configurer of an AbstractConfigurable class is an instance of AutoConfigurer |
static java.lang.String |
getConfigureTypeName()
|
protected abstract javax.swing.JComponent |
getGridVisualizer()
Return a component that shows how the grid will draw itself |
HelpFile |
getHelpFile()
|
protected java.lang.String |
getName(int rowOrColumn,
char type,
int leading)
|
protected java.lang.String |
getName(int row,
int column)
|
abstract int |
getRow(java.awt.Point p)
|
boolean |
isVisible()
|
java.lang.String |
locationName(java.awt.Point pt)
|
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Called by the AbstractBuildable.build(org.w3c.dom.Element) method, where value is the
String value read by the XML attribute. |
| Methods inherited from class VASSAL.build.AbstractConfigurable |
getConfigureComponents, getConfigureName, remove, setConfigureName |
| Methods inherited from class VASSAL.build.AbstractBuildable |
add, build, getBuildComponents, getBuildElement, getComponents |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Methods inherited from interface VASSAL.build.module.map.boardPicker.board.mapgrid.GridNumbering |
draw |
| Methods inherited from interface VASSAL.build.Configurable |
removeFrom |
| Methods inherited from interface VASSAL.build.Buildable |
add, addTo, build, getBuildElement |
| Field Detail |
protected java.beans.PropertyChangeSupport propSupport
protected char first
protected java.lang.String sep
protected char hType
protected char vType
protected int hLeading
protected int vLeading
protected int hOff
protected int vOff
protected boolean visible
protected int fontSize
protected java.awt.Color color
protected javax.swing.JComponent visualizer
public static final java.lang.String FIRST
public static final java.lang.String SEP
public static final java.lang.String H_TYPE
public static final java.lang.String V_TYPE
public static final java.lang.String H_LEADING
public static final java.lang.String V_LEADING
public static final java.lang.String H_OFF
public static final java.lang.String V_OFF
public static final java.lang.String FONT_SIZE
public static final java.lang.String COLOR
public static final java.lang.String VISIBLE
public static final java.lang.String ALPHABET
| Constructor Detail |
public RegularGridNumbering()
| Method Detail |
public java.lang.String getAttributeValueString(java.lang.String key)
AutoConfigurableBuildable.getBuildElement(org.w3c.dom.Document) method to write the
attributes into an XML element
getAttributeValueString in interface AutoConfigurablegetAttributeValueString in class AbstractBuildablekey - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()
public void setAttribute(java.lang.String key,
java.lang.Object value)
AutoConfigurableBuildable.build(org.w3c.dom.Element) method, where value is the
String value read by the XML attribute.
Can also be called with Object value to set the attribute.
setAttribute in interface AutoConfigurablesetAttribute in class AbstractBuildablekey - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()public boolean isVisible()
isVisible in interface GridNumberingpublic abstract int getRow(java.awt.Point p)
public abstract int getColumn(java.awt.Point p)
public void addPropertyChangeListener(java.beans.PropertyChangeListener l)
ConfigurableConfigurable.NAME_PROPERTY when the value returned from
Configurable.getConfigureName() has changed
addPropertyChangeListener in interface ConfigurableaddPropertyChangeListener in class AbstractConfigurablepublic java.lang.Class[] getAllowableConfigureComponents()
Configurable
getAllowableConfigureComponents in interface Configurablepublic java.lang.String[] getAttributeNames()
getAttributeNames in interface AutoConfigurablegetAttributeNames in class AbstractBuildablepublic java.lang.String[] getAttributeDescriptions()
AbstractConfigurableAbstractBuildable.getAttributeNames()
getAttributeDescriptions in interface AutoConfigurablegetAttributeDescriptions in class AbstractConfigurablepublic java.lang.Class[] getAttributeTypes()
AbstractConfigurableAbstractBuildable.getAttributeNames()
getAttributeTypes in interface AutoConfigurablegetAttributeTypes in class AbstractConfigurableprotected abstract javax.swing.JComponent getGridVisualizer()
public VisibilityCondition getAttributeVisibility(java.lang.String name)
AbstractConfigurable
getAttributeVisibility in interface AutoConfigurablegetAttributeVisibility in class AbstractConfigurablename -
public Configurer getConfigurer()
AbstractConfigurableConfigurer of an AbstractConfigurable class is an instance of AutoConfigurer
getConfigurer in interface ConfigurablegetConfigurer in class AbstractConfigurablepublic static java.lang.String getConfigureTypeName()
public HelpFile getHelpFile()
getHelpFile in interface Configurable
protected java.lang.String getName(int row,
int column)
public java.lang.String locationName(java.awt.Point pt)
locationName in interface GridNumbering
protected java.lang.String getName(int rowOrColumn,
char type,
int leading)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||