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