Package xal.tools

Class IconLib

java.lang.Object
xal.tools.IconLib

public class IconLib extends Object
Fetch icons by name
  • Constructor Details

    • IconLib

      public IconLib()
  • Method Details

    • getPathToIcon

      protected static String getPathToIcon(IconLib.IconGroup group, String iconName)
      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

      public static URL getIconURL(IconLib.IconGroup group, String iconName)
      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

      public static Icon getIcon(IconLib.IconGroup group, String iconName)
      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
    • getPathToIcon

      protected static String getPathToIcon(String group, String iconName)
      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

      public static URL getIconURL(String group, String iconName)
      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

      public static Icon getIcon(String group, String iconName)
      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