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

Static Public Member Functions

static CheckBoxOption parseCheckBoxOption (@NotNull final String name, @NotNull final OptionManager optionManager) throws IOException
 
static Color parseColor (@NotNull final String name) throws IOException
 
static Color parseColorNull (@NotNull final String name)
 
static Orientation parseOrientation (@NotNull final String name) throws IOException
 
static int parseStat (@NotNull final String name) throws IOException
 
static String parseText (@NotNull final Args args, @NotNull final LineNumberReader lnr) throws IOException
 

Private Member Functions

 ParseUtils ()
 

Static Private Member Functions

static Color parseColorName (@NotNull final String name)
 

Detailed Description

Utility class for parsing string parameters into values.

Author
Andreas Kirschbaum

Definition at line 42 of file ParseUtils.java.

Constructor & Destructor Documentation

◆ ParseUtils()

com.realtime.crossfire.jxclient.skin.io.ParseUtils.ParseUtils ( )
private

Private constructor to prevent instantiation.

Definition at line 47 of file ParseUtils.java.

Member Function Documentation

◆ parseCheckBoxOption()

static CheckBoxOption com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseCheckBoxOption ( @NotNull final String  name,
@NotNull final OptionManager  optionManager 
) throws IOException
static

Parses a checkbox option name.

Parameters
namethe checkbox option name to parse
optionManagerthe option manager to use
Returns
the checkbox option
Exceptions
IOExceptionif the checkbox option name does not exist

Definition at line 222 of file ParseUtils.java.

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

Here is the caller graph for this function:

◆ parseColor()

static Color com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseColor ( @NotNull final String  name) throws IOException
static

Parses a color name.

Parameters
namethe color name to parse
Returns
the color
Exceptions
IOExceptionif the color name does not exist

Definition at line 90 of file ParseUtils.java.

References com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseColorNull().

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseButton(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseCommandText(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDef(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDupGauge(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseFill(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelFailure(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelHtml(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelMessage(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelMulti(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelNewchar(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelQuery(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelSoundsCredits(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelStat(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelStat2(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelText(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLogColor(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLogLabel(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLogMessage(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseQueryText(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseScrollbar(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseText(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseTextGauge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseColorName()

static Color com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseColorName ( @NotNull final String  name)
staticprivate

Parses a color name.

Parameters
namethe color name to parse
Returns
the color or
null
if the color name does not exist

Definition at line 138 of file ParseUtils.java.

Referenced by com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseColorNull().

Here is the caller graph for this function:

◆ parseColorNull()

static Color com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseColorNull ( @NotNull final String  name)
static

Parses a color name, optionally followed by "/<alpha>".

Parameters
namethe color name to parse
Returns
the color or
null
if the color name does not exist

Definition at line 104 of file ParseUtils.java.

References com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseColorName(), and com.realtime.crossfire.jxclient.util.NumberParser.parseFloat().

Referenced by com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseColor(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDef(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseItem().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseOrientation()

static Orientation com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseOrientation ( @NotNull final String  name) throws IOException
static

Parses an orientation value.

Parameters
namethe orientation value to parse
Returns
the orientation
Exceptions
IOExceptionif the orientation value does not exist

Definition at line 73 of file ParseUtils.java.

References com.realtime.crossfire.jxclient.gui.gauge.OrientationParser.parseOrientation().

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDupGauge(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseGauge(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseTextGauge().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseStat()

static int com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseStat ( @NotNull final String  name) throws IOException
static

Parses a stat value.

Parameters
namethe stat value to parse
Returns
the stat value
Exceptions
IOExceptionif the stat value does not exist

Definition at line 56 of file ParseUtils.java.

References com.realtime.crossfire.jxclient.stats.StatsParser.parseStat().

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelStat(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelStat2(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parsePictureStat().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ parseText()

static String com.realtime.crossfire.jxclient.skin.io.ParseUtils.parseText ( @NotNull final Args  args,
@NotNull final LineNumberReader  lnr 
) throws IOException
static

Concatenates trailing arguments into a string. If the first line is "<<EOF", all text up to the next line containing only "EOF" is appended. Comments starting with "#" are dropped.

Parameters
argsthe args to concatenate
lnrwhere to read additional lines from
Returns
the concatenated string
Exceptions
IOExceptionif reading from
lnr
fails

Definition at line 180 of file ParseUtils.java.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseButton(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseCheckbox(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDef(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDialog(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDupGauge(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseGauge(), com.realtime.crossfire.jxclient.skin.io.CommandParser.parseGuiExecuteCommand(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelHtml(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelMulti(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseLabelText(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parsePicture(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parsePictureStat(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseSelectableButton(), com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseTextButton(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseTextGauge().

Here is the caller graph for this function:

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