Crossfire JXClient, Trunk  R20561
com.realtime.crossfire.jxclient.util.ResourceUtils Class Reference

Utility class for loading information from resources. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.util.ResourceUtils:

Static Public Member Functions

static ImageIcon loadImage (@NotNull final String name) throws IOException
 Loads an image file. More...
 

Static Public Attributes

static final String ALL_SPELL_SKILLS_ICON = "all_spell_skills_icon.png"
 The resource name for the default skill face. More...
 
static final String APPLICATION_ICON = "application_icon.png"
 The resource name for the application icon. More...
 
static final String NEXT_GROUP_FACE = "next_group.png"
 The resource for "Click here for next group of items" buttons. More...
 
static final String PREV_GROUP_FACE = "prev_group.png"
 The resource for "Click here for previous group of items" buttons. More...
 
static final String UNKNOWN_PNG = "unknown.png"
 The resource name of the "unknown" face. More...
 

Private Member Functions

 ResourceUtils ()
 Private constructor to prevent instantiation. More...
 

Detailed Description

Utility class for loading information from resources.

Author
Andreas Kirschbaum

Definition at line 33 of file ResourceUtils.java.

Constructor & Destructor Documentation

◆ ResourceUtils()

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

Private constructor to prevent instantiation.

Definition at line 68 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 78 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 63 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 57 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 45 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 51 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 39 of file ResourceUtils.java.

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


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