| 1 24 package info.monitorenter.gui.chart; 25 26 37 public class LabeledValue { 38 39 40 protected boolean m_isMajorTick = false; 41 42 43 protected String m_label; 44 45 46 protected double m_value; 47 48 52 protected LabeledValue() { 53 } 55 56 66 LabeledValue(final double value, final String label) { 67 this.m_value = value; 68 this.m_label = label; 69 } 70 71 77 String getLabel() { 78 return this.m_label; 79 } 80 81 87 double getValue() { 88 return this.m_value; 89 } 90 91 101 boolean isMajorTick() { 102 return this.m_isMajorTick; 103 } 104 105 112 void setLabel(final String label) { 113 this.m_label = label; 114 } 115 116 127 void setMajorTick(final boolean isMajorTick) { 128 this.m_isMajorTick = isMajorTick; 129 } 130 131 141 public String toString() { 142 return new StringBuffer ().append(this.m_label).append(" : ").append(this.m_value).toString(); 143 } 144 } 145 | Popular Tags |