Debian Codegraph @

freehep-graphicsio-swf/src/main/java/org/freehep/graphicsio/swf/DefineShape3.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 * DefineShape3 TAG.
9 *
10 * @author Mark Donszelmann
11 * @author Charles Loomis
12 * @version $Id: freehep-graphicsio-swf/src/main/java/org/freehep/graphicsio/swf/DefineShape3.java fe6d709a107e 2006/11/27 18:25:46 duns $
13 */
14 public class DefineShape3 extends DefineShape {
15
16 public DefineShape3(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 DefineShape3() {
27 super(32, 3);
28 }
29
30 public SWFTag read(int tagID, SWFInputStream swf, int len)
31 throws IOException {
32 DefineShape3 tag = new DefineShape3();
33 tag.read(tagID, swf, true);
34 return tag;
35 }
36
37 public void write(int tagID, SWFOutputStream swf) throws IOException {
38 write(swf, true);
39 }
40 }