Package xal.tools
Class IconLib
java.lang.Object
xal.tools.IconLib
Fetch icons by name
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enum
Enum for groups of icons in the library -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Icon
Get the URL to the specified Icon.static Icon
getIcon
(IconLib.IconGroup group, String iconName) Get the URL to the specified Icon.static URL
getIconURL
(String group, String iconName) Get the URL to the specified Icon.static URL
getIconURL
(IconLib.IconGroup group, String iconName) Get the URL to the specified Icon.protected static String
getPathToIcon
(String group, String iconName) Get the path to the specified named icon which resides in the library.protected static String
getPathToIcon
(IconLib.IconGroup group, String iconName) Get the path to the specified named icon which resides in the library.
-
Constructor Details
-
IconLib
public IconLib()
-
-
Method Details
-
getPathToIcon
Get the path to the specified named icon which resides in the library.- Parameters:
group
- the group of icon, i.e. one of DEVELOPMENT, GENERAL, MEDIA, NAVIGATION, TABLE, TEXTiconName
- the name of the icon to fetch, e.g. "Cut24.gif"- Returns:
- The path to the specified icon in classpath notation
-
getIconURL
Get the URL to the specified Icon.- Parameters:
group
- the group of icon, i.e. one of DEVELOPMENT, GENERAL, MEDIA, NAVIGATION, TABLE, TEXTiconName
- the name of the icon to fetch, e.g. "Cut24.gif"- Returns:
- The URL to the specified icon
-
getIcon
Get the URL to the specified Icon.- Parameters:
group
- the group of icon, i.e. one of DEVELOPMENT, GENERAL, MEDIA, NAVIGATION, TABLE, TEXTiconName
- the name of the icon to fetch, e.g. "Cut24.gif"- Returns:
- The URL to the specified icon
-
getPathToIcon
Get the path to the specified named icon which resides in the library.- Parameters:
group
- the group of icon, i.e. one of "development", "general", "media", "navigation", "table", "text"iconName
- the name of the icon to fetch, e.g. "Cut24.gif"- Returns:
- The path to the specified icon in classpath notation
-
getIconURL
Get the URL to the specified Icon.- Parameters:
group
- the group of icon, i.e. one of "development", "general", "media", "navigation", "table", "text"iconName
- the name of the icon to fetch, e.g. "Cut24.gif"- Returns:
- The URL to the specified icon
-
getIcon
Get the URL to the specified Icon.- Parameters:
group
- the group of icon, i.e. one of "development", "general", "media", "navigation", "table", "text"iconName
- the name of the icon to fetch, e.g. "Cut24.gif"- Returns:
- The URL to the specified icon
-