1 28 package net.sf.jasperreports.crosstabs.design; 29 30 import java.awt.Color ; 31 32 import net.sf.jasperreports.crosstabs.JRCellContents; 33 import net.sf.jasperreports.engine.JRBox; 34 import net.sf.jasperreports.engine.JRConstants; 35 import net.sf.jasperreports.engine.JRDefaultStyleProvider; 36 import net.sf.jasperreports.engine.JRStyle; 37 import net.sf.jasperreports.engine.design.JRDesignElementGroup; 38 39 46 public class JRDesignCellContents extends JRDesignElementGroup implements JRCellContents 47 { 48 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 49 50 protected JRDefaultStyleProvider defaultStyleProvider; 51 protected JRStyle style; 52 53 protected Byte mode; 54 private Color backcolor; 55 private JRBox box; 56 private int width = JRCellContents.NOT_CALCULATED; 57 private int height = JRCellContents.NOT_CALCULATED; 58 59 60 63 public JRDesignCellContents() 64 { 65 super(); 66 } 67 68 public Color getBackcolor() 69 { 70 return backcolor; 71 } 72 73 74 80 public void setBackcolor(Color color) 81 { 82 backcolor = color; 83 } 84 85 public JRBox getBox() 86 { 87 return box; 88 } 89 90 91 97 public void setBox(JRBox box) 98 { 99 this.box = box; 100 } 101 102 public int getHeight() 103 { 104 return height; 105 } 106 107 108 114 protected void setHeight(int height) 115 { 116 this.height = height; 117 } 118 119 public int getWidth() 120 { 121 return width; 122 } 123 124 125 131 protected void setWidth(int width) 132 { 133 this.width = width; 134 } 135 136 public JRDefaultStyleProvider getDefaultStyleProvider() 137 { 138 return defaultStyleProvider; 139 } 140 141 public JRStyle getStyle() 142 { 143 return style; 144 } 145 146 147 155 public void setStyle(JRStyle style) 156 { 157 this.style = style; 158 } 159 160 public Byte getMode() 161 { 162 return mode; 163 } 164 165 166 172 public void setMode(Byte mode) 173 { 174 this.mode = mode; 175 } 176 } 177 | Popular Tags |