Class ResourceUtils
java.lang.Object
com.realtime.crossfire.jxclient.util.ResourceUtils
Utility class for loading information from resources.
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final @NotNull StringThe resource name for the default skill face.static final @NotNull StringThe resource name for the application icon.static final @NotNull StringThe resource for "Click here for next group of items" buttons.static final @NotNull StringThe resource for "Click here for previous group of items" buttons.static final @NotNull StringThe resource name of the "unknown" face. -
Method Summary
-
Field Details
-
UNKNOWN_PNG
The resource name of the "unknown" face.- See Also:
-
NEXT_GROUP_FACE
The resource for "Click here for next group of items" buttons.- See Also:
-
PREV_GROUP_FACE
The resource for "Click here for previous group of items" buttons.- See Also:
-
APPLICATION_ICON
The resource name for the application icon.- See Also:
-
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
-