aboutsummaryrefslogtreecommitdiffstats
path: root/src/java/org/apache/fop/render/AbstractRenderer.java
diff options
context:
space:
mode:
authorAdrian Cumiskey <acumiskey@apache.org>2008-08-20 12:59:11 +0000
committerAdrian Cumiskey <acumiskey@apache.org>2008-08-20 12:59:11 +0000
commit39efd65d2f0607deb0bab109ab29ffd0528aead0 (patch)
treea20fc22eae82cdb3575ee04b25f309cc7ebdf9eb /src/java/org/apache/fop/render/AbstractRenderer.java
parent80fc2899d492745650c2916c24482bec0779303b (diff)
downloadxmlgraphics-fop-39efd65d2f0607deb0bab109ab29ffd0528aead0.tar.gz
xmlgraphics-fop-39efd65d2f0607deb0bab109ab29ffd0528aead0.zip
Moved mptToPt() and ptToMpt() from AbstractRenderer to UnitConv. One less dependency to worry about.
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@687305 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/java/org/apache/fop/render/AbstractRenderer.java')
-rw-r--r--src/java/org/apache/fop/render/AbstractRenderer.java29
1 files changed, 0 insertions, 29 deletions
diff --git a/src/java/org/apache/fop/render/AbstractRenderer.java b/src/java/org/apache/fop/render/AbstractRenderer.java
index e80775890..c29dbea15 100644
--- a/src/java/org/apache/fop/render/AbstractRenderer.java
+++ b/src/java/org/apache/fop/render/AbstractRenderer.java
@@ -21,7 +21,6 @@ package org.apache.fop.render;
// Java
import java.awt.Rectangle;
-import java.awt.geom.AffineTransform;
import java.awt.geom.Rectangle2D;
import java.io.IOException;
import java.io.OutputStream;
@@ -836,32 +835,4 @@ public abstract class AbstractRenderer
public String getMimeType() {
return null;
}
-
- /**
- * Converts a millipoint-based transformation matrix to points.
- * @param at a millipoint-based transformation matrix
- * @return a point-based transformation matrix
- */
- protected AffineTransform mptToPt(AffineTransform at) {
- double[] matrix = new double[6];
- at.getMatrix(matrix);
- //Convert to points
- matrix[4] = matrix[4] / 1000;
- matrix[5] = matrix[5] / 1000;
- return new AffineTransform(matrix);
- }
-
- /**
- * Converts a point-based transformation matrix to millipoints.
- * @param at a point-based transformation matrix
- * @return a millipoint-based transformation matrix
- */
- protected AffineTransform ptToMpt(AffineTransform at) {
- double[] matrix = new double[6];
- at.getMatrix(matrix);
- //Convert to millipoints
- matrix[4] = matrix[4] * 1000;
- matrix[5] = matrix[5] * 1000;
- return new AffineTransform(matrix);
- }
}