FreeHEP API
Version current

org.freehep.graphicsio.swf
Class DefineFont2

java.lang.Object
  extended byorg.freehep.util.io.Tag
      extended byorg.freehep.graphicsio.swf.SWFTag
          extended byorg.freehep.graphicsio.swf.DefinitionTag
              extended byorg.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

Nested Class Summary
static class DefineFont2.KerningRecord
           
 
Field Summary
 
Fields inherited from class org.freehep.util.io.Tag
DEFAULT_TAG
 
Fields inherited from interface org.freehep.graphicsio.swf.SWFConstants
CONTROL, DEFAULT_VERSION, DEFINITION, LANGUAGE_JAPANESE, LANGUAGE_KOREAN, LANGUAGE_LATIN, LANGUAGE_SIMPLIFIED_CHINESE, LANGUAGE_TRADITIONAL_CHINESE, TWIPS
 
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)
           
 
Method Summary
 short[] getAdvances()
           
 int getAscent()
           
 Rectangle2D[] getBounds()
           
 int[] getCodes()
           
 int getDescent()
           
 long getId()
           
 DefineFont2.KerningRecord[] getKerning()
           
 int getLeading()
           
 String getName()
          Get the tag name.
 SWFShape[] getShapes()
           
 boolean getShiftJIS()
           
 boolean hasWideCodes()
           
 boolean hasWideOffsets()
           
 boolean isAnsi()
           
 boolean isBold()
           
 boolean isItalic()
           
 SWFTag read(int tagID, SWFInputStream swf, int len)
           
 void setAdvances(int[] advances)
           
 void setAdvances(short[] advances)
           
 void setAnsi(boolean ansi)
           
 void setAscent(int ascent)
           
 void setBold(boolean bold)
           
 void setBounds(Rectangle2D[] bounds)
           
 void setCodes(int[] codes)
           
 void setDescent(int descent)
           
 void setId(int id)
           
 void setItalic(boolean italic)
           
 void setKerning(DefineFont2.KerningRecord[] kerning)
           
 void setLeading(int leading)
           
 void setName(String name)
           
 void setShapes(SWFShape[] shapes)
           
 void setShiftJIS(boolean shiftJIS)
           
 void setWideCodes(boolean wideCodes)
           
 void setWideOffsets(boolean wideOffsets)
           
 String toString()
           
 void write(int tagID, SWFOutputStream swf)
           
 
Methods inherited from class org.freehep.graphicsio.swf.DefinitionTag
getTagType
 
Methods inherited from class org.freehep.graphicsio.swf.SWFTag
read, write
 
Methods inherited from class org.freehep.util.io.Tag
getTag, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

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)
Method Detail

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

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.