aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKeiron Liddle <keiron@apache.org>2002-04-19 08:04:32 +0000
committerKeiron Liddle <keiron@apache.org>2002-04-19 08:04:32 +0000
commit4d585be94025d510c1af7561aff9b8cef4072fdc (patch)
tree33e3da2adbb0aea3dda41b3d36547b19d3cf4168
parent80c56fbdab2293a7d9d072e5fdf883507e041914 (diff)
downloadxmlgraphics-fop-4d585be94025d510c1af7561aff9b8cef4072fdc.tar.gz
xmlgraphics-fop-4d585be94025d510c1af7561aff9b8cef4072fdc.zip
updated to the fluid batik api
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194737 13f79535-47bb-0310-9956-ffa450edef68
-rw-r--r--src/org/apache/fop/svg/SVGElement.java12
1 files changed, 12 insertions, 0 deletions
diff --git a/src/org/apache/fop/svg/SVGElement.java b/src/org/apache/fop/svg/SVGElement.java
index 9a4d0579d..7f6373536 100644
--- a/src/org/apache/fop/svg/SVGElement.java
+++ b/src/org/apache/fop/svg/SVGElement.java
@@ -96,6 +96,18 @@ public class SVGElement extends SVGObj {
public AffineTransform getCTM() {
return new AffineTransform();
}
+
+ public float getViewportWidth() {
+ return (float)view.getX();
+ }
+
+ public float getViewportHeight() {
+ return (float)view.getY();
+ }
+
+ public float getFontSize(){
+ return 12;
+ }
};
((SVGOMElement)e).setSVGContext(dc);