|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.jidesoft.chart.axis.DefaultNumericTickCalculator
public class DefaultNumericTickCalculator
A default implementation of a tick calculator for numeric values.
Field Summary | |
---|---|
static String |
PROPERTY_NUMBER_FORMAT
|
static String |
PROPERTY_TICK_INTERVALS_BETWEEN_MAJORS
|
Constructor Summary | |
---|---|
DefaultNumericTickCalculator()
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
Register an object's interest in property changes on this object |
Tick[] |
calculateTicks(Range<Double> r)
Works out where to place the tick markers |
int |
getMinorTickIntervalBetweenMajors()
Returns the number of intervals between major ticks. |
NumberFormat |
getNumberFormat()
Returns the number format used for generating tick labels |
void |
removePropertyChangeListener(PropertyChangeListener listener)
De-register an object's interest in property changes on this object |
void |
setMinorTickIntervalBetweenMajors(int minorTickIntervalBetweenMajors)
Set the number of ticks between major ticks by specifying the number of intervals. |
void |
setNumberFormat(NumberFormat numberFormat)
By default the number format used for generating the ticks uses a maximum of 2 digits for the fractional part. |
void |
setNumberFormat(String numberFormat)
The string to use for the number format is as used in the applyPattern method of DecimalFormat . |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_NUMBER_FORMAT
public static final String PROPERTY_TICK_INTERVALS_BETWEEN_MAJORS
Constructor Detail |
---|
public DefaultNumericTickCalculator()
Method Detail |
---|
public int getMinorTickIntervalBetweenMajors()
public void setMinorTickIntervalBetweenMajors(int minorTickIntervalBetweenMajors)
minorTickIntervalBetweenMajors
- specify the number of intervals between major tickspublic NumberFormat getNumberFormat()
getNumberFormat
in interface NumericTickCalculator
public void setNumberFormat(NumberFormat numberFormat)
setNumberFormat
in interface NumericTickCalculator
numberFormat
- the new number format objectpublic void setNumberFormat(String numberFormat)
DecimalFormat
.
setNumberFormat
in interface NumericTickCalculator
numberFormat
- the number format to usepublic Tick[] calculateTicks(Range<Double> r)
calculateTicks
in interface TickCalculator<Double>
public void addPropertyChangeListener(PropertyChangeListener listener)
addPropertyChangeListener
in interface TickCalculator<Double>
listener
- the interested object that will be notified when a change occurspublic void removePropertyChangeListener(PropertyChangeListener listener)
removePropertyChangeListener
in interface TickCalculator<Double>
listener
- the object that will no longer be notified of changes
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |