ucar.unidata.idv.control
Class ObsDisplayControl.RealWrapper

java.lang.Object
  extended by ucar.unidata.idv.control.ObsDisplayControl.RealWrapper
All Implemented Interfaces:
Comparable
Enclosing class:
ObsDisplayControl

protected static class ObsDisplayControl.RealWrapper
extends Object
implements Comparable

Class RealWrapper Used in the JTable to show a formatted string and support sorting on the Real value

Version:
$Revision: 1.58 $
Author:
IDV Development Team

Constructor Summary
ObsDisplayControl.RealWrapper(String lbl, Real value)
          ctor
 
Method Summary
 int compareTo(Object that)
          Compare
 String toString()
          to string
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ObsDisplayControl.RealWrapper

public ObsDisplayControl.RealWrapper(String lbl,
                                     Real value)
ctor

Parameters:
lbl - label
value - value
Method Detail

compareTo

public int compareTo(Object that)
Compare

Specified by:
compareTo in interface Comparable
Parameters:
that - to that
Returns:
comparison

toString

public String toString()
to string

Overrides:
toString in class Object
Returns:
string