aboutsummaryrefslogtreecommitdiffstats
path: root/src/org/apache/fop/svg/RectGraphic.java
diff options
context:
space:
mode:
authorDirk-Willem van Gulik <dirkx@apache.org>1999-11-08 19:12:49 +0000
committerDirk-Willem van Gulik <dirkx@apache.org>1999-11-08 19:12:49 +0000
commit10070e8383ff94f3f256e346b8c4a2a493533cfb (patch)
tree59080d7faae7c0bd9ff4e5a48f4df4394d468a02 /src/org/apache/fop/svg/RectGraphic.java
parentb510e7f15a798e944bb138993f2b586413adecbe (diff)
downloadxmlgraphics-fop-10070e8383ff94f3f256e346b8c4a2a493533cfb.tar.gz
xmlgraphics-fop-10070e8383ff94f3f256e346b8c4a2a493533cfb.zip
Initial revision
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193213 13f79535-47bb-0310-9956-ffa450edef68
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;
+ }
+}