View Javadoc

1   // Copyright 2001, FreeHEP.
2   package org.freehep.graphicsio.swf;
3   
4   import java.awt.geom.AffineTransform;
5   import java.awt.geom.Rectangle2D;
6   import java.io.IOException;
7   import java.util.Vector;
8   
9   /**
10   * DefineText2 TAG.
11   * 
12   * @author Mark Donszelmann
13   * @author Charles Loomis
14   * @version $Id: DefineText2.java 8584 2006-08-10 23:06:37Z duns $
15   */
16  public class DefineText2 extends DefineText {
17  
18      public DefineText2(int id, Rectangle2D bounds, AffineTransform matrix,
19              Vector text) {
20          this();
21          character = id;
22          this.bounds = bounds;
23          this.matrix = matrix;
24          this.text = text;
25      }
26  
27      public DefineText2() {
28          super(33, 3);
29      }
30  
31      public SWFTag read(int tagID, SWFInputStream swf, int len)
32              throws IOException {
33          DefineText2 tag = new DefineText2();
34          tag.read(tagID, swf, len, true);
35          return tag;
36      }
37  
38      public void write(int tagID, SWFOutputStream swf) throws IOException {
39  
40          write(swf, true);
41      }
42  }