| 1 |
|
| 2 |
package org.freehep.graphicsio.swf; |
| 3 |
|
| 4 |
import java.awt.geom.Rectangle2D; |
| 5 |
import java.io.IOException; |
| 6 |
|
| 7 |
|
| 8 |
|
| 9 |
|
| 10 |
|
| 11 |
|
| 12 |
|
| 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 |
} |