You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by ke...@apache.org on 2002/09/02 16:47:29 UTC
cvs commit: xml-fop/src/org/apache/fop/svg SVGElement.java SVGUserAgent.java
keiron 2002/09/02 07:47:28
Modified: src/org/apache/fop/fo FOUserAgent.java
src/org/apache/fop/svg SVGElement.java SVGUserAgent.java
Log:
changed pixel to mm to longer name
Revision Changes Path
1.10 +2 -2 xml-fop/src/org/apache/fop/fo/FOUserAgent.java
Index: FOUserAgent.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/fo/FOUserAgent.java,v
retrieving revision 1.9
retrieving revision 1.10
diff -u -r1.9 -r1.10
--- FOUserAgent.java 7 Aug 2002 16:54:56 -0000 1.9
+++ FOUserAgent.java 2 Sep 2002 14:47:28 -0000 1.10
@@ -54,7 +54,7 @@
return base;
}
- public float getPixelToMM() {
+ public float getPixelUnitToMillimeter() {
return 0.35277777777777777778f;
}
1.31 +4 -4 xml-fop/src/org/apache/fop/svg/SVGElement.java
Index: SVGElement.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGElement.java,v
retrieving revision 1.30
retrieving revision 1.31
diff -u -r1.30 -r1.31
--- SVGElement.java 19 Aug 2002 09:40:56 -0000 1.30
+++ SVGElement.java 2 Sep 2002 14:47:28 -0000 1.31
@@ -80,7 +80,7 @@
}
Element e = ((SVGDocument)doc).getRootElement();
- final float ptmm = userAgent.getPixelToMM();
+ final float ptmm = userAgent.getPixelUnitToMillimeter();
SVGContext dc = new SVGContext() {
public float getPixelToMM() {
return ptmm;
@@ -118,8 +118,8 @@
//if(!e.hasAttributeNS(XMLSupport.XMLNS_NAMESPACE_URI, "xmlns")) {
e.setAttributeNS(XMLSupport.XMLNS_NAMESPACE_URI, "xmlns", SVGDOMImplementation.SVG_NAMESPACE_URI);
//}
-
- Point2D p2d = getSize(12 /* font size */, svgRoot, userAgent.getPixelToMM());
+ int fontSize = 12;
+ Point2D p2d = getSize(fontSize, svgRoot, userAgent.getPixelUnitToMillimeter());
((SVGOMElement)e).setSVGContext(null);
return p2d;
1.12 +2 -2 xml-fop/src/org/apache/fop/svg/SVGUserAgent.java
Index: SVGUserAgent.java
===================================================================
RCS file: /home/cvs/xml-fop/src/org/apache/fop/svg/SVGUserAgent.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- SVGUserAgent.java 14 Aug 2002 13:45:44 -0000 1.11
+++ SVGUserAgent.java 2 Sep 2002 14:47:28 -0000 1.12
@@ -80,7 +80,7 @@
* Returns a customized the pixel to mm factor.
*/
public float getPixelUnitToMillimter() {
- return userAgent.getPixelToMM();
+ return userAgent.getPixelUnitToMillimeter();
}
/**
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-cvs-unsubscribe@xml.apache.org
For additional commands, e-mail: fop-cvs-help@xml.apache.org