Package xal.tools
Class IconLib
java.lang.Object
xal.tools.IconLib
Fetch icons by name
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumEnum for groups of icons in the library -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic IconGet the URL to the specified Icon.static IcongetIcon(IconLib.IconGroup group, String iconName) Get the URL to the specified Icon.static URLgetIconURL(String group, String iconName) Get the URL to the specified Icon.static URLgetIconURL(IconLib.IconGroup group, String iconName) Get the URL to the specified Icon.protected static StringgetPathToIcon(String group, String iconName) Get the path to the specified named icon which resides in the library.protected static StringgetPathToIcon(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
-