net.sf.jtreemap.swing
Class ValuePercent

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

public class ValuePercent
extends Value

class who can display the values of elements of a JTreeMap with pourcent

See Also:
Serialized Form
 

Constructor Summary
ValuePercent()
          Constructor of ValuePercent
ValuePercent(double value)
          Constructor of ValuePercent
 
Method Summary
 java.lang.String getLabel()
          get the formatedValue.
 double getValue()
          get the double value.
 void setLabel(java.lang.String stLibelle)
          set the new label.
 void setValue(double d)
          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

ValuePercent

public ValuePercent()
Constructor of ValuePercent


ValuePercent

public ValuePercent(double value)
Constructor of ValuePercent

Parameters:
value - double value
Method Detail

setValue

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

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

setLabel

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

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

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