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 String
BASE_IMAGE
protected ArrayList<String>
baseImages
protected static int
COLUMN_COUNT
protected ConfigureTree
configureTree
protected static int
COPIES_COL
protected static int
DESC_COL
protected VASSAL.counters.MassPieceLoader.MassLoaderDialog
dialog
protected static Color
EDITABLE_COLOR
protected static String
ENDS_WITH
protected static String
EQUALS
protected static int
IMAGE_COL
protected ArrayList<String>
imageNames
protected static String
INCLUDES
protected ArrayList<VASSAL.counters.MassPieceLoader.Emb>
layers
protected ArrayList<String>
levelImages
protected static String
MATCHES
protected static int
NAME_COL
protected HashMap<String,VASSAL.counters.MassPieceLoader.PieceInfo>
pieceInfo
protected static int
SKIP_COL
protected Configurable
target
-
Constructor Summary
Constructors Constructor Description MassPieceLoader(ConfigureTree tree, Configurable target)
-
Method Summary
Modifier and Type Method Description protected void
addImageToModule(String name)
Add the named image to the moduleprotected String
getPieceName(String baseName)
Maintain a record of all names changed by the user for image basenames.void
load()
-
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
-