net.sf.jtreemap.swing
Class Value

java.lang.Object
  extended by net.sf.jtreemap.swing.Value
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable
Direct Known Subclasses:
DefaultValue, ValuePercent

public abstract class Value
extends java.lang.Object
implements java.lang.Comparable, java.io.Serializable

Class who permits to associate a double value to a label

See Also:
Serialized Form
 

Constructor Summary
Value()
           
 
Method Summary
 int compareTo(java.lang.Object value)
           
 boolean equals(java.lang.Object obj)
           
abstract  java.lang.String getLabel()
          get the formatedValue.
abstract  double getValue()
          get the double value.
 int hashCode()
           
abstract  void setLabel(java.lang.String newLabel)
          set the new label.
abstract  void setValue(double value)
          set the double value.
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Value

public Value()
Method Detail

getValue

public abstract double getValue()
get the double value.

Returns:
the double value

getLabel

public abstract java.lang.String getLabel()
get the formatedValue.

Returns:
the label of the value

setValue

public abstract void setValue(double value)
set the double value.

Parameters:
value - the new double value

setLabel

public abstract void setLabel(java.lang.String newLabel)
set the new label.

Parameters:
newLabel - the new label

hashCode

public int hashCode()
Overrides:
hashCode in class java.lang.Object

equals

public boolean equals(java.lang.Object obj)
Overrides:
equals in class java.lang.Object

compareTo

public int compareTo(java.lang.Object value)
Specified by:
compareTo in interface java.lang.Comparable