You are viewing a plain text version of this content. The canonical link for it is here.
Posted to batik-commits@xmlgraphics.apache.org by ca...@apache.org on 2006/08/10 09:02:11 UTC
svn commit: r430289 -
/xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/ViewBox.java
Author: cam
Date: Thu Aug 10 00:02:10 2006
New Revision: 430289
URL: http://svn.apache.org/viewvc?rev=430289&view=rev
Log:
1. Reintroduced a method in oab.bridge.ViewBox and marked it as deprecated,
for compatibility with FOP.
Modified:
xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/ViewBox.java
Modified: xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/ViewBox.java
URL: http://svn.apache.org/viewvc/xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/ViewBox.java?rev=430289&r1=430288&r2=430289&view=diff
==============================================================================
--- xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/ViewBox.java (original)
+++ xmlgraphics/batik/trunk/sources/org/apache/batik/bridge/ViewBox.java Thu Aug 10 00:02:10 2006
@@ -157,6 +157,24 @@
* Returns the transformation matrix to apply to initalize a viewport or
* null if the specified viewBox disables the rendering of the element.
*
+ * @deprecated Replaced by {@link
+ * #getPreserveAspectRatioTransform(Element,float,float,BridgeContext},
+ * which has more accurate error reporting.
+ * @param e the element with a viewbox
+ * @param w the width of the effective viewport
+ * @param h The height of the effective viewport
+ * @param ctx The BridgeContext to use for error information
+ */
+ public static AffineTransform getPreserveAspectRatioTransform(Element e,
+ float w,
+ float h) {
+ return getPreserveAspectRatioTransform(e, w, h, null);
+ }
+
+ /**
+ * Returns the transformation matrix to apply to initalize a viewport or
+ * null if the specified viewBox disables the rendering of the element.
+ *
* @param e the element with a viewbox
* @param w the width of the effective viewport
* @param h The height of the effective viewport