|
||||||||||
| 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
| Nested Class Summary |
| Nested classes inherited from class VASSAL.build.AutoConfigurable |
AutoConfigurable.Util |
| Field Summary | |
protected java.awt.Image |
boardImage
|
protected java.lang.String |
boardName
|
protected java.awt.Rectangle |
boundaries
|
static java.lang.String |
COLOR
|
static java.lang.String |
HEIGHT
|
static java.lang.String |
IMAGE
|
protected java.lang.String |
imageFile
|
static java.lang.String |
NAME
A Board is a piece of a Map. |
protected java.awt.Point |
pos
|
protected boolean |
reversed
|
protected boolean |
reversible
|
static java.lang.String |
REVERSIBLE
|
protected java.util.Hashtable |
scaledCache
|
static java.lang.String |
WIDTH
|
| 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 | |
Board()
|
|
| Method Summary | |
void |
addTo(Buildable b)
Adds this component to its parent. |
java.lang.String |
baseDir()
|
java.awt.Rectangle |
bounds()
|
void |
draw(java.awt.Graphics g,
int x,
int y,
double zoom,
java.awt.Component obs)
|
void |
drawRegion(java.awt.Graphics g,
java.awt.Point location,
java.awt.Rectangle visibleRect,
double zoom,
java.awt.Component obs)
|
java.lang.String |
fileName()
|
void |
fixImage(java.awt.Component map)
|
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 |
java.lang.String |
getConfigureName()
The name of this Configurable Object |
MapGrid |
getGrid()
|
HelpFile |
getHelpFile()
|
java.lang.String |
getName()
|
java.awt.Image |
getScaledImage(double zoom,
java.awt.Component obs)
|
java.awt.Point |
globalCoordinates(java.awt.Point p)
If this board is reversed, return the location in reversed coordinates |
boolean |
isReversed()
|
java.awt.Point |
localCoordinates(java.awt.Point p)
If this board is reversed, return the location in un-reversed coordinates |
java.lang.String |
locationName(java.awt.Point p)
|
java.awt.Point |
relativePosition()
|
void |
removeFrom(Buildable b)
Remove this component from its parent |
void |
setAttribute(java.lang.String key,
java.lang.Object val)
Called by the AbstractBuildable.build(org.w3c.dom.Element) method, where value is the
String value read by the XML attribute. |
void |
setGrid(MapGrid mg)
|
void |
setLocation(int x,
int y)
Set the location of this board |
void |
setReversed(boolean val)
|
java.awt.Point |
snapTo(java.awt.Point p)
|
void |
translate(int x,
int y)
Translate the location of the board by the given number of pixels |
| Methods inherited from class VASSAL.build.AbstractConfigurable |
addPropertyChangeListener, getConfigureComponents, getConfigurer, 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.Buildable |
add, build, getBuildElement |
| Field Detail |
public static final java.lang.String NAME
public static final java.lang.String IMAGE
public static final java.lang.String WIDTH
public static final java.lang.String HEIGHT
public static final java.lang.String COLOR
public static final java.lang.String REVERSIBLE
protected java.awt.Image boardImage
protected java.awt.Point pos
protected java.awt.Rectangle boundaries
protected java.lang.String imageFile
protected java.lang.String boardName
protected boolean reversible
protected boolean reversed
protected java.util.Hashtable scaledCache
| Constructor Detail |
public Board()
| Method Detail |
public java.lang.String getName()
public void addTo(Buildable b)
Buildable
public void removeFrom(Buildable b)
Configurable
public 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 AbstractConfigurablepublic java.lang.String getConfigureName()
Configurable
getConfigureName in interface ConfigurablegetConfigureName in class AbstractConfigurablepublic VisibilityCondition getAttributeVisibility(java.lang.String name)
AbstractConfigurable
getAttributeVisibility in interface AutoConfigurablegetAttributeVisibility in class AbstractConfigurablename -
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 val)
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 java.lang.Class[] getAllowableConfigureComponents()
Configurable
public void draw(java.awt.Graphics g,
int x,
int y,
double zoom,
java.awt.Component obs)
public void drawRegion(java.awt.Graphics g,
java.awt.Point location,
java.awt.Rectangle visibleRect,
double zoom,
java.awt.Component obs)
public java.awt.Image getScaledImage(double zoom,
java.awt.Component obs)
public void setReversed(boolean val)
public boolean isReversed()
public java.awt.Point localCoordinates(java.awt.Point p)
public java.awt.Point globalCoordinates(java.awt.Point p)
public void setGrid(MapGrid mg)
public MapGrid getGrid()
public void fixImage(java.awt.Component map)
public java.lang.String locationName(java.awt.Point p)
public java.awt.Point snapTo(java.awt.Point p)
public java.lang.String baseDir()
public java.lang.String fileName()
public java.awt.Point relativePosition()
public java.awt.Rectangle bounds()
public void translate(int x,
int y)
bounds()
public void setLocation(int x,
int y)
bounds()public HelpFile getHelpFile()
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||