1
2 package org.freehep.graphicsio.emf.gdi;
3
4 import java.awt.Rectangle;
5 import java.io.IOException;
6
7 import org.freehep.graphicsio.emf.EMFConstants;
8 import org.freehep.graphicsio.emf.EMFInputStream;
9 import org.freehep.graphicsio.emf.EMFTag;
10
11
12
13
14
15
16
17 public class ExtTextOutW extends AbstractExtTextOut implements EMFConstants {
18
19 private TextW text;
20
21 public ExtTextOutW() {
22 super(84, 1, null, 0, 1, 1);
23 }
24
25 public ExtTextOutW(
26 Rectangle bounds,
27 int mode,
28 float xScale,
29 float yScale,
30 TextW text) {
31
32 super(84, 1, bounds, mode, xScale, yScale);
33 this.text = text;
34 }
35
36 public EMFTag read(int tagID, EMFInputStream emf, int len)
37 throws IOException {
38
39 return new ExtTextOutW(
40 emf.readRECTL(),
41 emf.readDWORD(),
42 emf.readFLOAT(),
43 emf.readFLOAT(),
44 TextW.read(emf));
45 }
46
47 public Text getText() {
48 return text;
49 }
50 }