Crossfire JXClient, Trunk
Static Public Member Functions | Static Public Attributes | Private Member Functions | List of all members
com.realtime.crossfire.jxclient.util.ResourceUtils Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.util.ResourceUtils:
Collaboration graph

Static Public Member Functions

static ImageIcon loadImage (@NotNull final String name) throws IOException
 

Static Public Attributes

static final String ALL_SPELL_SKILLS_ICON = "all_spell_skills_icon.png"
 
static final String APPLICATION_ICON = "application_icon.png"
 
static final String NEXT_GROUP_FACE = "next_group.png"
 
static final String PREV_GROUP_FACE = "prev_group.png"
 
static final String UNKNOWN_PNG = "unknown.png"
 

Private Member Functions

 ResourceUtils ()
 

Detailed Description

Utility class for loading information from resources.

Author
Andreas Kirschbaum

Definition at line 34 of file ResourceUtils.java.

Constructor & Destructor Documentation

◆ ResourceUtils()

com.realtime.crossfire.jxclient.util.ResourceUtils.ResourceUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 69 of file ResourceUtils.java.

Member Function Documentation

◆ loadImage()

static ImageIcon com.realtime.crossfire.jxclient.util.ResourceUtils.loadImage ( @NotNull final String  name) throws IOException
static

Loads an image file.

Parameters
namethe resource name to load
Returns
the image
Exceptions
IOExceptionif the image cannot be loaded

Definition at line 79 of file ResourceUtils.java.

Referenced by com.realtime.crossfire.jxclient.faces.DefaultFacesManager.DefaultFacesManager(), com.realtime.crossfire.jxclient.main.JXCWindow.JXCWindow(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.load(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseList().

Here is the caller graph for this function:

Member Data Documentation

◆ ALL_SPELL_SKILLS_ICON

final String com.realtime.crossfire.jxclient.util.ResourceUtils.ALL_SPELL_SKILLS_ICON = "all_spell_skills_icon.png"
static

The resource name for the default skill face.

Definition at line 64 of file ResourceUtils.java.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseList().

◆ APPLICATION_ICON

final String com.realtime.crossfire.jxclient.util.ResourceUtils.APPLICATION_ICON = "application_icon.png"
static

The resource name for the application icon.

Definition at line 58 of file ResourceUtils.java.

Referenced by com.realtime.crossfire.jxclient.main.JXCWindow.JXCWindow().

◆ NEXT_GROUP_FACE

final String com.realtime.crossfire.jxclient.util.ResourceUtils.NEXT_GROUP_FACE = "next_group.png"
static

The resource for "Click here for next group of items" buttons.

Definition at line 46 of file ResourceUtils.java.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.load().

◆ PREV_GROUP_FACE

final String com.realtime.crossfire.jxclient.util.ResourceUtils.PREV_GROUP_FACE = "prev_group.png"
static

The resource for "Click here for previous group of items" buttons.

Definition at line 52 of file ResourceUtils.java.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.load().

◆ UNKNOWN_PNG

final String com.realtime.crossfire.jxclient.util.ResourceUtils.UNKNOWN_PNG = "unknown.png"
static

The resource name of the "unknown" face.

Definition at line 40 of file ResourceUtils.java.

Referenced by com.realtime.crossfire.jxclient.faces.DefaultFacesManager.DefaultFacesManager().


The documentation for this class was generated from the following file: