1 28 package net.sf.jasperreports.charts.design; 29 30 import java.awt.Color ; 31 32 import net.sf.jasperreports.charts.base.JRBaseBar3DPlot; 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 43 public class JRDesignBar3DPlot extends JRBaseBar3DPlot { 44 45 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 46 47 48 public JRDesignBar3DPlot(JRChartPlot barPlot) 49 { 50 super(barPlot); 51 } 52 53 56 public void setCategoryAxisLabelExpression(JRExpression categoryAxisLabelExpression) 57 { 58 this.categoryAxisLabelExpression = categoryAxisLabelExpression; 59 } 60 61 64 public void setCategoryAxisLabelFont(JRFont categoryAxisLabelFont) 65 { 66 this.categoryAxisLabelFont = categoryAxisLabelFont; 67 } 68 69 72 public void setCategoryAxisLabelColor(Color categoryAxisLabelColor) 73 { 74 this.categoryAxisLabelColor = categoryAxisLabelColor; 75 } 76 77 80 public void setCategoryAxisTickLabelFont(JRFont categoryAxisTickLabelFont) 81 { 82 this.categoryAxisTickLabelFont = categoryAxisTickLabelFont; 83 } 84 85 88 public void setCategoryAxisTickLabelColor(Color categoryAxisTickLabelColor) 89 { 90 this.categoryAxisTickLabelColor = categoryAxisTickLabelColor; 91 } 92 93 96 public void setCategoryAxisTickLabelMask(String categoryAxisTickLabelMask) 97 { 98 this.categoryAxisTickLabelMask = categoryAxisTickLabelMask; 99 } 100 101 104 public void setCategoryAxisLineColor(Color categoryAxisLineColor) 105 { 106 this.categoryAxisLineColor = categoryAxisLineColor; 107 } 108 109 112 public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) 113 { 114 this.valueAxisLabelExpression = valueAxisLabelExpression; 115 } 116 117 120 public void setValueAxisLabelFont(JRFont valueAxisLabelFont) 121 { 122 this.valueAxisLabelFont = valueAxisLabelFont; 123 } 124 125 128 public void setValueAxisLabelColor(Color valueAxisLabelColor) 129 { 130 this.valueAxisLabelColor = valueAxisLabelColor; 131 } 132 133 136 public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) 137 { 138 this.valueAxisTickLabelFont = valueAxisTickLabelFont; 139 } 140 141 144 public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) 145 { 146 this.valueAxisTickLabelColor = valueAxisTickLabelColor; 147 } 148 149 152 public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) 153 { 154 this.valueAxisTickLabelMask = valueAxisTickLabelMask; 155 } 156 157 160 public void setValueAxisLineColor(Color valueAxisLineColor) 161 { 162 this.valueAxisLineColor = valueAxisLineColor; 163 } 164 165 168 public void setCategoryAxisFormat(JRAxisFormat axisFormat) 169 { 170 setCategoryAxisLabelFont(axisFormat.getLabelFont()); 171 setCategoryAxisLabelColor(axisFormat.getLabelColor()); 172 setCategoryAxisTickLabelFont(axisFormat.getTickLabelFont()); 173 setCategoryAxisTickLabelColor(axisFormat.getTickLabelColor()); 174 setCategoryAxisTickLabelMask(axisFormat.getTickLabelMask()); 175 setCategoryAxisLineColor(axisFormat.getLineColor()); 176 } 177 178 181 public void setValueAxisFormat(JRAxisFormat axisFormat) 182 { 183 setValueAxisLabelFont(axisFormat.getLabelFont()); 184 setValueAxisLabelColor(axisFormat.getLabelColor()); 185 setValueAxisTickLabelFont(axisFormat.getTickLabelFont()); 186 setValueAxisTickLabelColor(axisFormat.getTickLabelColor()); 187 setValueAxisTickLabelMask(axisFormat.getTickLabelMask()); 188 setValueAxisLineColor(axisFormat.getLineColor()); 189 } 190 } 191 | Popular Tags |