1 28 package net.sf.jasperreports.charts.design; 29 30 import java.awt.Color ; 31 32 import net.sf.jasperreports.charts.base.JRBaseBarPlot; 33 import net.sf.jasperreports.charts.util.JRAxisFormat; 34 import net.sf.jasperreports.engine.JRChartPlot; 35 import net.sf.jasperreports.engine.JRConstants; 36 import net.sf.jasperreports.engine.JRExpression; 37 import net.sf.jasperreports.engine.JRFont; 38 39 40 44 public class JRDesignBarPlot extends JRBaseBarPlot 45 { 46 47 48 51 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 52 53 54 57 public JRDesignBarPlot(JRChartPlot barPlot) 58 { 59 super(barPlot); 60 } 61 62 63 66 public void setCategoryAxisLabelExpression(JRExpression categoryAxisLabelExpression) 67 { 68 this.categoryAxisLabelExpression = categoryAxisLabelExpression; 69 } 70 71 74 public void setCategoryAxisLabelFont(JRFont categoryAxisLabelFont) 75 { 76 this.categoryAxisLabelFont = categoryAxisLabelFont; 77 } 78 79 82 public void setCategoryAxisLabelColor(Color categoryAxisLabelColor) 83 { 84 this.categoryAxisLabelColor = categoryAxisLabelColor; 85 } 86 87 90 public void setCategoryAxisTickLabelFont(JRFont categoryAxisTickLabelFont) 91 { 92 this.categoryAxisTickLabelFont = categoryAxisTickLabelFont; 93 } 94 95 98 public void setCategoryAxisTickLabelColor(Color categoryAxisTickLabelColor) 99 { 100 this.categoryAxisTickLabelColor = categoryAxisTickLabelColor; 101 } 102 103 106 public void setCategoryAxisTickLabelMask(String categoryAxisTickLabelMask) 107 { 108 this.categoryAxisTickLabelMask = categoryAxisTickLabelMask; 109 } 110 111 114 public void setCategoryAxisLineColor(Color categoryAxisLineColor) 115 { 116 this.categoryAxisLineColor = categoryAxisLineColor; 117 } 118 119 122 public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) 123 { 124 this.valueAxisLabelExpression = valueAxisLabelExpression; 125 } 126 127 130 public void setValueAxisLabelFont(JRFont valueAxisLabelFont) 131 { 132 this.valueAxisLabelFont = valueAxisLabelFont; 133 } 134 135 138 public void setValueAxisLabelColor(Color valueAxisLabelColor) 139 { 140 this.valueAxisLabelColor = valueAxisLabelColor; 141 } 142 143 146 public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) 147 { 148 this.valueAxisTickLabelFont = valueAxisTickLabelFont; 149 } 150 151 154 public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) 155 { 156 this.valueAxisTickLabelColor = valueAxisTickLabelColor; 157 } 158 159 162 public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) 163 { 164 this.valueAxisTickLabelMask = valueAxisTickLabelMask; 165 } 166 167 170 public void setValueAxisLineColor(Color valueAxisLineColor) 171 { 172 this.valueAxisLineColor = valueAxisLineColor; 173 } 174 175 178 public void setCategoryAxisFormat(JRAxisFormat axisFormat) 179 { 180 setCategoryAxisLabelFont(axisFormat.getLabelFont()); 181 setCategoryAxisLabelColor(axisFormat.getLabelColor()); 182 setCategoryAxisTickLabelFont(axisFormat.getTickLabelFont()); 183 setCategoryAxisTickLabelColor(axisFormat.getTickLabelColor()); 184 setCategoryAxisTickLabelMask(axisFormat.getTickLabelMask()); 185 setCategoryAxisLineColor(axisFormat.getLineColor()); 186 } 187 188 191 public void setValueAxisFormat(JRAxisFormat axisFormat) 192 { 193 setValueAxisLabelFont(axisFormat.getLabelFont()); 194 setValueAxisLabelColor(axisFormat.getLabelColor()); 195 setValueAxisTickLabelFont(axisFormat.getTickLabelFont()); 196 setValueAxisTickLabelColor(axisFormat.getTickLabelColor()); 197 setValueAxisTickLabelMask(axisFormat.getTickLabelMask()); 198 setValueAxisLineColor(axisFormat.getLineColor()); 199 } 200 } 201 | Popular Tags |