VASSAL.build.module.map.boardPicker.board.mapgrid
Class SquareGridNumbering

java.lang.Object
  |
  +--VASSAL.build.AbstractBuildable
        |
        +--VASSAL.build.AbstractConfigurable
              |
              +--VASSAL.build.module.map.boardPicker.board.mapgrid.RegularGridNumbering
                    |
                    +--VASSAL.build.module.map.boardPicker.board.mapgrid.SquareGridNumbering
All Implemented Interfaces:
AutoConfigurable, Buildable, Configurable, GridNumbering

public class SquareGridNumbering
extends RegularGridNumbering


Inner classes inherited from class VASSAL.build.module.map.boardPicker.board.mapgrid.RegularGridNumbering
RegularGridNumbering.F, RegularGridNumbering.T
 
Inner classes inherited from class VASSAL.build.AutoConfigurable
AutoConfigurable.Util
 
Fields inherited from class VASSAL.build.module.map.boardPicker.board.mapgrid.RegularGridNumbering
ALPHABET, color, COLOR, first, FIRST, FONT_SIZE, fontSize, H_DESCEND, H_LEADING, H_OFF, H_TYPE, hDescending, hLeading, hOff, hType, propSupport, sep, SEP, V_DESCEND, V_LEADING, V_OFF, V_TYPE, vDescending, visible, VISIBLE, visualizer, vLeading, vOff, 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
SquareGridNumbering()
           
 
Method Summary
 void addTo(Buildable parent)
          Adds this component to its parent.
 void draw(java.awt.Graphics g, java.awt.Rectangle bounds, java.awt.Rectangle visibleRect, double scale, boolean reversed)
           
 int getColumn(java.awt.Point p)
           
protected  javax.swing.JComponent getGridVisualizer()
          Return a component that shows how the grid will draw itself
protected  int getMaxColumns()
           
protected  int getMaxRows()
           
 int getRow(java.awt.Point p)
           
 void removeFrom(Buildable parent)
          Remove this component from its parent
 
Methods inherited from class VASSAL.build.module.map.boardPicker.board.mapgrid.RegularGridNumbering
addPropertyChangeListener, getAllowableConfigureComponents, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getAttributeVisibility, getConfigurer, getConfigureTypeName, getHelpFile, getName, getName, isVisible, locationName, setAttribute
 
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.Buildable
add, build, getBuildElement
 

Constructor Detail

SquareGridNumbering

public SquareGridNumbering()
Method Detail

addTo

public void addTo(Buildable parent)
Description copied from interface: Buildable
Adds this component to its parent. In order to make Buildable objects extensible, the child is reponsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class.

getGridVisualizer

protected javax.swing.JComponent getGridVisualizer()
Description copied from class: RegularGridNumbering
Return a component that shows how the grid will draw itself
Overrides:
getGridVisualizer in class RegularGridNumbering

draw

public void draw(java.awt.Graphics g,
                 java.awt.Rectangle bounds,
                 java.awt.Rectangle visibleRect,
                 double scale,
                 boolean reversed)

getColumn

public int getColumn(java.awt.Point p)
Overrides:
getColumn in class RegularGridNumbering

getRow

public int getRow(java.awt.Point p)
Overrides:
getRow in class RegularGridNumbering

removeFrom

public void removeFrom(Buildable parent)
Description copied from interface: Configurable
Remove this component from its parent

getMaxRows

protected int getMaxRows()

getMaxColumns

protected int getMaxColumns()