stella.jview
Class JTargetHistory.TargetNameFormat
java.lang.Object
java.text.Format
java.text.NumberFormat
stella.jview.JTargetHistory.TargetNameFormat
- All Implemented Interfaces:
- Serializable, Cloneable
- Enclosing class:
- JTargetHistory
private static class JTargetHistory.TargetNameFormat
- extends NumberFormat
A special number formatter that translates the index of the target in
y-direction to a target name.
| Methods inherited from class java.text.NumberFormat |
clone, equals, format, format, format, getAvailableLocales, getCurrency, getCurrencyInstance, getCurrencyInstance, getInstance, getInstance, getIntegerInstance, getIntegerInstance, getMaximumFractionDigits, getMaximumIntegerDigits, getMinimumFractionDigits, getMinimumIntegerDigits, getNumberInstance, getNumberInstance, getPercentInstance, getPercentInstance, getRoundingMode, hashCode, isGroupingUsed, isParseIntegerOnly, parse, parseObject, setCurrency, setGroupingUsed, setMaximumFractionDigits, setMaximumIntegerDigits, setMinimumFractionDigits, setMinimumIntegerDigits, setParseIntegerOnly, setRoundingMode |
targetname
private List targetname
- The list of targets.
JTargetHistory.TargetNameFormat
private JTargetHistory.TargetNameFormat(Collection targets)
- Construct with a collection of targets. The collection must reflect
the correct order.
format
public StringBuffer format(double index,
StringBuffer append,
FieldPosition fp)
- We round the double to a long and pass it to the date formatter.
- Specified by:
format in class NumberFormat
- See Also:
format(long,StringBuffer,FieldPosition)
format
public StringBuffer format(long index,
StringBuffer append,
FieldPosition fp)
- We constructe a date object from the argument and pass it to the date
formatter specified on construct.
- Specified by:
format in class NumberFormat
parse
public Number parse(String text,
ParsePosition pp)
- Parses a date using the underlying date formatter and returns the
time in ms divided by the multiplication factor.
- Specified by:
parse in class NumberFormat