1 28 package net.sf.jasperreports.engine; 29 30 import java.awt.Color ; 31 import java.awt.Graphics2D ; 32 import java.awt.geom.Dimension2D ; 33 import java.awt.geom.Rectangle2D ; 34 35 36 40 public class JRWrappingSvgRenderer extends JRAbstractSvgRenderer 41 { 42 43 46 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 47 48 51 private JRRenderable renderer = null; 52 private Dimension2D dimension = null; 53 private Color backcolor = null; 54 55 56 59 public JRWrappingSvgRenderer( 60 JRRenderable renderer, 61 Dimension2D dimension, 62 Color backcolor 63 ) 64 { 65 this.renderer = renderer; 66 this.dimension = dimension; 67 this.backcolor = backcolor; 68 } 69 70 71 74 public Dimension2D getDimension() 75 { 76 return dimension; 77 } 78 79 80 83 public Color getBackcolor() 84 { 85 return backcolor; 86 } 87 88 89 92 public void render(Graphics2D grx, Rectangle2D rectangle) throws JRException 93 { 94 renderer.render(grx, rectangle); 95 } 96 97 98 } 99 | Popular Tags |