|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.text.Format
java.text.NumberFormat
org.jfree.chart.util.LogFormat
public class LogFormat
A number formatter for logarithmic values. This formatter does not support parsing.
| Nested Class Summary |
|---|
| Nested classes/interfaces inherited from class java.text.NumberFormat |
|---|
java.text.NumberFormat.Field |
| Field Summary |
|---|
| Fields inherited from class java.text.NumberFormat |
|---|
FRACTION_FIELD, INTEGER_FIELD |
| Constructor Summary | |
|---|---|
LogFormat(double base,
java.lang.String baseLabel,
boolean showBase)
Creates a new instance. |
|
| Method Summary | |
|---|---|
java.lang.StringBuffer |
format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Returns a formatted representation of the specified number. |
java.lang.StringBuffer |
format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
Formats the specified number as a hexadecimal string. |
java.lang.Number |
parse(java.lang.String source,
java.text.ParsePosition parsePosition)
Parsing is not implemented, so this method always returns null. |
| 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 |
| 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 |
| Constructor Detail |
|---|
public LogFormat(double base,
java.lang.String baseLabel,
boolean showBase)
base - the base.baseLabel - the base label.showBase - a flag that controls whether or not the base value is
shown.| Method Detail |
|---|
public java.lang.StringBuffer format(double number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.NumberFormatnumber - the number.toAppendTo - the string buffer to append to.pos - the position.
public java.lang.StringBuffer format(long number,
java.lang.StringBuffer toAppendTo,
java.text.FieldPosition pos)
format in class java.text.NumberFormatnumber - the number to format.toAppendTo - the buffer to append to (ignored here).pos - the field position (ignored here).
public java.lang.Number parse(java.lang.String source,
java.text.ParsePosition parsePosition)
null.
parse in class java.text.NumberFormatsource - ignored.parsePosition - ignored.
null.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||