org.jfree.chart.util
Class LogFormat
NumberFormatorg.jfree.chart.util.LogFormat
A number formatter for logarithmic values. This formatter does not support
parsing.
LogFormat(double base, String baseLabel, String powerLabel, boolean showBase)- Creates a new instance.
|
LogFormat(double base, String baseLabel, boolean showBase)- Creates a new instance.
|
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.
|
Number | parse(String source, ParsePosition parsePosition)- Parsing is not implemented, so this method always returns
null.
|
LogFormat
public LogFormat(double base,
String baseLabel,
String powerLabel,
boolean showBase) Creates a new instance.
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.
LogFormat
public LogFormat(double base,
String baseLabel,
boolean showBase) Creates a new instance.
base - the base.baseLabel - the base label (null not permitted).showBase - a flag that controls whether or not the base value is
shown.
clone
public Object clone()
Returns a clone of this instance.
equals
public boolean equals(Object obj)
Tests this formatter for equality with an arbitrary object.
obj - the object (null permitted).
format
public StringBuffer format(double number,
StringBuffer toAppendTo,
FieldPosition pos) Returns a formatted representation of the specified number.
number - the number.toAppendTo - the string buffer to append to.pos - the position.
- A string buffer containing the formatted value.
format
public StringBuffer format(long number,
StringBuffer toAppendTo,
FieldPosition pos) Formats the specified number as a hexadecimal string. The decimal
fraction is ignored.
number - the number to format.toAppendTo - the buffer to append to (ignored here).pos - the field position (ignored here).
parse
public Number parse(String source,
ParsePosition parsePosition) Parsing is not implemented, so this method always returns
null.
source - ignored.parsePosition - ignored.