java.lang.Object | |||
↳ | java.text.Format | ||
↳ | java.text.NumberFormat | ||
↳ | org.jfree.chart.util.HexNumberFormat |
A custom number formatter that formats numbers as hexadecimal strings. There are some limitations, so be careful using this class.
Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
int | BYTE | Number of hexadecimal digits for a byte. | |||||||||
int | DWORD | Number of hexadecimal digits for a double word. | |||||||||
int | QWORD | Number of hexadecimal digits for a quad word. | |||||||||
int | WORD | Number of hexadecimal digits for a word. |
[Expand]
Inherited Constants | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() |
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Creates a new instance with 8 digits.
| |||||||||||
Creates a new instance with the specified number of digits.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Formats the specified number as a hexadecimal string.
| |||||||||||
Formats the specified number as a hexadecimal string.
| |||||||||||
Returns the number of digits.
| |||||||||||
Parsing is not implemented, so this method always returns
null . | |||||||||||
Sets the number of digits.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() | |||||||||||
![]() |
Number of hexadecimal digits for a byte.
Number of hexadecimal digits for a double word.
Number of hexadecimal digits for a quad word.
Number of hexadecimal digits for a word.
Creates a new instance with 8 digits.
Creates a new instance with the specified number of digits.
digits | the digits. |
---|
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). |
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). |
Returns the number of digits.
Parsing is not implemented, so this method always returns
null
.
source | ignored. |
---|---|
parsePosition | ignored. |
null
.
Sets the number of digits.
digits | the number of digits. |
---|