From 7b4a1a3cfff549cbf37d9a82138cc6edf01f0d7f Mon Sep 17 00:00:00 2001 From: Keiron Liddle Date: Mon, 10 Jun 2002 08:53:41 +0000 Subject: api change git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194865 13f79535-47bb-0310-9956-ffa450edef68 --- src/org/apache/fop/svg/SVGElement.java | 6 ++++++ src/org/apache/fop/svg/SVGUserAgent.java | 4 ++++ 2 files changed, 10 insertions(+) (limited to 'src/org/apache/fop/svg') 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. */ -- cgit v1.2.3