aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-06-10 08:53:41 +0000
committerKeiron Liddle <keiron@apache.org>2002-06-10 08:53:41 +0000
commit7b4a1a3cfff549cbf37d9a82138cc6edf01f0d7f (patch)
tree37c22712a24f16dc0a08efe5e77533bacd69e309
parent371e9ee3451cfa4fa56516390f4a74457f411b47 (diff)
downloadxmlgraphics-fop-7b4a1a3cfff549cbf37d9a82138cc6edf01f0d7f.tar.gz
xmlgraphics-fop-7b4a1a3cfff549cbf37d9a82138cc6edf01f0d7f.zip
api change
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194865 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/svg/SVGElement.java6
-rw-r--r--src/org/apache/fop/svg/SVGUserAgent.java4
2 files changed, 10 insertions, 0 deletions
diff --git a/src/org/apache/fop/svg/SVGElement.java b/src/org/apache/fop/svg/SVGElement.java
index 0bfa212e4..988658db1 100644
--- a/src/org/apache/fop/svg/SVGElement.java
+++ b/src/org/apache/fop/svg/SVGElement.java
@@ -88,6 +88,9 @@ public class SVGElement extends SVGObj {
public float getPixelToMM() {
return ptmm;
}
+ public float getPixelUnitToMillimeter() {
+ return ptmm;
+ }
public Rectangle2D getBBox() {
return new Rectangle2D.Double(0, 0, view.getX(), view.getY());
@@ -190,6 +193,9 @@ public class SVGElement extends SVGObj {
public float getPixelToMM() {
return pixeltoMM;
}
+ public float getPixelUnitToMillimeter() {
+ return pixeltoMM;
+ }
/**
* Returns the font-size medium value in pt.
diff --git a/src/org/apache/fop/svg/SVGUserAgent.java b/src/org/apache/fop/svg/SVGUserAgent.java
index 210cf049f..899c4c089 100644
--- a/src/org/apache/fop/svg/SVGUserAgent.java
+++ b/src/org/apache/fop/svg/SVGUserAgent.java
@@ -83,6 +83,10 @@ public class SVGUserAgent extends UserAgentAdapter {
return userAgent.getPixelToMM();
}
+ public float getPixelUnitToMillimter() {
+ return userAgent.getPixelToMM();
+ }
+
/**
* Returns the language settings.
*/