diff options
Diffstat (limited to 'src/org/apache/fop/svg/LineGraphic.java')
-rw-r--r-- | src/org/apache/fop/svg/LineGraphic.java | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/org/apache/fop/svg/LineGraphic.java b/src/org/apache/fop/svg/LineGraphic.java new file mode 100644 index 000000000..f4d103e22 --- /dev/null +++ b/src/org/apache/fop/svg/LineGraphic.java @@ -0,0 +1,34 @@ +package org.apache.xml.fop.svg; + +/** + * class representing a line in an SVG Area + */ +public class LineGraphic extends Graphic { + + /** x-coordinate of start */ + public int x1; + + /** y-coordinate of start */ + public int y1; + + /** x-coordinate of end */ + public int x2; + + /** y-coordinate of end */ + public int y2; + + /** + * construct a line graphic + * + * @param x1 x-coordinate of start + * @param y1 y-coordinate of start + * @param x2 x-coordinate of end + * @param y2 y-coordinate of end + */ + public LineGraphic(int x1, int y1, int x2, int y2) { + this.x1 = x1; + this.y1 = y1; + this.x2 = x2; + this.y2 = y2; + } +} |