|
|||||||||
| Home >> All >> com >> anotherbigidea >> flash >> [ movie overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
com.anotherbigidea.flash.movie
Class Font

java.lang.Objectcom.anotherbigidea.flash.movie.Symbol
com.anotherbigidea.flash.movie.Font
- public class Font
- extends Symbol
A Font Symbol. The Font references a FontDefinition object from which it takes the glyph definitions it needs.
| Nested Class Summary | |
class |
Font.Chars
A set of contiguous characters in one font. |
class |
Font.NoGlyphException
|
| Field Summary | |
protected java.lang.Object |
font1Key
|
protected java.lang.Object |
font2Key
|
protected FontDefinition |
fontDef
|
protected java.util.ArrayList |
glyphList
|
protected java.util.HashMap |
glyphs
|
protected java.util.HashMap |
indices
|
protected int |
languageCode
|
| Fields inherited from class com.anotherbigidea.flash.movie.Symbol |
id |
| Constructor Summary | |
Font(FontDefinition fontDef)
|
|
| Method Summary | |
int |
addGlyph(FontDefinition.Glyph glyph)
Add a glyph and return the index |
Font.Chars |
chars(java.lang.String chars,
double fontSize)
Get the Chars instance for the given string at the given font size |
protected int |
define(boolean textFont,
Movie movie,
com.anotherbigidea.flash.interfaces.SWFTagTypes tagwriter)
|
protected int |
defineFont1(Movie movie,
com.anotherbigidea.flash.interfaces.SWFTagTypes tagwriter)
|
protected int |
defineFont2(Movie movie,
com.anotherbigidea.flash.interfaces.SWFTagTypes tagwriter)
|
protected int |
defineSymbol(Movie movie,
com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter,
com.anotherbigidea.flash.interfaces.SWFTagTypes definitionwriter)
Override to provide symbol definition |
protected int[] |
getCodes()
Get the codes of the current set of glyphs |
FontDefinition |
getDefinition()
|
protected FontDefinition.Glyph |
getGlyph(int code,
int[] index)
|
java.util.List |
getGlyphList()
|
int |
getLanguageCode()
|
void |
loadAllGlyphs()
Load all glyphs from the font definition |
void |
loadGlyphs(java.lang.String chars)
Load the glyphs for the characters in the given string from the FontDefinition into this font. |
void |
setCode(int index,
int code)
Set the code for the glyph at the given index |
void |
setLanguageCode(int code)
|
| Methods inherited from class com.anotherbigidea.flash.movie.Symbol |
define, getId, getNextId |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
font1Key
protected java.lang.Object font1Key
font2Key
protected java.lang.Object font2Key
fontDef
protected FontDefinition fontDef
glyphs
protected java.util.HashMap glyphs
indices
protected java.util.HashMap indices
glyphList
protected java.util.ArrayList glyphList
languageCode
protected int languageCode
| Constructor Detail |
Font
public Font(FontDefinition fontDef)
| Method Detail |
getLanguageCode
public int getLanguageCode()
setLanguageCode
public void setLanguageCode(int code)
getDefinition
public FontDefinition getDefinition()
getGlyphList
public java.util.List getGlyphList()
loadGlyphs
public void loadGlyphs(java.lang.String chars) throws Font.NoGlyphException
- Load the glyphs for the characters in the given string from the
FontDefinition into this font.
loadAllGlyphs
public void loadAllGlyphs()
- Load all glyphs from the font definition
chars
public Font.Chars chars(java.lang.String chars, double fontSize) throws Font.NoGlyphException
- Get the Chars instance for the given string at the given font size
getGlyph
protected FontDefinition.Glyph getGlyph(int code, int[] index) throws Font.NoGlyphException
addGlyph
public int addGlyph(FontDefinition.Glyph glyph)
- Add a glyph and return the index
setCode
public void setCode(int index,
int code)
- Set the code for the glyph at the given index
define
protected int define(boolean textFont,
Movie movie,
com.anotherbigidea.flash.interfaces.SWFTagTypes tagwriter)
throws java.io.IOException
defineFont1
protected int defineFont1(Movie movie, com.anotherbigidea.flash.interfaces.SWFTagTypes tagwriter) throws java.io.IOException
defineFont2
protected int defineFont2(Movie movie, com.anotherbigidea.flash.interfaces.SWFTagTypes tagwriter) throws java.io.IOException
getCodes
protected int[] getCodes()
- Get the codes of the current set of glyphs
defineSymbol
protected int defineSymbol(Movie movie, com.anotherbigidea.flash.interfaces.SWFTagTypes timelineWriter, com.anotherbigidea.flash.interfaces.SWFTagTypes definitionwriter) throws java.io.IOException
- Description copied from class:
Symbol - Override to provide symbol definition
- Specified by:
defineSymbolin classSymbol
|
|||||||||
| Home >> All >> com >> anotherbigidea >> flash >> [ movie overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC