FreeHEP API
Version current

org.freehep.graphicsio.swf
Class DefineShape

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.DefineShape
All Implemented Interfaces:
SWFConstants
Direct Known Subclasses:
DefineShape2, DefineShape3

public class DefineShape
extends DefinitionTag

DefineShape TAG.

Version:
$Id: DefineShape.java,v 1.2 2002/07/30 19:11:32 duns Exp $
Author:
Mark Donszelmann, Charles Loomis
Source Code:
DefineShape.java

Field Summary
protected  Rectangle2D bounds
           
protected  int character
           
protected  FillStyleArray fillStyles
           
protected  LineStyleArray lineStyles
           
protected  SWFShape shape
           
 
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
  DefineShape()
           
protected DefineShape(int tagID, int version)
           
  DefineShape(int id, Rectangle2D bounds, FillStyleArray fillStyles, LineStyleArray lineStyles, SWFShape shape)
           
 
Method Summary
protected  void read(int tagID, SWFInputStream swf, boolean hasAlpha)
           
 SWFTag read(int tagID, SWFInputStream swf, int len)
           
 String toString()
           
 void write(int tagID, SWFOutputStream swf)
           
 void write(SWFOutputStream swf, boolean hasAlpha)
           
 
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
getName, getTag, getVersion
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

character

protected int character

bounds

protected Rectangle2D bounds

fillStyles

protected FillStyleArray fillStyles

lineStyles

protected LineStyleArray lineStyles

shape

protected SWFShape shape
Constructor Detail

DefineShape

public DefineShape(int id,
                   Rectangle2D bounds,
                   FillStyleArray fillStyles,
                   LineStyleArray lineStyles,
                   SWFShape shape)

DefineShape

public DefineShape()

DefineShape

protected DefineShape(int tagID,
                      int version)
Method Detail

read

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

read

protected void read(int tagID,
                    SWFInputStream swf,
                    boolean hasAlpha)
             throws IOException
Throws:
IOException

write

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

write

public void write(SWFOutputStream swf,
                  boolean hasAlpha)
           throws IOException
Throws:
IOException

toString

public String toString()
Overrides:
toString in class DefinitionTag

FreeHEP API
Version current

Copyright © 2000-2004 FreeHEP, All Rights Reserved.