FreeHEP API
Version v1.1

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

DefineFont2 TAG.

Version:
$Id: DefineFont2.java,v 1.3 2002/07/30 19:11:32 duns Exp $
Author:
Mark Donszelmann, Charles Loomis, Steve Hannah

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, TWIPS
 
Constructor Summary
DefineFont2()
           
DefineFont2(int character, boolean hasLayout, boolean shiftJIS, boolean unicode, boolean ansi, boolean italic, boolean bold, boolean wideOffsets, boolean wideCodes, String name, SWFShape[] shapes, int[] codes, int ascent, int descent, int leading, short[] advances, Rectangle2D[] bounds, FontKerning[] kerning)
           
 
Method Summary
 short[] getAdvances()
           
 int getAscent()
           
 Rectangle2D[] getBounds()
           
 int[] getCodes()
           
 int getDescent()
           
 long getId()
           
 FontKerning[] getKerning()
           
 int getLeading()
           
 String getName()
          Get the tag name.
 SWFShape[] getShapes()
           
 boolean getShiftJIS()
           
 boolean hasLayout()
           
 boolean hasWideCodes()
           
 boolean hasWideOffsets()
           
 boolean isAnsi()
           
 boolean isBold()
           
 boolean isItalic()
           
 boolean isUnicode()
           
 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(FontKerning[] kerning)
           
 void setLayout(boolean layout)
           
 void setLeading(int leading)
           
 void setName(String name)
           
 void setShapes(SWFShape[] shapes)
           
 void setShiftJIS(boolean shiftJIS)
           
 void setUnicode(boolean unicode)
           
 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 hasLayout,
                   boolean shiftJIS,
                   boolean unicode,
                   boolean ansi,
                   boolean italic,
                   boolean bold,
                   boolean wideOffsets,
                   boolean wideCodes,
                   String name,
                   SWFShape[] shapes,
                   int[] codes,
                   int ascent,
                   int descent,
                   int leading,
                   short[] advances,
                   Rectangle2D[] bounds,
                   FontKerning[] kerning)
Method Detail

read

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

write

public void write(int tagID,
                  SWFOutputStream swf)
           throws IOException
Overrides:
write in class SWFTag
IOException

getId

public long getId()

hasLayout

public boolean hasLayout()

getShiftJIS

public boolean getShiftJIS()

isUnicode

public boolean isUnicode()

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 FontKerning[] getKerning()

setId

public void setId(int id)

setLayout

public void setLayout(boolean layout)

setShiftJIS

public void setShiftJIS(boolean shiftJIS)

setUnicode

public void setUnicode(boolean unicode)

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(FontKerning[] kerning)

toString

public String toString()
Overrides:
toString in class DefinitionTag

FreeHEP API
Version v1.1

Copyright © 2000-2002 FreeHEP, All Rights Reserved.