VASSAL.build.module.map
Class HandMetrics

java.lang.Object
  |
  +--VASSAL.build.AbstractBuildable
        |
        +--VASSAL.build.AbstractConfigurable
              |
              +--VASSAL.build.module.map.StackMetrics
                    |
                    +--VASSAL.build.module.map.HandMetrics
All Implemented Interfaces:
AutoConfigurable, Buildable, Configurable

public class HandMetrics
extends StackMetrics

Handles the drawing of cards in a PlayerHand. Lays out the cards horizontally with no overlap and even spacing.


Inner classes inherited from class VASSAL.build.AutoConfigurable
AutoConfigurable.Util
 
Fields inherited from class VASSAL.build.module.map.StackMetrics
blankColor, BOTTOM_KEY, bottomKey, COLOR, disabled, DISABLED, DOWN_KEY, downKey, EXSEP_X, EXSEP_Y, exSepX, exSepY, selectedVisible, TOP_KEY, topKey, UNEXSEP_X, UNEXSEP_Y, unexSepX, unexSepY, unselectedVisible, UP_KEY, upKey
 
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
HandMetrics()
           
 
Method Summary
 Stack createStack(GamePiece p)
           
protected  void nextPosition(java.awt.Point currentPos, java.awt.Rectangle currentBounds, java.awt.Point nextPos, java.awt.Rectangle nextBounds, int dx, int dy)
           
 
Methods inherited from class VASSAL.build.module.map.StackMetrics
addTo, draw, draw, drawUnexpanded, getAllowableConfigureComponents, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getAttributeVisibility, getBlankColor, getConfigureName, getConfigureTypeName, getContents, getHelpFile, getMoveBottomKey, getMoveDownKey, getMoveTopKey, getMoveUpKey, isStackingEnabled, merge, placeOrMerge, relativePosition, removeFrom, setAttribute
 
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
 

Constructor Detail

HandMetrics

public HandMetrics()
Method Detail

createStack

public Stack createStack(GamePiece p)
Overrides:
createStack in class StackMetrics

nextPosition

protected void nextPosition(java.awt.Point currentPos,
                            java.awt.Rectangle currentBounds,
                            java.awt.Point nextPos,
                            java.awt.Rectangle nextBounds,
                            int dx,
                            int dy)
Overrides:
nextPosition in class StackMetrics