net.sf.freecol.client.gui
Class FAFile
java.lang.Object
net.sf.freecol.client.gui.FAFile
public class FAFile
- extends java.lang.Object
Represents the data within a Font Animation File.
- See Also:
DeclarationDialog
|
Field Summary |
private java.util.HashMap<java.lang.Object,java.lang.Object> |
letters
|
private int |
maxHeight
|
|
Constructor Summary |
FAFile(java.io.InputStream is)
Reads data from the given InputStream and
creates an object to represent this data. |
|
Method Summary |
java.awt.Dimension |
getDimension(java.lang.String text)
Gets the Dimension of the given
String when rendered. |
private FAFile.FAName |
getFAName(java.lang.String name)
|
private FAFile.FALetter |
getLetter(char letter)
|
java.awt.Point[] |
getPoints(java.lang.String text)
Gets the points to display the given text as an
animation. |
private void |
load(java.io.InputStream is)
|
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
letters
private java.util.HashMap<java.lang.Object,java.lang.Object> letters
maxHeight
private int maxHeight
FAFile
public FAFile(java.io.InputStream is)
throws java.io.IOException
- Reads data from the given
InputStream and
creates an object to represent this data.
- Parameters:
is - The InputStream
- Throws:
java.io.IOException - gets thrown if the data is invalid.
getDimension
public java.awt.Dimension getDimension(java.lang.String text)
- Gets the
Dimension of the given
String when rendered.
- Parameters:
text - The String.
- Returns:
- The
Dimension.
getPoints
public java.awt.Point[] getPoints(java.lang.String text)
- Gets the points to display the given text as an
animation.
- Parameters:
text - The text to get the points for.
- Returns:
- The points in the order in which they
should be drawn.
load
private void load(java.io.InputStream is)
throws java.io.IOException
- Throws:
java.io.IOException
getLetter
private FAFile.FALetter getLetter(char letter)
getFAName
private FAFile.FAName getFAName(java.lang.String name)