|
||||||||||
| 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
|
+--VASSAL.build.module.PrivateMap
A Map that may be configured to be visible only a particular side. If visible to all, the map will respond to key/mouse events only from the player playing the assigned side
| Nested Class Summary | |
static class |
PrivateMap.View
|
| Nested classes inherited from class VASSAL.build.module.Map |
|
| Nested classes inherited from class VASSAL.build.AutoConfigurable |
AutoConfigurable.Util |
| Field Summary | |
static java.lang.String |
SIDE
|
static java.lang.String |
USE_BOARDS
|
static java.lang.String |
VISIBLE
|
| Fields inherited from class VASSAL.build.module.Map |
ALLOW_MULTIPLE, boards, BUTTON_NAME, EDGE_HEIGHT, EDGE_WIDTH, edgeBuffer, HIGHLIGHT_COLOR, HIGHLIGHT_THICKNESS, highlighter, HOTKEY, launchButton, MARK_MOVED, markMovedOption, maxStacks, metrics, moreStacks, mouseListenerStack, multicaster, NAME, nstacks, picker, scroll, stack, theMap, toolBar, topWindow, USE_LAUNCH_BUTTON, useLaunchButton, zoom |
| 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 | |
PrivateMap()
|
|
| Method Summary | |
void |
addTo(Buildable b)
Expects to be added to a GameModule. |
void |
build(org.w3c.dom.Element el)
Build the object |
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 |
static java.lang.String |
getConfigureTypeName()
|
HelpFile |
getHelpFile()
|
java.awt.Window |
getParentFrame()
|
javax.swing.JComponent |
getView()
Return the AWT component representing the map |
boolean |
isAccessibleTo(java.lang.String playerSide)
Return true if the player playing the given side can access this map |
void |
setAttribute(java.lang.String key,
java.lang.Object value)
Called by the build(org.w3c.dom.Element) method, where value is the
String value read by the XML attribute. |
void |
setBoards(java.util.Enumeration boardList)
Set the boards for this map. |
void |
setup(boolean show)
When a game is started, create a top-level window, if none exists. |
| Methods inherited from class VASSAL.build.AbstractConfigurable |
addPropertyChangeListener, getConfigureComponents, getConfigureName, getConfigurer, remove, setConfigureName |
| Methods inherited from class VASSAL.build.AbstractBuildable |
add, 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.Configurable |
addPropertyChangeListener, getConfigureComponents, getConfigureName, getConfigurer, remove |
| Methods inherited from interface VASSAL.build.Buildable |
add, getBuildElement |
| Field Detail |
public static final java.lang.String VISIBLE
public static final java.lang.String SIDE
public static final java.lang.String USE_BOARDS
| Constructor Detail |
public PrivateMap()
| Method Detail |
public java.lang.String[] getAttributeNames()
getAttributeNames in interface AutoConfigurablegetAttributeNames in class Mappublic java.lang.String[] getAttributeDescriptions()
AbstractConfigurableAbstractBuildable.getAttributeNames()
getAttributeDescriptions in interface AutoConfigurablegetAttributeDescriptions in class Mappublic java.lang.Class[] getAttributeTypes()
AbstractConfigurableAbstractBuildable.getAttributeNames()
getAttributeTypes in interface AutoConfigurablegetAttributeTypes in class Map
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 Mapkey - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()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 Mapkey - the name of the attribute. Will be one of those
listed in AbstractBuildable.getAttributeNames()public java.awt.Window getParentFrame()
getParentFrame in class Mappublic boolean isAccessibleTo(java.lang.String playerSide)
PlayerRosterpublic void setup(boolean show)
Map
setup in interface GameComponentsetup in class MapGameComponentpublic void setBoards(java.util.Enumeration boardList)
MapBoard
setBoards in class Mappublic javax.swing.JComponent getView()
Map
getView in class Mappublic static java.lang.String getConfigureTypeName()
public HelpFile getHelpFile()
getHelpFile in interface ConfigurablegetHelpFile in class Mappublic void build(org.w3c.dom.Element el)
Buildable
build in interface Buildablebuild in class Mapel - the XML element containing the object datapublic void addTo(Buildable b)
MapGameModule. Determines a
unique id for this map. Registers itself as KeyStrokeSource. Registers itself as a GameComponent.
Registers itself as a drop target and drag source
addTo in interface BuildableaddTo in class MapMap.getId(),
DragBuffer
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||