Class ResourceUtils

java.lang.Object
com.realtime.crossfire.jxclient.util.ResourceUtils

public class ResourceUtils extends Object
Utility class for loading information from resources.
  • Field Details

    • UNKNOWN_PNG

      @NotNull public static final @NotNull String UNKNOWN_PNG
      The resource name of the "unknown" face.
      See Also:
    • NEXT_GROUP_FACE

      @NotNull public static final @NotNull String NEXT_GROUP_FACE
      The resource for "Click here for next group of items" buttons.
      See Also:
    • PREV_GROUP_FACE

      @NotNull public static final @NotNull String PREV_GROUP_FACE
      The resource for "Click here for previous group of items" buttons.
      See Also:
    • APPLICATION_ICON

      @NotNull public static final @NotNull String APPLICATION_ICON
      The resource name for the application icon.
      See Also:
    • ALL_SPELL_SKILLS_ICON

      @NotNull public static final @NotNull String ALL_SPELL_SKILLS_ICON
      The resource name for the default skill face.
      See Also:
  • Method Details

    • loadImage

      @NotNull public static @NotNull ImageIcon loadImage(@NotNull @NotNull String name) throws IOException
      Loads an image file.
      Parameters:
      name - the resource name to load
      Returns:
      the image
      Throws:
      IOException - if the image cannot be loaded