Class SquareGridNumbering
java.lang.Object
VASSAL.search.AbstractImageFinder
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, PropertyNameSource, ValidityChecker, Translatable, Auditable, ImageSearchTarget, SearchTarget
-
Nested Class Summary
Nested classes/interfaces inherited from class RegularGridNumbering
RegularGridNumbering.F, RegularGridNumbering.LocationFormatConfig, RegularGridNumbering.R, RegularGridNumbering.TModifier and TypeClassDescriptionstatic classstatic classstatic classstatic classNested classes/interfaces inherited from interface AutoConfigurable
AutoConfigurable.Util -
Field Summary
Fields inherited from class RegularGridNumbering
ALPHABET, color, COLOR, COLUMN, first, FIRST, FONT_SIZE, fontSize, format, GRID_LOCATION, H_DESCEND, H_DRAW_OFF, H_LEADING, H_OFF, H_TYPE, hDescending, hDrawOff, hLeading, hOff, hType, LOCATION_FORMAT, locationFormat, propSupport, ROTATE_TEXT, rotateTextDegrees, ROW, sep, SEP, V_DESCEND, V_DRAW_OFF, V_LEADING, V_OFF, V_TYPE, vDescending, vDrawOff, visible, VISIBLE, visualizer, VISUALIZER_GRID_SIZE, vLeading, vOff, vTypeModifier and TypeFieldDescriptionstatic final Stringprotected Colorstatic final Stringstatic final Stringprotected charstatic final Stringstatic final Stringprotected intprotected FormattedStringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected booleanprotected intprotected intprotected intprotected charstatic final Stringprotected Stringprotected PropertyChangeSupportstatic final Stringprotected intstatic final Stringprotected Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringprotected booleanprotected intprotected booleanstatic final Stringprotected JComponentstatic final doubleprotected intprotected intprotected charFields inherited from class AbstractConfigurable
changeSupport, config, localizedName, myI18nData, nameModifier and TypeFieldDescriptionprotected PropertyChangeSupportprotected Configurerprotected Stringprotected ComponentI18nDataprotected StringFields inherited from class AbstractBuildable
buildComponents, validatorFields inherited from interface Configurable
NAME_PROPERTY -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidAdds this component to its parent.voidDraw the numbering, if visiblevoidDraw the numbering, even if not visiblegetCenterPoint(int col, int row) intprotected JComponentReturn a component that shows how the grid will draw itselfprotected intprotected intintvoidremoveFrom(Buildable parent) Remove this component from its parentMethods inherited from class RegularGridNumbering
addPropertyChangeListener, getAllowableConfigureComponents, getAttributeDescriptions, getAttributeNames, getAttributeTypes, getAttributeValueString, getAttributeVisibility, getConfigurer, getConfigureTypeName, getHelpFile, getLocation, getMatchingPattern, getName, getName, isVisible, localizedLocationName, locationName, offsetLabelCenter, offsetLabelCenter, parseName, setAttributeModifier and TypeMethodDescriptionvoidAdd a PropertyChangeListener.Class<?>[]String[]Return an array of Strings describing the attributes of this object.String[]Lists all the buildFile (XML) attribute names for this component.Class<?>[]Return the Class for the attributes of this object.Called by theBuildable.getBuildElement(Document)method to write the attributes into an XML elementgetAttributeVisibility(String name) By default, all attributes are visiblestatic StringgetLocation(String location) protected StringgetMatchingPattern(char type, int leading) protected StringgetName(int rowOrColumn, char type, int leading) protected StringgetName(int row, int column) booleanlocationName(Point pt) offsetLabelCenter(int x, int y, double zoom) offsetLabelCenter(Point p, double zoom) protected intvoidsetAttribute(String key, Object value) Sets a buildFile (XML) attribute value for this component.Methods inherited from class AbstractConfigurable
add, getConfigureComponents, getConfigureName, getExpressionList, getFormattedStringList, getI18nData, getI18nPrefix, getLocalizedConfigureName, getMenuTextList, getNamedKeyStrokeList, getPropertyList, getTypeName, remove, removePropertyChangeListener, setAllAttributesUntranslatable, setAttributeTranslatable, setConfigureNameModifier and TypeMethodDescriptionvoidSet the owning translatable of this componentConfigureName is used, in particular, by the Editor to track the names of components, and is preferred byUniqueIdManager.protected StringReturns the name of the configurable type for display purposes.voidRemove a Buildable object from this objectvoidprotected voidSets all attributes untranslatable.protected voidsetAttributeTranslatable(String attr, boolean b) Over-ride the default attribute translatability.voidSets the name and fires a PropertyChangeEventMethods inherited from class AbstractBuildable
addImageNamesRecursively, build, buildString, getAllDescendantComponentsOf, getAncestor, getBuildables, getBuildComponents, getBuildElement, getComponents, getComponentsOf, getNonFolderAncestor, getPropertyNames, setAncestor, validateModifier and TypeMethodDescriptionvoidAdds all images used by this component AND any subcomponents to the collectionvoidBuild this component by getting all XML attributes of the XML element and callingAbstractBuildable.setAttribute(String, Object)with the String value of the attribute<T> List<T> getAllDescendantComponentsOf(Class<T> target) Recursively descend the build tree and return aListof all components that are instances of the given classDeprecated, for removal: This API element is subject to removal in a future version.getBuildElement(Document doc) <T> Enumeration<T> getComponents(Class<T> target) Deprecated, for removal: This API element is subject to removal in a future version.UseAbstractBuildable.getComponentsOf(Class)instead.<T> List<T> getComponentsOf(Class<T> target) Override this method to provide a list of properties to be exposed for use by expressions in the module.voidsetAncestor(Buildable ancestor) voidvalidate(Buildable target, ValidationReport report) Methods inherited from class AbstractImageFinder
addLocalImageNames, getAllImageNames, getLocalImageNamesModifier and TypeMethodDescriptionvoidClasses extending AbstractImageFinder should override this method in order to add the names of any image files they use to the collection.Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface Auditable
getComponentName, getComponentTypeNameMethods inherited from interface Buildable
isMandatory, isMovable, isUniqueModifier and TypeMethodDescriptiondefault booleanIs this component a reqired component within its parent?default booleanIs this component allowed to be moved around the Configure Tree?default booleanisUnique()Does this component need to be unique within it's parent?
-
Constructor Details
-
SquareGridNumbering
public SquareGridNumbering()
-
-
Method Details
-
addTo
Description copied from interface:BuildableAdds this component to its parent. In order to make Buildable objects extensible, the child is responsible for adding itself to the parent. That way, Buildable subcomponents can be defined in an extension package without needing to modify the containing class.- Parameters:
parent- parent Buildable to add this component to as a subcomponent.
-
getGridVisualizer
Description copied from class:RegularGridNumberingReturn a component that shows how the grid will draw itself- Specified by:
getGridVisualizerin classRegularGridNumbering
-
draw
-
forceDraw
-
getColumn
- Specified by:
getColumnin classRegularGridNumbering
-
getRow
- Specified by:
getRowin classRegularGridNumbering
-
getCenterPoint
- Specified by:
getCenterPointin classRegularGridNumbering
-
removeFrom
Description copied from interface:ConfigurableRemove this component from its parent -
getMaxRows
protected int getMaxRows() -
getMaxColumns
protected int getMaxColumns()
-
AbstractBuildable.getBuildables()instead.