|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Object
|
+--java.awt.Component
|
+--java.awt.Container
|
+--javax.swing.JComponent
|
+--javax.swing.JPanel
|
+--VASSAL.build.module.map.HidePiecesButton
This removes all game pieces from the (@link Map) therefore providing an un-cluttered view.
| Inner Class Summary | |
static class |
HidePiecesButton.HiddenIconConfig
|
static class |
HidePiecesButton.ShowingIconConfig
|
| Inner classes inherited from class javax.swing.JPanel |
javax.swing.JPanel.AccessibleJPanel |
| Inner classes inherited from class javax.swing.JComponent |
javax.swing.JComponent.AccessibleJComponent |
| Inner classes inherited from class java.awt.Container |
java.awt.Container.AccessibleAWTContainer |
| Inner classes inherited from class java.awt.Component |
java.awt.Component.AccessibleAWTComponent |
| Inner classes inherited from class VASSAL.build.AutoConfigurable |
AutoConfigurable.Util |
| Field Summary | |
static java.lang.String |
DEFAULT_HIDDEN_ICON
|
static java.lang.String |
DEFAULT_SHOWING_ICON
|
static java.lang.String |
HIDDEN_ICON
|
static java.lang.String |
SHOWING_ICON
|
| Fields inherited from class javax.swing.JComponent |
accessibleContext, listenerList, TOOL_TIP_TEXT_KEY, ui, UNDEFINED_CONDITION, WHEN_ANCESTOR_OF_FOCUSED_COMPONENT, WHEN_FOCUSED, WHEN_IN_FOCUSED_WINDOW |
| Fields inherited from class java.awt.Component |
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT |
| Fields inherited from interface VASSAL.build.Configurable |
NAME_PROPERTY |
| Fields inherited from interface java.awt.image.ImageObserver |
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH |
| Constructor Summary | |
HidePiecesButton()
|
|
| Method Summary | |
void |
add(Buildable b)
Adds a child component. |
void |
addPropertyChangeListener(java.beans.PropertyChangeListener l)
Add a PropertyChangeListener. |
void |
addTo(Buildable b)
Expects to be added to a Map. |
void |
build(org.w3c.dom.Element e)
Build the object |
void |
draw(java.awt.Graphics g,
Map m)
|
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 getBuildElement(org.w3c.dom.Document) method to write the
attributes into an XML element |
VisibilityCondition |
getAttributeVisibility(java.lang.String name)
Because attributes are not always applicable in all cases, this method returns an interface to determine when the controls for specifying the named attribute should be visible. |
org.w3c.dom.Element |
getBuildElement(org.w3c.dom.Document doc)
|
Configurable[] |
getConfigureComponents()
|
java.lang.String |
getConfigureName()
The name of this Configurable Object |
Configurer |
getConfigurer()
Return a Configurer object which can be used to set the
attributes of this object |
static java.lang.String |
getConfigureTypeName()
|
HelpFile |
getHelpFile()
|
Command |
getRestoreCommand()
When saving a game, each GameComponent should return a Command that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return null |
java.lang.String |
getToolTipText(java.awt.event.MouseEvent e)
|
void |
mouseClicked(java.awt.event.MouseEvent e)
|
void |
mouseEntered(java.awt.event.MouseEvent e)
|
void |
mouseExited(java.awt.event.MouseEvent e)
|
void |
mousePressed(java.awt.event.MouseEvent e)
|
void |
mouseReleased(java.awt.event.MouseEvent e)
|
void |
paint(java.awt.Graphics g)
|
void |
remove(Buildable b)
Remove a child component |
void |
removeFrom(Buildable b)
Remove this component from its parent |
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. |
protected void |
setPiecesVisible(boolean visible)
|
void |
setup(boolean show)
Notify the GameComponent that a game has started/ended |
| Methods inherited from class javax.swing.JPanel |
getAccessibleContext, getUIClassID, paramString, updateUI |
| Methods inherited from class javax.swing.JComponent |
addAncestorListener, addNotify, addPropertyChangeListener, addVetoableChangeListener, computeVisibleRect, contains, createToolTip, disable, enable, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, fireVetoableChange, getActionForKeyStroke, getActionMap, getAlignmentX, getAlignmentY, getAutoscrolls, getBorder, getBounds, getClientProperty, getComponentGraphics, getConditionForKeyStroke, getDebugGraphicsOptions, getGraphics, getHeight, getInputMap, getInputMap, getInputVerifier, getInsets, getInsets, getListeners, getLocation, getMaximumSize, getMinimumSize, getNextFocusableComponent, getPreferredSize, getRegisteredKeyStrokes, getRootPane, getSize, getToolTipLocation, getToolTipText, getTopLevelAncestor, getVerifyInputWhenFocusTarget, getVisibleRect, getWidth, getX, getY, grabFocus, hasFocus, hide, isDoubleBuffered, isFocusCycleRoot, isFocusTraversable, isLightweightComponent, isManagingFocus, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isOptimizedDrawingEnabled, isPaintingTile, isPreferredSizeSet, isRequestFocusEnabled, isValidateRoot, paintBorder, paintChildren, paintComponent, paintImmediately, paintImmediately, print, printAll, printBorder, printChildren, printComponent, processComponentKeyEvent, processFocusEvent, processKeyBinding, processKeyEvent, processMouseMotionEvent, putClientProperty, registerKeyboardAction, registerKeyboardAction, removeAncestorListener, removeNotify, removePropertyChangeListener, removePropertyChangeListener, removeVetoableChangeListener, repaint, repaint, requestDefaultFocus, requestFocus, resetKeyboardActions, reshape, revalidate, scrollRectToVisible, setActionMap, setAlignmentX, setAlignmentY, setAutoscrolls, setBackground, setBorder, setDebugGraphicsOptions, setDoubleBuffered, setEnabled, setFont, setForeground, setInputMap, setInputVerifier, setMaximumSize, setMinimumSize, setNextFocusableComponent, setOpaque, setPreferredSize, setRequestFocusEnabled, setToolTipText, setUI, setVerifyInputWhenFocusTarget, setVisible, unregisterKeyboardAction, update |
| Methods inherited from class java.awt.Container |
add, add, add, add, add, addContainerListener, addImpl, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getLayout, insets, invalidate, isAncestorOf, layout, list, list, locate, minimumSize, paintComponents, preferredSize, printComponents, processContainerEvent, processEvent, remove, remove, removeAll, removeContainerListener, setLayout, validate, validateTree |
| Methods inherited from class java.awt.Component |
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, addInputMethodListener, addKeyListener, addMouseListener, addMouseMotionListener, bounds, checkImage, checkImage, coalesceEvents, contains, createImage, createImage, disableEvents, dispatchEvent, enable, enableEvents, enableInputMethods, getBackground, getBounds, getColorModel, getComponentOrientation, getCursor, getDropTarget, getFont, getFontMetrics, getForeground, getGraphicsConfiguration, getInputContext, getInputMethodRequests, getLocale, getLocation, getLocationOnScreen, getName, getParent, getPeer, getSize, getToolkit, getTreeLock, gotFocus, handleEvent, imageUpdate, inside, isDisplayable, isEnabled, isLightweight, isShowing, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, postEvent, prepareImage, prepareImage, processComponentEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processMouseEvent, remove, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removeInputMethodListener, removeKeyListener, removeMouseListener, removeMouseMotionListener, repaint, repaint, repaint, resize, resize, setBounds, setBounds, setComponentOrientation, setCursor, setDropTarget, setLocale, setLocation, setLocation, setName, setSize, setSize, show, show, size, toString, transferFocus |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final java.lang.String DEFAULT_SHOWING_ICON
public static final java.lang.String DEFAULT_HIDDEN_ICON
public static final java.lang.String HIDDEN_ICON
public static final java.lang.String SHOWING_ICON
| Constructor Detail |
public HidePiecesButton()
| Method Detail |
public void addTo(Buildable b)
Map. Adds itself as a GameComponent and a Drawable componentaddTo in interface Buildableprotected void setPiecesVisible(boolean visible)
public void add(Buildable b)
BuildableBuildable.addTo(VASSAL.build.Buildable) are
invoked when adding a child to a parentadd in interface Buildablepublic void remove(Buildable b)
Configurableremove in interface Configurablepublic void removeFrom(Buildable b)
ConfigurableremoveFrom in interface Configurable
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 AutoConfigurablepublic void build(org.w3c.dom.Element e)
Buildablebuild in interface BuildableVASSAL.build.Buildablee - the XML element containing the object datapublic java.lang.String[] getAttributeNames()
getAttributeNames in interface AutoConfigurableVASSAL.build.AutoConfigurablepublic VisibilityCondition getAttributeVisibility(java.lang.String name)
AutoConfigurablegetAttributeVisibility in interface AutoConfigurableVASSAL.build.AutoConfigurablename - public java.lang.String getAttributeValueString(java.lang.String key)
AutoConfigurableBuildable.getBuildElement(org.w3c.dom.Document) method to write the
attributes into an XML elementgetAttributeValueString in interface AutoConfigurablepublic java.lang.String[] getAttributeDescriptions()
AutoConfigurablegetAttributeDescriptions in interface AutoConfigurablepublic java.lang.Class[] getAttributeTypes()
AutoConfigurablegetAttributeTypes in interface AutoConfigurable
public void draw(java.awt.Graphics g,
Map m)
draw in interface Drawablepublic void paint(java.awt.Graphics g)
paint in class javax.swing.JComponentpublic void mousePressed(java.awt.event.MouseEvent e)
mousePressed in interface java.awt.event.MouseListenerpublic void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered in interface java.awt.event.MouseListenerpublic void mouseExited(java.awt.event.MouseEvent e)
mouseExited in interface java.awt.event.MouseListenerpublic void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked in interface java.awt.event.MouseListenerpublic void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased in interface java.awt.event.MouseListenerpublic java.lang.String getToolTipText(java.awt.event.MouseEvent e)
getToolTipText in class javax.swing.JComponentpublic Command getRestoreCommand()
GameComponentCommand that, when executed, restores the GameComponent to its
state when the game was saved
If this component has no persistent state, return nullgetRestoreCommand in interface GameComponentpublic void setup(boolean show)
GameComponentsetup in interface GameComponentVASSAL.build.module.GameComponentgameStarting - if true, a game is starting. If false, then a game is endingpublic static java.lang.String getConfigureTypeName()
public java.lang.String getConfigureName()
ConfigurablegetConfigureName in interface Configurablepublic Configurer getConfigurer()
ConfigurableConfigurer object which can be used to set the
attributes of this objectgetConfigurer in interface Configurablepublic Configurable[] getConfigureComponents()
getConfigureComponents in interface ConfigurableVASSAL.build.Configurablepublic java.lang.Class[] getAllowableConfigureComponents()
ConfigurablegetAllowableConfigureComponents in interface Configurablepublic void addPropertyChangeListener(java.beans.PropertyChangeListener l)
ConfigurableConfigurable.NAME_PROPERTY when the value returned from
Configurable.getConfigureName() has changedaddPropertyChangeListener in interface ConfigurableaddPropertyChangeListener in class javax.swing.JComponentpublic HelpFile getHelpFile()
getHelpFile in interface ConfigurableVASSAL.build.Configurablepublic org.w3c.dom.Element getBuildElement(org.w3c.dom.Document doc)
getBuildElement in interface BuildableVASSAL.build.Buildable
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||