Package VASSAL.counters
Class MassPieceLoader
java.lang.Object
VASSAL.counters.MassPieceLoader
public class MassPieceLoader extends Object
Class to load a directory full of images and create counters
-
Field Summary
Fields Modifier and Type Field Description protected static StringBASE_IMAGEprotected ArrayList<String>baseImagesprotected static intCOLUMN_COUNTprotected ConfigureTreeconfigureTreeprotected static intCOPIES_COLprotected static intDESC_COLprotected VASSAL.counters.MassPieceLoader.MassLoaderDialogdialogprotected static ColorEDITABLE_COLORprotected static StringENDS_WITHprotected static StringEQUALSprotected static intIMAGE_COLprotected ArrayList<String>imageNamesprotected static StringINCLUDESprotected ArrayList<VASSAL.counters.MassPieceLoader.Emb>layersprotected ArrayList<String>levelImagesprotected static StringMATCHESprotected static intNAME_COLprotected HashMap<String,VASSAL.counters.MassPieceLoader.PieceInfo>pieceInfoprotected static intSKIP_COLprotected Configurabletarget -
Constructor Summary
Constructors Constructor Description MassPieceLoader(ConfigureTree tree, Configurable target) -
Method Summary
Modifier and Type Method Description protected voidaddImageToModule(String name)Add the named image to the moduleprotected StringgetPieceName(String baseName)Maintain a record of all names changed by the user for image basenames.voidload()
-
Field Details
-
DESC_COL
protected static final int DESC_COL- See Also:
- Constant Field Values
-
NAME_COL
protected static final int NAME_COL- See Also:
- Constant Field Values
-
IMAGE_COL
protected static final int IMAGE_COL- See Also:
- Constant Field Values
-
SKIP_COL
protected static final int SKIP_COL- See Also:
- Constant Field Values
-
COPIES_COL
protected static final int COPIES_COL- See Also:
- Constant Field Values
-
COLUMN_COUNT
protected static final int COLUMN_COUNT- See Also:
- Constant Field Values
-
EDITABLE_COLOR
-
target
-
configureTree
-
imageNames
-
baseImages
-
levelImages
-
pieceInfo
-
layers
-
dialog
protected VASSAL.counters.MassPieceLoader.MassLoaderDialog dialog -
ENDS_WITH
- See Also:
- Constant Field Values
-
INCLUDES
- See Also:
- Constant Field Values
-
MATCHES
- See Also:
- Constant Field Values
-
EQUALS
- See Also:
- Constant Field Values
-
BASE_IMAGE
- See Also:
- Constant Field Values
-
-
Constructor Details
-
MassPieceLoader
-
-
Method Details
-
load
public void load() -
addImageToModule
Add the named image to the module- Parameters:
name- Image name
-
getPieceName
Maintain a record of all names changed by the user for image basenames. Default name is image name with image suffix stripped.- Parameters:
baseName- Image name- Returns:
- user modified name
-