edu.indiana.iucbrf.feature.format
Class NumberFeatureValueFormat

java.lang.Object
  extended by edu.indiana.iucbrf.feature.format.NumberFeatureValueFormat
All Implemented Interfaces:
FeatureValueFormat, java.io.Serializable

public class NumberFeatureValueFormat
extends java.lang.Object
implements FeatureValueFormat

This implementation of FeatureValueFormat uses a NumberFormat object to format a Feature that has a Number for a value (such as IntegerFeature or DoubleFeature).

See Also:
Serialized Form

Field Summary
protected  java.text.NumberFormat numberFormat
           
 
Constructor Summary
protected NumberFeatureValueFormat()
           
  NumberFeatureValueFormat(java.text.NumberFormat numberFormat)
          Creates a new instance of NumberFeatureValueFormat
 
Method Summary
 java.lang.String format(java.lang.Object value)
          Format the given feature value for visual presentation.
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

numberFormat

protected java.text.NumberFormat numberFormat
Constructor Detail

NumberFeatureValueFormat

protected NumberFeatureValueFormat()

NumberFeatureValueFormat

public NumberFeatureValueFormat(java.text.NumberFormat numberFormat)
Creates a new instance of NumberFeatureValueFormat

Method Detail

format

public java.lang.String format(java.lang.Object value)
Format the given feature value for visual presentation.

Specified by:
format in interface FeatureValueFormat

toString

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