1 28 package net.sf.jasperreports.charts.design; 29 30 import java.awt.Color ; 31 32 import net.sf.jasperreports.charts.base.JRBaseScatterPlot; 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 JRDesignScatterPlot extends JRBaseScatterPlot { 44 45 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 46 47 48 public JRDesignScatterPlot(JRChartPlot scattedPlot) 49 { 50 super(scattedPlot); 51 } 52 53 54 57 public void setXAxisLabelExpression( JRExpression xAxisLabelExpression ){ 58 this.xAxisLabelExpression = xAxisLabelExpression; 59 } 60 61 64 public void setXAxisLabelFont(JRFont xAxisLabelFont) 65 { 66 this.xAxisLabelFont = xAxisLabelFont; 67 } 68 69 72 public void setXAxisLabelColor(Color xAxisLabelColor) 73 { 74 this.xAxisLabelColor = xAxisLabelColor; 75 } 76 77 80 public void setXAxisTickLabelFont(JRFont xAxisTickLabelFont) 81 { 82 this.xAxisTickLabelFont = xAxisTickLabelFont; 83 } 84 85 88 public void setXAxisTickLabelColor(Color xAxisTickLabelColor) 89 { 90 this.xAxisTickLabelColor = xAxisTickLabelColor; 91 } 92 93 96 public void setXAxisTickLabelMask(String xAxisTickLabelMask) 97 { 98 this.xAxisTickLabelMask = xAxisTickLabelMask; 99 } 100 101 104 public void setXAxisLineColor(Color xAxisLineColor) 105 { 106 this.xAxisLineColor = xAxisLineColor; 107 } 108 109 112 public void setYAxisLabelExpression( JRExpression yAxisLabelExpression ){ 113 this.yAxisLabelExpression = yAxisLabelExpression; 114 } 115 116 119 public void setYAxisLabelFont(JRFont yAxisLabelFont) 120 { 121 this.yAxisLabelFont = yAxisLabelFont; 122 } 123 124 127 public void setYAxisLabelColor(Color yAxisLabelColor) 128 { 129 this.yAxisLabelColor = yAxisLabelColor; 130 } 131 132 135 public void setYAxisTickLabelFont(JRFont yAxisTickLabelFont) 136 { 137 this.yAxisTickLabelFont = yAxisTickLabelFont; 138 } 139 140 143 public void setYAxisTickLabelColor(Color yAxisTickLabelColor) 144 { 145 this.yAxisTickLabelColor = yAxisTickLabelColor; 146 } 147 148 151 public void setYAxisTickLabelMask(String yAxisTickLabelMask) 152 { 153 this.yAxisTickLabelMask = yAxisTickLabelMask; 154 } 155 156 159 public void setYAxisLineColor(Color yAxisLineColor) 160 { 161 this.yAxisLineColor = yAxisLineColor; 162 } 163 164 167 public void setXAxisFormat(JRAxisFormat axisFormat) 168 { 169 setXAxisLabelColor(axisFormat.getLabelColor()); 170 setXAxisLabelFont(axisFormat.getLabelFont()); 171 setXAxisTickLabelFont(axisFormat.getTickLabelFont()); 172 setXAxisTickLabelColor(axisFormat.getTickLabelColor()); 173 setXAxisTickLabelMask(axisFormat.getTickLabelMask()); 174 setXAxisLineColor(axisFormat.getLineColor()); 175 } 176 177 180 public void setYAxisFormat(JRAxisFormat axisFormat) 181 { 182 setYAxisLabelColor(axisFormat.getLabelColor()); 183 setYAxisLabelFont(axisFormat.getLabelFont()); 184 setYAxisTickLabelFont(axisFormat.getTickLabelFont()); 185 setYAxisTickLabelColor(axisFormat.getTickLabelColor()); 186 setYAxisTickLabelMask(axisFormat.getTickLabelMask()); 187 setYAxisLineColor(axisFormat.getLineColor()); 188 } 189 } 190 | Popular Tags |