net.sf.jtreemap.swing
Class DefaultValue

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

public class DefaultValue
extends Value

Default Value
The getLabel() method returns the "" + getValue()

See Also:
Serialized Form
 

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

Constructor Detail

DefaultValue

public DefaultValue()
Constructor.


DefaultValue

public DefaultValue(double value)
Constructor.

Parameters:
value - double value
Method Detail

getValue

public double getValue()
Description copied from class: Value
get the double value.

Specified by:
getValue in class Value
Returns:
the double value

getLabel

public java.lang.String getLabel()
Description copied from class: Value
get the formatedValue.

Specified by:
getLabel in class Value
Returns:
the label of the value

setValue

public void setValue(double value)
Description copied from class: Value
set the double value.

Specified by:
setValue in class Value
Parameters:
value - the new double value

setLabel

public void setLabel(java.lang.String newLabel)
Description copied from class: Value
set the new label.

Specified by:
setLabel in class Value
Parameters:
newLabel - the new label