1 28 package net.sf.jasperreports.charts.util; 29 30 import net.sf.jasperreports.charts.JRDataRange; 31 import net.sf.jasperreports.charts.base.JRBaseDataRange; 32 import net.sf.jasperreports.engine.JRConstants; 33 import net.sf.jasperreports.engine.base.JRBaseObjectFactory; 34 35 import java.awt.Color ; 36 import java.io.Serializable ; 37 38 46 47 48 public class JRMeterInterval implements Serializable 49 { 50 53 protected JRDataRange dataRange = null; 54 55 58 protected String label = null; 59 60 63 protected Color backgroundColor = null; 64 65 69 protected double alpha = 1.0; 70 71 private static final long serialVersionUID = JRConstants.SERIAL_VERSION_UID; 72 73 76 public JRMeterInterval() 77 { 78 } 79 80 86 public JRMeterInterval(JRMeterInterval meterInterval, JRBaseObjectFactory factory) 87 { 88 dataRange = new JRBaseDataRange(meterInterval.getDataRange(), factory); 89 label = meterInterval.getLabel(); 90 backgroundColor = meterInterval.getBackgroundColor(); 91 alpha = meterInterval.getAlpha(); 92 } 93 94 99 public JRDataRange getDataRange() 100 { 101 return dataRange; 102 } 103 104 110 public void setDataRange(JRDataRange dataRange) 111 { 112 this.dataRange = dataRange; 113 } 114 115 121 public String getLabel() 122 { 123 return label; 124 } 125 126 132 public void setLabel(String label) 133 { 134 this.label = label; 135 } 136 137 142 public Color getBackgroundColor() 143 { 144 return backgroundColor; 145 } 146 147 152 public void setBackgroundColor(Color backgroundColor) 153 { 154 this.backgroundColor = backgroundColor; 155 } 156 157 163 public double getAlpha() 164 { 165 return alpha; 166 } 167 168 174 public void setAlpha(double alpha) 175 { 176 this.alpha = alpha; 177 } 178 } 179 | Popular Tags |