Package VASSAL.search
Class AbstractImageFinder
java.lang.Object
VASSAL.search.AbstractImageFinder
- All Implemented Interfaces:
ImageSearchTarget
- Direct Known Subclasses:
AbstractBuildable
,BasicPiece
,Decorator
,Stack
Abstract implementation of
ImageSearchTarget
interface. Used to find images contained by components/pieces/traits
for "Image Purge" tool,-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionvoid
Adds all images used by this component AND any children (or inner decorators/pieces) to the collection.void
Classes extending AbstractImageFinder should override this method in order to add the names of any image files they use to the collection.
-
Constructor Details
-
AbstractImageFinder
public AbstractImageFinder()
-
-
Method Details
-
getAllImageNames
- Specified by:
getAllImageNames
in interfaceImageSearchTarget
- Returns:
- names of all images used by the component and any subcomponents
-
addImageNamesRecursively
Adds all images used by this component AND any children (or inner decorators/pieces) to the collection.- Specified by:
addImageNamesRecursively
in interfaceImageSearchTarget
- Parameters:
s
- Collection to add image names to
-
getLocalImageNames
- Specified by:
getLocalImageNames
in interfaceImageSearchTarget
- Returns:
- names of all images used by this component
-
addLocalImageNames
Classes extending AbstractImageFinder should override this method in order to add the names of any image files they use to the collection.- Specified by:
addLocalImageNames
in interfaceImageSearchTarget
- Parameters:
s
- Collection to add image names to
-