1
2 package org.freehep.graphicsio.emf.gdi;
3
4 import java.awt.Point;
5 import java.awt.Rectangle;
6 import java.io.IOException;
7
8 import org.freehep.graphicsio.emf.EMFConstants;
9 import org.freehep.graphicsio.emf.EMFOutputStream;
10
11
12
13
14
15
16
17 public abstract class Text implements EMFConstants {
18
19 Point pos;
20
21 String string;
22
23 int options;
24
25 Rectangle bounds;
26
27 int[] widths;
28
29 protected Text(Point pos, String string, int options, Rectangle bounds, int[] widths) {
30 this.pos = pos;
31 this.string = string;
32 this.options = options;
33 this.bounds = bounds;
34 this.widths = widths;
35 }
36
37 public Point getPos() {
38 return pos;
39 }
40
41 public Rectangle getBounds() {
42 return bounds;
43 }
44
45 public String getString() {
46 return string;
47 }
48
49 public abstract void write(EMFOutputStream emf) throws IOException;
50 }