Debian Codegraph @

freehep-graphicsio-swf/src/main/java/org/freehep/graphicsio/swf/DefineShape2.java

raw symbols SCIP
1 // Copyright 2001-2006, FreeHEP.
2 package org.freehep.graphicsio.swf;
3
4 import java.awt.geom.Rectangle2D;
5 import java.io.IOException;
6
7 /**
8 * DefineShape2 TAG.
9 *
10 * @author Mark Donszelmann
11 * @author Charles Loomis
12 * @version $Id: freehep-graphicsio-swf/src/main/java/org/freehep/graphicsio/swf/DefineShape2.java fe6d709a107e 2006/11/27 18:25:46 duns $
13 */
14 public class DefineShape2 extends DefineShape {
15
16 public DefineShape2(int id, Rectangle2D bounds, FillStyleArray fillStyles,
17 LineStyleArray lineStyles, SWFShape shape) {
18 this();
19 character = id;
20 this.bounds = bounds;
21 this.fillStyles = fillStyles;
22 this.lineStyles = lineStyles;
23 this.shape = shape;
24 }
25
26 public DefineShape2() {
27 super(22, 2);
28 }
29
30 public SWFTag read(int tagID, SWFInputStream swf, int len)
31 throws IOException {
32 DefineShape2 tag = new DefineShape2();
33 tag.read(tagID, swf, false);
34 return tag;
35 }
36
37 public void write(int tagID, SWFOutputStream swf) throws IOException {
38 write(swf, true);
39 }
40 }