java.lang.Object | |
↳ | org.jfree.chart.axis.TickUnit |
![]() |
Base class representing a tick unit. This determines the spacing of the tick marks on an axis.
This class (and any subclasses) should be immutable, the reason being that ORDERED collections of tick units are maintained and if one instance can be changed, it may destroy the order of the collection that it belongs to. In addition, if the implementations are immutable, they can belong to multiple collections.
Public Constructors | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Constructs a new tick unit.
| |||||||||||
Constructs a new tick unit.
|
Public Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
Compares this tick unit to an arbitrary object.
| |||||||||||
Tests this unit for equality with another object.
| |||||||||||
Returns the minor tick count.
| |||||||||||
Returns the size of the tick unit.
| |||||||||||
Returns a hash code for this instance.
| |||||||||||
Converts the supplied value to a string.
|
[Expand]
Inherited Methods | |||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|
![]() | |||||||||||
![]() |
Constructs a new tick unit.
size | the tick unit size. |
---|
Constructs a new tick unit.
size | the tick unit size. |
---|---|
minorTickCount | the minor tick count. |
Compares this tick unit to an arbitrary object.
object | the object to compare against. |
---|
1
if the size of the other object is less than this,
0
if both have the same size and -1
this
size is less than the others.
Tests this unit for equality with another object.
obj | the object. |
---|
true
or false
.
Returns the minor tick count.
Returns the size of the tick unit.
Returns a hash code for this instance.
Converts the supplied value to a string.
Subclasses may implement special formatting by overriding this method.
value | the data value. |
---|