1 28 package net.sf.jasperreports.charts.design; 29 30 import java.awt.Color ; 31 32 import net.sf.jasperreports.charts.base.JRBaseTimeSeriesPlot; 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 44 public class JRDesignTimeSeriesPlot extends JRBaseTimeSeriesPlot { 45 46 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 47 48 public JRDesignTimeSeriesPlot(JRChartPlot plot){ 49 super( plot ); 50 } 51 52 55 public void setTimeAxisLabelExpression( JRExpression timeAxisLabelExpression ){ 56 this.timeAxisLabelExpression = timeAxisLabelExpression; 57 58 } 59 60 63 public void setTimeAxisLabelFont(JRFont timeAxisLabelFont) 64 { 65 this.timeAxisLabelFont = timeAxisLabelFont; 66 } 67 68 71 public void setTimeAxisLabelColor(Color timeAxisLabelColor) 72 { 73 this.timeAxisLabelColor = timeAxisLabelColor; 74 } 75 76 79 public void setTimeAxisTickLabelFont(JRFont timeAxisTickLabelFont) 80 { 81 this.timeAxisTickLabelFont = timeAxisTickLabelFont; 82 } 83 84 87 public void setTimeAxisTickLabelColor(Color timeAxisTickLabelColor) 88 { 89 this.timeAxisTickLabelColor = timeAxisTickLabelColor; 90 } 91 92 95 public void setTimeAxisTickLabelMask(String timeAxisTickLabelMask) 96 { 97 this.timeAxisTickLabelMask = timeAxisTickLabelMask; 98 } 99 100 103 public void setTimeAxisLineColor(Color timeAxisLineColor) 104 { 105 this.timeAxisLineColor = timeAxisLineColor; 106 } 107 108 111 public void setValueAxisLabelExpression(JRExpression valueAxisLabelExpression) 112 { 113 this.valueAxisLabelExpression = valueAxisLabelExpression; 114 } 115 116 119 public void setValueAxisLabelFont(JRFont valueAxisLabelFont) 120 { 121 this.valueAxisLabelFont = valueAxisLabelFont; 122 } 123 124 127 public void setValueAxisLabelColor(Color valueAxisLabelColor) 128 { 129 this.valueAxisLabelColor = valueAxisLabelColor; 130 } 131 132 135 public void setValueAxisTickLabelFont(JRFont valueAxisTickLabelFont) 136 { 137 this.valueAxisTickLabelFont = valueAxisTickLabelFont; 138 } 139 140 143 public void setValueAxisTickLabelColor(Color valueAxisTickLabelColor) 144 { 145 this.valueAxisTickLabelColor = valueAxisTickLabelColor; 146 } 147 148 151 public void setValueAxisTickLabelMask(String valueAxisTickLabelMask) 152 { 153 this.valueAxisTickLabelMask = valueAxisTickLabelMask; 154 } 155 156 159 public void setValueAxisLineColor(Color valueAxisLineColor) 160 { 161 this.valueAxisLineColor = valueAxisLineColor; 162 } 163 164 167 public void setTimeAxisFormat(JRAxisFormat axisFormat) 168 { 169 setTimeAxisLabelFont(axisFormat.getLabelFont()); 170 setTimeAxisLabelColor(axisFormat.getLabelColor()); 171 setTimeAxisTickLabelFont(axisFormat.getTickLabelFont()); 172 setTimeAxisTickLabelColor(axisFormat.getTickLabelColor()); 173 setTimeAxisTickLabelMask(axisFormat.getTickLabelMask()); 174 setTimeAxisLineColor(axisFormat.getLineColor()); 175 } 176 177 180 public void setValueAxisFormat(JRAxisFormat axisFormat) 181 { 182 setValueAxisLabelFont(axisFormat.getLabelFont()); 183 setValueAxisLabelColor(axisFormat.getLabelColor()); 184 setValueAxisTickLabelFont(axisFormat.getTickLabelFont()); 185 setValueAxisTickLabelColor(axisFormat.getTickLabelColor()); 186 setValueAxisTickLabelMask(axisFormat.getTickLabelMask()); 187 setValueAxisLineColor(axisFormat.getLineColor()); 188 } 189 } 190 | Popular Tags |