aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/svg/RectGraphic.java
diff options
context:
space:
mode:
Diffstat (limited to 'src/org/apache/fop/svg/RectGraphic.java')
-rw-r--r--src/org/apache/fop/svg/RectGraphic.java34
1 files changed, 34 insertions, 0 deletions
diff --git a/src/org/apache/fop/svg/RectGraphic.java b/src/org/apache/fop/svg/RectGraphic.java
new file mode 100644
index 000000000..e27bd488b
--- /dev/null
+++ b/src/org/apache/fop/svg/RectGraphic.java
@@ -0,0 +1,34 @@
+package org.apache.xml.fop.svg;
+
+/**
+ * class representing a rectangle in an SVG Area
+ */
+public class RectGraphic extends Graphic {
+
+ /** x-coordinate of corner */
+ public int x;
+
+ /** y-coordinate of corner */
+ public int y;
+
+ /** width of rectangle */
+ public int width;
+
+ /** height of rectangle */
+ public int height;
+
+ /**
+ * construct a rectangle graphic.
+ *
+ * @param x x-coordinate of corner
+ * @param y y-coordinate of corner
+ * @param width width of rectangle
+ * @param height height of rectangle
+ */
+ public RectGraphic(int x, int y, int width, int height) {
+ this.x = x;
+ this.y = y;
+ this.width = width;
+ this.height = height;
+ }
+}