simtools.ui
Class TextMapper.TextMapperChoiceFormat

java.lang.Object
  extended by java.text.Format
      extended by java.text.NumberFormat
          extended by java.text.ChoiceFormat
              extended by simtools.ui.TextMapper.TextMapperChoiceFormat
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, MapperListener
Enclosing class:
TextMapper

protected class TextMapper.TextMapperChoiceFormat
extends java.text.ChoiceFormat
implements MapperListener

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class java.text.NumberFormat
java.text.NumberFormat.Field
 
Field Summary
protected  java.util.ArrayList clippedIntervals
           
protected static double epsilon
           
 
Fields inherited from class java.text.NumberFormat
FRACTION_FIELD, INTEGER_FIELD
 
Constructor Summary
TextMapper.TextMapperChoiceFormat(java.lang.String name)
           
 
Method Summary
protected  void clipInterval(GenericMapper.Interval it)
          Add an interval to the current clipped intervals list.
 void mappingChanged(GenericMapper mapper)
          Called when the mapping of the specified mapper changed
protected  void update()
          Compute the choiceFormat corresponding to the TextMapper
 
Methods inherited from class java.text.ChoiceFormat
applyPattern, clone, equals, format, format, getFormats, getLimits, hashCode, nextDouble, nextDouble, parse, previousDouble, setChoices, toPattern
 
Methods inherited from class java.text.NumberFormat
format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode
 
Methods inherited from class java.text.Format
format, formatToCharacterIterator, parseObject
 
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

epsilon

protected static final double epsilon
See Also:
Constant Field Values

clippedIntervals

protected java.util.ArrayList clippedIntervals
Constructor Detail

TextMapper.TextMapperChoiceFormat

public TextMapper.TextMapperChoiceFormat(java.lang.String name)
Method Detail

mappingChanged

public void mappingChanged(GenericMapper mapper)
Description copied from interface: MapperListener
Called when the mapping of the specified mapper changed

Specified by:
mappingChanged in interface MapperListener

update

protected void update()
Compute the choiceFormat corresponding to the TextMapper


clipInterval

protected void clipInterval(GenericMapper.Interval it)
                     throws java.lang.NumberFormatException
Add an interval to the current clipped intervals list. Clipped intervals = no overlay between intervals belonging to the list

Parameters:
clippedIntervals -
it -
Throws:
java.lang.NumberFormatException