org.jfree.chart.util
public class HexNumberFormat extends NumberFormat
Since: 1.0.6
| Field Summary | |
|---|---|
| static int | BYTE Number of hexadecimal digits for a byte. |
| static int | DWORD Number of hexadecimal digits for a double word. |
| static int | QWORD Number of hexadecimal digits for a quad word. |
| static int | WORD Number of hexadecimal digits for a word. |
| Constructor Summary | |
|---|---|
| HexNumberFormat()
Creates a new instance with 8 digits. | |
| HexNumberFormat(int digits)
Creates a new instance with the specified number of digits. | |
| Method Summary | |
|---|---|
| StringBuffer | format(double number, StringBuffer toAppendTo, FieldPosition pos)
Formats the specified number as a hexadecimal string. |
| StringBuffer | format(long number, StringBuffer toAppendTo, FieldPosition pos)
Formats the specified number as a hexadecimal string. |
| int | getNumberOfDigits()
Returns the number of digits.
|
| Number | parse(String source, ParsePosition parsePosition)
Parsing is not implemented, so this method always returns
null.
|
| void | setNumberOfDigits(int digits)
Sets the number of digits.
|
Parameters: digits the digits.
Parameters: number the number to format. toAppendTo the buffer to append to (ignored here). pos the field position (ignored here).
Returns: The string buffer.
Parameters: number the number to format. toAppendTo the buffer to append to (ignored here). pos the field position (ignored here).
Returns: The string buffer.
Returns: The number of digits.
null.
Parameters: source ignored. parsePosition ignored.
Returns: Always null.
Parameters: digits the number of digits.