diff options
author | Keiron Liddle <keiron@apache.org> | 2001-11-02 11:06:09 +0000 |
---|---|---|
committer | Keiron Liddle <keiron@apache.org> | 2001-11-02 11:06:09 +0000 |
commit | cfc0da75fcc187e6dd7596e7480c4941e278b9d5 (patch) | |
tree | 8dadcac1a3dc6bcda7017fe8a71736fd044fb575 /src/org/apache/fop/svg | |
parent | 4cf83fe1e5dab96e2e348877b0e43d8abdc6c0d9 (diff) | |
download | xmlgraphics-fop-cfc0da75fcc187e6dd7596e7480c4941e278b9d5.tar.gz xmlgraphics-fop-cfc0da75fcc187e6dd7596e7480c4941e278b9d5.zip |
updated a few hashtables and vectors
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194535 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/svg')
-rw-r--r-- | src/org/apache/fop/svg/PDFGraphics2D.java | 48 | ||||
-rw-r--r-- | src/org/apache/fop/svg/SVGUserAgent.java | 3 |
2 files changed, 24 insertions, 27 deletions
diff --git a/src/org/apache/fop/svg/PDFGraphics2D.java b/src/org/apache/fop/svg/PDFGraphics2D.java index 63493cacc..a48c4e7d6 100644 --- a/src/org/apache/fop/svg/PDFGraphics2D.java +++ b/src/org/apache/fop/svg/PDFGraphics2D.java @@ -31,7 +31,7 @@ import java.awt.image.renderable.*; import java.io.*; import java.util.Map; -import java.util.Vector; +import java.util.ArrayList; import java.util.Hashtable; /** @@ -645,40 +645,40 @@ public class PDFGraphics2D extends AbstractGraphics2D { Point2D p2 = gp.getPoint2(); boolean cyclic = gp.isCyclic(); - Vector theCoords = new Vector(); - theCoords.addElement(new Double(p1.getX())); - theCoords.addElement(new Double(p1.getY())); - theCoords.addElement(new Double(p2.getX())); - theCoords.addElement(new Double(p2.getY())); + ArrayList theCoords = new ArrayList(); + theCoords.add(new Double(p1.getX())); + theCoords.add(new Double(p1.getY())); + theCoords.add(new Double(p2.getX())); + theCoords.add(new Double(p2.getY())); - Vector theExtend = new Vector(); - theExtend.addElement(new Boolean(true)); - theExtend.addElement(new Boolean(true)); + ArrayList theExtend = new ArrayList(); + theExtend.add(new Boolean(true)); + theExtend.add(new Boolean(true)); - Vector theDomain = new Vector(); - theDomain.addElement(new Double(0)); - theDomain.addElement(new Double(1)); + ArrayList theDomain = new ArrayList(); + theDomain.add(new Double(0)); + theDomain.add(new Double(1)); - Vector theEncode = new Vector(); - theEncode.addElement(new Double(0)); - theEncode.addElement(new Double(1)); - theEncode.addElement(new Double(0)); - theEncode.addElement(new Double(1)); + ArrayList theEncode = new ArrayList(); + theEncode.add(new Double(0)); + theEncode.add(new Double(1)); + theEncode.add(new Double(0)); + theEncode.add(new Double(1)); - Vector theBounds = new Vector(); - theBounds.addElement(new Double(0)); - theBounds.addElement(new Double(1)); + ArrayList theBounds = new ArrayList(); + theBounds.add(new Double(0)); + theBounds.add(new Double(1)); - Vector theFunctions = new Vector(); + ArrayList theFunctions = new ArrayList(); - Vector someColors = new Vector(); + ArrayList someColors = new ArrayList(); PDFColor color1 = new PDFColor(c1.getRed(), c1.getGreen(), c1.getBlue()); - someColors.addElement(color1); + someColors.add(color1); PDFColor color2 = new PDFColor(c2.getRed(), c2.getGreen(), c2.getBlue()); - someColors.addElement(color2); + someColors.add(color2); PDFFunction myfunc = this.pdfDoc.makeFunction(2, theDomain, null, color1.getVector(), color2.getVector(), 1.0); diff --git a/src/org/apache/fop/svg/SVGUserAgent.java b/src/org/apache/fop/svg/SVGUserAgent.java index 93147bf45..7766a1ea4 100644 --- a/src/org/apache/fop/svg/SVGUserAgent.java +++ b/src/org/apache/fop/svg/SVGUserAgent.java @@ -25,9 +25,6 @@ import org.w3c.dom.svg.SVGLength; // Java import java.io.IOException; import java.io.OutputStream; -import java.util.Enumeration; -import java.util.Vector; -import java.util.Hashtable; import java.awt.geom.AffineTransform; import java.awt.geom.Dimension2D; import java.awt.Point; |