org.freehep.graphicsio.swf
Class DefineFont2
java.lang.Object
org.freehep.util.io.Tag
org.freehep.graphicsio.swf.SWFTag
org.freehep.graphicsio.swf.DefinitionTag
org.freehep.graphicsio.swf.DefineFont2
- All Implemented Interfaces:
- SWFConstants
- public class DefineFont2
- extends DefinitionTag
- implements SWFConstants
DefineFont2 TAG.
- Version:
- $Id: DefineFont2.java,v 1.4 2003/04/25 23:12:51 duns Exp $
- Author:
- Mark Donszelmann, Charles Loomis, Steve Hannah
- Source Code:
- DefineFont2.java
Constructor Summary |
DefineFont2()
|
DefineFont2(int character,
boolean shiftJIS,
boolean ansi,
boolean italic,
boolean bold,
boolean wideOffsets,
boolean wideCodes,
int languageCode,
String name,
SWFShape[] shapes,
int[] codes,
int ascent,
int descent,
int leading,
short[] advances,
Rectangle2D[] bounds,
DefineFont2.KerningRecord[] kerning)
|
DefineFont2(int character,
boolean italic,
boolean bold,
String name,
SWFShape[] shapes,
int[] codes)
|
DefineFont2
public DefineFont2()
DefineFont2
public DefineFont2(int character,
boolean italic,
boolean bold,
String name,
SWFShape[] shapes,
int[] codes)
DefineFont2
public DefineFont2(int character,
boolean shiftJIS,
boolean ansi,
boolean italic,
boolean bold,
boolean wideOffsets,
boolean wideCodes,
int languageCode,
String name,
SWFShape[] shapes,
int[] codes,
int ascent,
int descent,
int leading,
short[] advances,
Rectangle2D[] bounds,
DefineFont2.KerningRecord[] kerning)
read
public SWFTag read(int tagID,
SWFInputStream swf,
int len)
throws IOException
- Specified by:
read
in class SWFTag
- Throws:
IOException
write
public void write(int tagID,
SWFOutputStream swf)
throws IOException
- Overrides:
write
in class SWFTag
- Throws:
IOException
getId
public long getId()
getShiftJIS
public boolean getShiftJIS()
isAnsi
public boolean isAnsi()
isItalic
public boolean isItalic()
isBold
public boolean isBold()
hasWideOffsets
public boolean hasWideOffsets()
hasWideCodes
public boolean hasWideCodes()
getName
public String getName()
- Description copied from class:
Tag
- Get the tag name.
- Overrides:
getName
in class Tag
getShapes
public SWFShape[] getShapes()
getCodes
public int[] getCodes()
getAscent
public int getAscent()
getDescent
public int getDescent()
getLeading
public int getLeading()
getAdvances
public short[] getAdvances()
getBounds
public Rectangle2D[] getBounds()
getKerning
public DefineFont2.KerningRecord[] getKerning()
setId
public void setId(int id)
setShiftJIS
public void setShiftJIS(boolean shiftJIS)
setAnsi
public void setAnsi(boolean ansi)
setItalic
public void setItalic(boolean italic)
setBold
public void setBold(boolean bold)
setWideOffsets
public void setWideOffsets(boolean wideOffsets)
setWideCodes
public void setWideCodes(boolean wideCodes)
setName
public void setName(String name)
setCodes
public void setCodes(int[] codes)
setShapes
public void setShapes(SWFShape[] shapes)
setAscent
public void setAscent(int ascent)
setDescent
public void setDescent(int descent)
setLeading
public void setLeading(int leading)
setAdvances
public void setAdvances(short[] advances)
setAdvances
public void setAdvances(int[] advances)
setBounds
public void setBounds(Rectangle2D[] bounds)
setKerning
public void setKerning(DefineFont2.KerningRecord[] kerning)
toString
public String toString()
- Overrides:
toString
in class DefinitionTag
Copyright © 2000-2004 FreeHEP, All Rights Reserved.