Package net.sf.freecol.common.resources
Class FAFile
- java.lang.Object
-
- net.sf.freecol.common.resources.FAFile
-
public class FAFile extends java.lang.ObjectRepresents the data within a Font Animation File.- See Also:
DeclarationPanel
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description private static classFAFile.CREatingInputStreamThis utility class removes all CR:s from anInputStream.private static classFAFile.FALetterprivate static classFAFile.FAName
-
Constructor Summary
Constructors Constructor Description FAFile(java.io.InputStream is)Reads data from the givenInputStreamand creates an object to represent this data.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.DimensiongetDimension(java.lang.String text)Gets theDimensionof the givenStringwhen rendered.private FAFile.FANamegetFAName(java.lang.String name)private FAFile.FALettergetLetter(char letter)java.awt.Point[]getPoints(java.lang.String text)Gets the points to display the given text as an animation.private voidload(java.io.InputStream is)
-
-
-
Method Detail
-
getDimension
public java.awt.Dimension getDimension(java.lang.String text)
Gets theDimensionof the givenStringwhen rendered.- Parameters:
text- TheString.- 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)
-
-