Package VASSAL.counters
Class MassPieceLoader
java.lang.Object
VASSAL.counters.MassPieceLoader
Class to load a directory full of images and create counters
-
Field Summary
Modifier and TypeFieldDescriptionprotected static String
protected static int
protected ConfigureTree
protected static int
protected static int
protected VASSAL.counters.MassPieceLoader.MassLoaderDialog
protected static Color
protected static String
protected static String
protected static int
protected static String
protected static String
protected static int
protected static int
protected Configurable
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionprotected 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
-
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
-