org.freehep.graphicsio.swf
Class DefineFont2

java.lang.Object
  extended by org.freehep.util.io.Tag
      extended by org.freehep.graphicsio.swf.SWFTag
          extended by org.freehep.graphicsio.swf.DefinitionTag
              extended by org.freehep.graphicsio.swf.DefineFont2
All Implemented Interfaces:
SWFConstants

public class DefineFont2
extends DefinitionTag
implements SWFConstants

DefineFont2 TAG.

Version:
$Id: DefineFont2.java 8584 2006-08-10 23:06:37Z duns $
Author:
Mark Donszelmann, Charles Loomis, Steve Hannah

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, java.lang.String name, SWFShape[] shapes, int[] codes, int ascent, int descent, int leading, short[] advances, java.awt.geom.Rectangle2D[] bounds, DefineFont2.KerningRecord[] kerning)
           
DefineFont2(int character, boolean italic, boolean bold, java.lang.String name, SWFShape[] shapes, int[] codes)
           
 
Method Summary
 short[] getAdvances()
           
 int getAscent()
           
 java.awt.geom.Rectangle2D[] getBounds()
           
 int[] getCodes()
           
 int getDescent()
           
 long getId()
           
 DefineFont2.KerningRecord[] getKerning()
           
 int getLeading()
           
 java.lang.String getName()
           
 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(java.awt.geom.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(java.lang.String name)
           
 void setShapes(SWFShape[] shapes)
           
 void setShiftJIS(boolean shiftJIS)
           
 void setWideCodes(boolean wideCodes)
           
 void setWideOffsets(boolean wideOffsets)
           
 java.lang.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,
                   java.lang.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,
                   java.lang.String name,
                   SWFShape[] shapes,
                   int[] codes,
                   int ascent,
                   int descent,
                   int leading,
                   short[] advances,
                   java.awt.geom.Rectangle2D[] bounds,
                   DefineFont2.KerningRecord[] kerning)
Method Detail

read

public SWFTag read(int tagID,
                   SWFInputStream swf,
                   int len)
            throws java.io.IOException
Specified by:
read in class SWFTag
Throws:
java.io.IOException

write

public void write(int tagID,
                  SWFOutputStream swf)
           throws java.io.IOException
Overrides:
write in class SWFTag
Throws:
java.io.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 java.lang.String getName()
Overrides:
getName in class org.freehep.util.io.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 java.awt.geom.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(java.lang.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(java.awt.geom.Rectangle2D[] bounds)

setKerning

public void setKerning(DefineFont2.KerningRecord[] kerning)

toString

public java.lang.String toString()
Overrides:
toString in class DefinitionTag


Copyright © 2000-2007 FreeHEP. All Rights Reserved.