1 32 33 package it.businesslogic.ireport.chart; 34 35 import java.awt.Color ; 36 37 41 public class MeterInterval { 42 43 private DataRange dataRange = new DataRange(); 44 private String label = ""; 45 private Color color = null; 46 private double alpha = 1.0; 47 48 49 public MeterInterval() { 50 } 51 52 public MeterInterval cloneMe() 53 { 54 MeterInterval obj = new MeterInterval(); 55 if (getColor() != null) obj.setColor( new Color ( getColor().getRGB())); 56 obj.setLabel( new String ( label )); 57 obj.setAlpha( getAlpha() ); 58 obj.setDataRange( getDataRange().cloneMe()); 59 60 return obj; 61 } 62 63 public DataRange getDataRange() { 64 return dataRange; 65 } 66 67 public void setDataRange(DataRange dataRange) { 68 this.dataRange = dataRange; 69 } 70 71 public String getLabel() { 72 return label; 73 } 74 75 public void setLabel(String label) { 76 this.label = label; 77 } 78 79 public Color getColor() { 80 return color; 81 } 82 83 public void setColor(Color color) { 84 this.color = color; 85 } 86 87 public double getAlpha() { 88 return alpha; 89 } 90 91 public void setAlpha(double alpha) { 92 this.alpha = alpha; 93 } 94 95 } 96 | Popular Tags |