public class LogFormat extends NumberFormat
NumberFormat.FieldFRACTION_FIELD, INTEGER_FIELD| Constructor and Description |
|---|
LogFormat()
Creates a new instance using base 10.
|
LogFormat(double base,
String baseLabel,
boolean showBase)
Creates a new instance.
|
LogFormat(double base,
String baseLabel,
String powerLabel,
boolean showBase)
Creates a new instance.
|
| Modifier and Type | Method and Description |
|---|---|
Object |
clone()
Returns a clone of this instance.
|
boolean |
equals(Object obj)
Tests this formatter for equality with an arbitrary object.
|
StringBuffer |
format(double number,
StringBuffer toAppendTo,
FieldPosition pos)
Returns a formatted representation of the specified number.
|
StringBuffer |
format(long number,
StringBuffer toAppendTo,
FieldPosition pos)
Formats the specified number as a hexadecimal string.
|
NumberFormat |
getExponentFormat()
Returns the number format used for the exponent.
|
Number |
parse(String source,
ParsePosition parsePosition)
Parsing is not implemented, so this method always returns
null. |
void |
setExponentFormat(NumberFormat format)
Sets the number format used for the exponent.
|
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, setRoundingModeformat, formatToCharacterIterator, parseObjectpublic LogFormat()
public LogFormat(double base,
String baseLabel,
boolean showBase)
base - the base.baseLabel - the base label (null not permitted).showBase - a flag that controls whether or not the base value is
shown.public LogFormat(double base,
String baseLabel,
String powerLabel,
boolean showBase)
base - the base.baseLabel - the base label (null not permitted).powerLabel - the power label (null not permitted).showBase - a flag that controls whether or not the base value is
shown.public NumberFormat getExponentFormat()
null).public void setExponentFormat(NumberFormat format)
format - the formatter (null not permitted).public StringBuffer format(double number, StringBuffer toAppendTo, FieldPosition pos)
format in class NumberFormatnumber - the number.toAppendTo - the string buffer to append to.pos - the position.public StringBuffer format(long number, StringBuffer toAppendTo, FieldPosition pos)
format in class NumberFormatnumber - the number to format.toAppendTo - the buffer to append to (ignored here).pos - the field position (ignored here).public Number parse(String source, ParsePosition parsePosition)
null.parse in class NumberFormatsource - ignored.parsePosition - ignored.null.public boolean equals(Object obj)
equals in class NumberFormatobj - the object (null permitted).public Object clone()
clone in class NumberFormatCopyright © 2001–2014 JFree.org. All rights reserved.