1 28 package net.sf.jasperreports.charts.design; 29 30 import java.awt.Color ; 31 32 import net.sf.jasperreports.charts.base.JRBaseHighLowPlot; 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 JRDesignHighLowPlot extends JRBaseHighLowPlot 45 { 46 47 50 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 51 52 53 56 public JRDesignHighLowPlot(JRChartPlot highLowPlot) 57 { 58 super(highLowPlot); 59 } 60 61 62 65 public void setTimeAxisLabelExpression( JRExpression timeAxisLabelExpression ){ 66 this.timeAxisLabelExpression = timeAxisLabelExpression; 67 68 } 69 70 73 public void setTimeAxisLabelFont(JRFont timeAxisLabelFont) 74 { 75 this.timeAxisLabelFont = timeAxisLabelFont; 76 } 77 78 81 public void setTimeAxisLabelColor(Color timeAxisLabelColor) 82 { 83 this.timeAxisLabelColor = timeAxisLabelColor; 84 } 85 86 89 public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont) 90 { 91 this.timeAxisTickLabelFont = timeAxisTickLabelFont; 92 } 93 94 97 public void setTimeAxisTickLabelColor(Color timeAxisTickLabelColor) 98 { 99 this.timeAxisTickLabelColor = timeAxisTickLabelColor; 100 } 101 102 105 public void setTimeAxisTickLabelMask(String timeAxisTickLabelMask) 106 { 107 this.timeAxisTickLabelMask = timeAxisTickLabelMask; 108 } 109 110 113 public void setTimeAxisLineColor(Color timeAxisLineColor) 114 { 115 this.timeAxisLineColor = timeAxisLineColor; 116 } 117 118 121 public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) 122 { 123 this.valueAxisLabelExpression = valueAxisLabelExpression; 124 } 125 126 129 public void setValueAxisLabelFont(JRFont valueAxisLabelFont) 130 { 131 this.valueAxisLabelFont = valueAxisLabelFont; 132 } 133 134 137 public void setValueAxisLabelColor(Color valueAxisLabelColor) 138 { 139 this.valueAxisLabelColor = valueAxisLabelColor; 140 } 141 142 145 public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) 146 { 147 this.valueAxisTickLabelFont = valueAxisTickLabelFont; 148 } 149 150 153 public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) 154 { 155 this.valueAxisTickLabelColor = valueAxisTickLabelColor; 156 } 157 158 161 public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) 162 { 163 this.valueAxisTickLabelMask = valueAxisTickLabelMask; 164 } 165 166 169 public void setValueAxisLineColor(Color valueAxisLineColor) 170 { 171 this.valueAxisLineColor = valueAxisLineColor; 172 } 173 174 177 public void setTimeAxisFormat(JRAxisFormat axisFormat) 178 { 179 setTimeAxisLabelFont(axisFormat.getLabelFont()); 180 setTimeAxisLabelColor(axisFormat.getLabelColor()); 181 setTimeAxisTickLabelFont(axisFormat.getTickLabelFont()); 182 setTimeAxisTickLabelColor(axisFormat.getTickLabelColor()); 183 setTimeAxisTickLabelMask(axisFormat.getTickLabelMask()); 184 setTimeAxisLineColor(axisFormat.getLineColor()); 185 } 186 187 190 public void setValueAxisFormat(JRAxisFormat axisFormat) 191 { 192 setValueAxisLabelFont(axisFormat.getLabelFont()); 193 setValueAxisLabelColor(axisFormat.getLabelColor()); 194 setValueAxisTickLabelFont(axisFormat.getTickLabelFont()); 195 setValueAxisTickLabelColor(axisFormat.getTickLabelColor()); 196 setValueAxisTickLabelMask(axisFormat.getTickLabelMask()); 197 setValueAxisLineColor(axisFormat.getLineColor()); 198 } 199 } 200 | Popular Tags |