edu.iastate.metnet.metaomgraph
Class CorrelationValue

java.lang.Object
  extended by java.lang.Number
      extended by edu.iastate.metnet.metaomgraph.CorrelationValue
All Implemented Interfaces:
java.io.Serializable, java.lang.Comparable

public class CorrelationValue
extends java.lang.Number
implements java.lang.Comparable

Enables the analyzation panel to display results as percentages, but still sort the table using doubles. Using NumberFormat.getPercentInstance() causes the TableSorter to sort as if the results were strings, which puts 10% immediately after 1%.

Author:
Nick Ransom
See Also:
Serialized Form

Field Summary
protected  double myValue
           
 
Constructor Summary
CorrelationValue(double myValue)
           
 
Method Summary
 int compareTo(java.lang.Object arg0)
           
 double doubleValue()
           
 float floatValue()
           
 int intValue()
           
 long longValue()
           
static void main(java.lang.String[] args)
           
 int oldcompareTo(java.lang.Object arg0)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Number
byteValue, shortValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

myValue

protected double myValue
Constructor Detail

CorrelationValue

public CorrelationValue(double myValue)
Method Detail

compareTo

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

oldcompareTo

public int oldcompareTo(java.lang.Object arg0)

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object

main

public static void main(java.lang.String[] args)

doubleValue

public double doubleValue()
Specified by:
doubleValue in class java.lang.Number
Returns:
A double representation of this CorrelationValue

floatValue

public float floatValue()
Specified by:
floatValue in class java.lang.Number
Returns:
A float representation of this CorrelationValue

intValue

public int intValue()
Specified by:
intValue in class java.lang.Number
Returns:
An int representation of this CorrelationValue

longValue

public long longValue()
Specified by:
longValue in class java.lang.Number
Returns:
A long representation of this CorrelationValue