Package VASSAL.tools.icon
Class IconFactory
java.lang.Object
VASSAL.tools.icon.IconFactory
-
Constructor Summary
-
Method Summary
Modifier and TypeMethodDescriptionstatic void
addIconFamily
(IconFamily family) Add a new IconFamilystatic Icon
Return an Icon of the specified size.static IconFamily
getIconFamily
(String name) static BufferedImage
Return an Icon of the specified size as an Image.static void
removeIconFamily
(IconFamily family) Remove an IconFamilystatic void
renameIconFamily
(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
-