aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/svg/TextGraphic.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/svg/TextGraphic.java')
-rw-r--r--src/org/apache/fop/svg/TextGraphic.java29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/org/apache/fop/svg/TextGraphic.java b/src/org/apache/fop/svg/TextGraphic.java
new file mode 100644
index 000000000..e0510f2f1
--- /dev/null
+++ b/src/org/apache/fop/svg/TextGraphic.java
@@ -0,0 +1,29 @@
+package org.apache.xml.fop.svg;
+
+/**
+ * class representing text in an SVG Area
+ */
+public class TextGraphic extends Graphic {
+
+ /** x-coordinate of text */
+ public int x;
+
+ /** y-coordinate of text */
+ public int y;
+
+ /** the text string itself */
+ public String s;
+
+ /**
+ * construct a text graphic
+ *
+ * @param x x-coordinate of text
+ * @param y y-coordinate of text
+ * @param s the text string
+ */
+ public TextGraphic(int x, int y, String s) {
+ this.x = x;
+ this.y = y;
+ this.s = s;
+ }
+}