1 28 package net.sf.jasperreports.engine.design; 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.util.JRStyleResolver; 34 35 36 43 public abstract class JRDesignGraphicElement extends JRDesignElement implements JRGraphicElement 44 { 45 46 47 50 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 51 52 55 protected Byte pen; 56 protected Byte fill; 57 58 59 62 protected JRDesignGraphicElement(JRDefaultStyleProvider defaultStyleProvider) 63 { 64 super(defaultStyleProvider); 65 } 66 67 68 71 public byte getPen() 72 { 73 return JRStyleResolver.getPen(this, PEN_1_POINT); 74 } 75 76 public Byte getOwnPen() 77 { 78 return this.pen; 79 } 80 81 84 public void setPen(byte pen) 85 { 86 this.pen = new Byte (pen); 87 } 88 89 92 public void setPen(Byte pen) 93 { 94 this.pen = pen; 95 } 96 97 100 public byte getFill() 101 { 102 return JRStyleResolver.getFill(this, FILL_SOLID); 103 } 104 105 public Byte getOwnFill() 106 { 107 return this.fill; 108 } 109 110 113 public void setFill(byte fill) 114 { 115 this.fill = new Byte (fill); 116 } 117 118 121 public void setFill(Byte fill) 122 { 123 this.fill = fill; 124 } 125 126 } 127 | Popular Tags |