1 51 package org.apache.fop.svg; 52 53 import org.apache.fop.render.Renderer; 55 import org.apache.fop.layout.FontState; 56 import org.apache.fop.layout.Area; 57 58 import org.w3c.dom.*; 59 60 63 public class SVGArea extends Area { 64 Document doc; 65 66 73 public SVGArea(FontState fontState, float width, float height) { 74 super(fontState, (int)width * 1000, (int)height * 1000); 75 currentHeight = (int)height * 1000; 76 contentRectangleWidth = (int)width * 1000; 77 } 78 79 public void setSVGDocument(Document doc) { 80 this.doc = doc; 81 } 82 83 public Document getSVGDocument() { 84 return doc; 85 } 86 87 public int getWidth() { 88 return contentRectangleWidth; 90 } 91 92 97 public void render(Renderer renderer) { 98 renderer.renderSVGArea(this); 99 } 100 101 } 102 | Popular Tags |