1 41 package org.jfree.chart.axis; 42 43 import org.jfree.ui.TextAnchor; 44 45 48 public abstract class ValueTick extends Tick { 49 50 51 private double value; 52 53 63 public ValueTick(double value, String label, 64 TextAnchor textAnchor, TextAnchor rotationAnchor, 65 double angle) { 66 67 super(label, textAnchor, rotationAnchor, angle); 68 this.value = value; 69 70 } 71 72 77 public double getValue() { 78 return this.value; 79 } 80 81 88 public boolean equals(Object obj) { 89 if (obj == this) { 90 return true; 91 } 92 if (obj instanceof ValueTick && super.equals(obj)) { 93 ValueTick vt = (ValueTick) obj; 94 if (!(this.value == vt.value)) { 95 return false; 96 } 97 return true; 98 } 99 return false; 100 } 101 102 } 103 | Popular Tags |