1 28 package net.sf.jasperreports.engine.base; 29 30 import net.sf.jasperreports.engine.JRConstants; 31 import net.sf.jasperreports.engine.JRDefaultStyleProvider; 32 import net.sf.jasperreports.engine.JRGraphicElement; 33 import net.sf.jasperreports.engine.JRPrintGraphicElement; 34 import net.sf.jasperreports.engine.util.JRStyleResolver; 35 36 37 41 public abstract class JRBasePrintGraphicElement extends JRBasePrintElement implements JRPrintGraphicElement 42 { 43 44 45 48 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 49 50 53 protected Byte pen = null; 54 protected Byte fill = null; 55 56 57 60 public JRBasePrintGraphicElement(JRDefaultStyleProvider defaultStyleProvider) 61 { 62 super(defaultStyleProvider); 63 } 64 65 66 69 public byte getPen() 70 { 71 return JRStyleResolver.getPen(this, JRGraphicElement.PEN_1_POINT); 72 } 73 74 77 public Byte getOwnPen() 78 { 79 return pen; 80 } 81 82 85 public void setPen(byte pen) 86 { 87 this.pen = new Byte (pen); 88 } 89 90 93 public void setPen(Byte pen) 94 { 95 this.pen = pen; 96 } 97 98 101 public byte getFill() 102 { 103 return JRStyleResolver.getFill(this, JRGraphicElement.FILL_SOLID); 104 } 105 106 109 public Byte getOwnFill() 110 { 111 return fill; 112 } 113 114 117 public void setFill(byte fill) 118 { 119 this.fill = new Byte (fill); 120 } 121 122 125 public void setFill(Byte fill) 126 { 127 this.fill = fill; 128 } 129 130 131 } 132 | Popular Tags |