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

Public Member Functions

 FontParser (@NotNull final JXCSkinSource skinSource)
 
Font getFont (@NotNull final String name) throws IOException
 

Private Attributes

final JXCSkinSource skinSource
 

Detailed Description

Creates Font instances from string representations.

Author
Andreas Kirschbaum

Definition at line 36 of file FontParser.java.

Constructor & Destructor Documentation

◆ FontParser()

com.realtime.crossfire.jxclient.skin.io.FontParser.FontParser ( @NotNull final JXCSkinSource  skinSource)

Creates a new instance.

Parameters
skinSourcethe skin source for loading resources

Definition at line 48 of file FontParser.java.

References com.realtime.crossfire.jxclient.skin.io.FontParser.skinSource.

Member Function Documentation

◆ getFont()

Font com.realtime.crossfire.jxclient.skin.io.FontParser.getFont ( @NotNull final String  name) throws IOException

Returns a font by font file base name.

Parameters
namethe file base name of the font file to load
Returns
the font
Exceptions
IOExceptionif the font cannot be loaded

Definition at line 59 of file FontParser.java.

References com.realtime.crossfire.jxclient.skin.source.JXCSkinSource.getInputStream(), com.realtime.crossfire.jxclient.skin.source.JXCSkinSource.getURI(), and com.realtime.crossfire.jxclient.skin.io.FontParser.skinSource.

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

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

Member Data Documentation

◆ skinSource

final JXCSkinSource com.realtime.crossfire.jxclient.skin.io.FontParser.skinSource
private

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