Class IconFactory
java.lang.Object
VASSAL.tools.icon.IconFactory
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic voidaddIconFamily(IconFamily family) Add a new IconFamilystatic IconReturn an Icon of the specified size.static IconFamilygetIconFamily(String name) static BufferedImageReturn an Icon of the specified size as an Image.static voidremoveIconFamily(IconFamily family) Remove an IconFamilystatic voidrenameIconFamily(String oldName, IconFamily family) Rename an IconFamily
-
Constructor Details
-
IconFactory
public IconFactory()Create a new IconFactory.
-
-
Method Details
-
getIcon
-
getImage
Return an Icon of the specified size as an Image. Standard sizes are defined in IconFamily- Parameters:
iconFamilyName- Name of Icon familysize- Size (See IconFamily)- Returns:
- Sized Image
-
getIconFamilyNames
-
addIconFamily
Add a new IconFamily- Parameters:
family- Icon Family Name
-
removeIconFamily
Remove an IconFamily- Parameters:
family- Icon Family Name
-
renameIconFamily
Rename an IconFamily- Parameters:
oldName- Old Icon Family Namefamily- New Icon Family Name
-
getIconFamily
- Parameters:
name- name of family- Returns:
- Return an Icon Family
-