|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.flagstone.transform.font.FontName
public final class FontName
FontName is used to hold the name and copyright information for a font.
| Constructor Summary | |
|---|---|
FontName(FontName object)
Creates and initialises a DefineFontName object using the values copied from another DefineFontName object. |
|
FontName(int uid,
String fontName,
String copyrightNotice)
Create a new FontName object with the name and copyright information for an existing font definition. |
|
FontName(SWFDecoder coder)
Creates and initialises a DefineFontName object using values encoded in the Flash binary format. |
|
| Method Summary | |
|---|---|
FontName |
copy()
Creates a complete copy of this object. |
void |
encode(SWFEncoder coder,
Context context)
Encode an object to the Flash binary format. |
String |
getCopyright()
Get the copyright notice. |
int |
getIdentifier()
Get the unique identifier of the font this object is for. |
String |
getName()
Returns the name of the font family. |
int |
prepareToEncode(Context context)
Prepare an object for encoding, returning the expected size of an object when it is encoded. |
void |
setCopyright(String notice)
Set the copyright notice. |
void |
setIdentifier(int uid)
Set the unique identifier of the font this object is for. |
void |
setName(String aString)
Set the name of the font. |
String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public FontName(SWFDecoder coder)
throws IOException
coder - an SWFDecoder object that contains the encoded Flash data.
IOException - if an error occurs while decoding the data.
public FontName(int uid,
String fontName,
String copyrightNotice)
uid - the unique identifier of the font definition.fontName - the name of the font.copyrightNotice - the copyright notice for the font.public FontName(FontName object)
object - a DefineFontName object from which the values will be
copied.| Method Detail |
|---|
public int getIdentifier()
public void setIdentifier(int uid)
uid - the unique identifier of the font definition.public String getName()
public void setName(String aString)
aString - the name assigned to the font, identifying the font family.
Must not be null.public String getCopyright()
public void setCopyright(String notice)
notice - a string describing the copyright information.public FontName copy()
copy in interface Copyable<MovieTag>public String toString()
toString in class Objectpublic int prepareToEncode(Context context)
prepareToEncode in interface SWFEncodeablecontext - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
public void encode(SWFEncoder coder,
Context context)
throws IOException
encode in interface SWFEncodeablecoder - an SWFEncoder object.context - an Context that allows information to be passed between
objects to control how they are initialised for encoding.
IOException - if an error occurs while encoding the object.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||