Package VASSAL.search
Class AbstractImageFinder
java.lang.Object
VASSAL.search.AbstractImageFinder
- All Implemented Interfaces:
ImageSearchTarget
- Direct Known Subclasses:
AbstractBuildable,BasicPiece,Decorator,Stack
public abstract class AbstractImageFinder extends Object implements ImageSearchTarget
Abstract implementation of
ImageSearchTarget interface. Used to find images contained by components/pieces/traits
for "Image Purge" tool,-
Constructor Summary
Constructors Constructor Description AbstractImageFinder() -
Method Summary
Modifier and Type Method Description voidaddImageNamesRecursively(Collection<String> s)Adds all images used by this component AND any children (or inner decorators/pieces) to the collection.voidaddLocalImageNames(Collection<String> s)Classes extending AbstractImageFinder should override this method in order to add the names of any image files they use to the collection.SortedSet<String>getAllImageNames()SortedSet<String>getLocalImageNames()
-
Constructor Details
-
AbstractImageFinder
public AbstractImageFinder()
-
-
Method Details
-
getAllImageNames
- Specified by:
getAllImageNamesin 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:
addImageNamesRecursivelyin interfaceImageSearchTarget- Parameters:
s- Collection to add image names to
-
getLocalImageNames
- Specified by:
getLocalImageNamesin 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:
addLocalImageNamesin interfaceImageSearchTarget- Parameters:
s- Collection to add image names to
-