|
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.gauge.AbstractNumericGaugeAxis<TickStyle>
TickStyle
- the style of the ticks, which may vary depending on the type of the axis and/or gaugepublic class AbstractNumericGaugeAxis<TickStyle extends AbstractGaugeTickStyle>
An abstract superclass for the axes of gauges
Field Summary | |
---|---|
protected double |
majorTickInterval
|
protected double |
minorTickInterval
|
static String |
PROPERTY_MAJOR_TICK
|
static String |
PROPERTY_MAJOR_TICK_STYLE
|
static String |
PROPERTY_MINOR_TICK
|
static String |
PROPERTY_MINOR_TICK_STYLE
|
static String |
PROPERTY_RANGE
|
protected NumericRange |
range
|
protected PropertyChangeSupport |
support
|
Constructor Summary | |
---|---|
AbstractNumericGaugeAxis()
|
|
AbstractNumericGaugeAxis(double rangeStart,
double rangeEnd)
|
|
AbstractNumericGaugeAxis(double rangeStart,
double rangeEnd,
double majorTickInterval,
double minorTickInterval)
|
Method Summary | |
---|---|
void |
addPropertyChangeListener(PropertyChangeListener listener)
|
protected NumericTickCalculator |
createTickCalculator(double rangeMin,
double rangeMax,
double majorTickInterval,
double minorTickInterval)
|
double |
getMajorTickInterval()
|
TickStyle |
getMajorTickStyle()
|
double |
getMinorTickInterval()
|
TickStyle |
getMinorTickStyle()
|
NumberFormat |
getNumberFormat()
|
NumericRange |
getRange()
|
Color |
getTickLabelColor()
Get the current tick label color |
Font |
getTickLabelFont()
|
double |
maximum()
|
double |
minimum()
|
void |
removePropertyChangeListener(PropertyChangeListener listener)
|
void |
setMajorTickInterval(double majorTickInterval)
|
void |
setMajorTickStyle(TickStyle tickStyle)
|
void |
setMinorTickInterval(double minorTickInterval)
|
void |
setMinorTickStyle(TickStyle tickStyle)
|
void |
setNumberFormat(NumberFormat numberFormat)
Specify a number format for the tick labels along the axis |
void |
setRange(double rangeStart,
double rangeEnd)
Change the range of the axis to the specified range start and end values |
void |
setRange(NumericRange range)
Change the range of the axis to the specified range |
void |
setTickLabelColor(Color tickLabelColor)
Specify the color to use when painting the tick labels. |
void |
setTickLabelFont(Font tickLabelFont)
|
List<Tick> |
ticks()
|
String |
toString()
|
protected void |
updateTicks()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_RANGE
public static final String PROPERTY_MAJOR_TICK_STYLE
public static final String PROPERTY_MINOR_TICK_STYLE
public static final String PROPERTY_MAJOR_TICK
public static final String PROPERTY_MINOR_TICK
protected NumericRange range
protected double majorTickInterval
protected double minorTickInterval
protected PropertyChangeSupport support
Constructor Detail |
---|
public AbstractNumericGaugeAxis()
public AbstractNumericGaugeAxis(double rangeStart, double rangeEnd)
public AbstractNumericGaugeAxis(double rangeStart, double rangeEnd, double majorTickInterval, double minorTickInterval)
Method Detail |
---|
public void setRange(double rangeStart, double rangeEnd)
rangeStart
- the start of the rangerangeEnd
- the end of the rangepublic void setRange(NumericRange range)
range
- the new range for the gaugepublic NumericRange getRange()
public void addPropertyChangeListener(PropertyChangeListener listener)
public void removePropertyChangeListener(PropertyChangeListener listener)
public double getMajorTickInterval()
public void setMajorTickInterval(double majorTickInterval)
public double getMinorTickInterval()
public void setMinorTickInterval(double minorTickInterval)
public NumberFormat getNumberFormat()
public void setNumberFormat(NumberFormat numberFormat)
numberFormat
- the number format to use when preparing tick labelsprotected void updateTicks()
protected NumericTickCalculator createTickCalculator(double rangeMin, double rangeMax, double majorTickInterval, double minorTickInterval)
public List<Tick> ticks()
public double minimum()
public double maximum()
public TickStyle getMajorTickStyle()
public void setMajorTickStyle(TickStyle tickStyle)
public TickStyle getMinorTickStyle()
public void setMinorTickStyle(TickStyle tickStyle)
public Font getTickLabelFont()
public void setTickLabelFont(Font tickLabelFont)
public Color getTickLabelColor()
public void setTickLabelColor(Color tickLabelColor)
tickLabelColor
- the color for the tick labelspublic String toString()
toString
in class Object
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |