JIDE 3.5.15

com.jidesoft.gauge
Class AbstractNumericGaugeAxis<TickStyle extends AbstractGaugeTickStyle>

java.lang.Object
  extended by com.jidesoft.gauge.AbstractNumericGaugeAxis<TickStyle>
Type Parameters:
TickStyle - the style of the ticks, which may vary depending on the type of the axis and/or gauge
Direct Known Subclasses:
BulletAxis, DialAxis

public class AbstractNumericGaugeAxis<TickStyle extends AbstractGaugeTickStyle>
extends Object

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

PROPERTY_RANGE

public static final String PROPERTY_RANGE
See Also:
Constant Field Values

PROPERTY_MAJOR_TICK_STYLE

public static final String PROPERTY_MAJOR_TICK_STYLE
See Also:
Constant Field Values

PROPERTY_MINOR_TICK_STYLE

public static final String PROPERTY_MINOR_TICK_STYLE
See Also:
Constant Field Values

PROPERTY_MAJOR_TICK

public static final String PROPERTY_MAJOR_TICK
See Also:
Constant Field Values

PROPERTY_MINOR_TICK

public static final String PROPERTY_MINOR_TICK
See Also:
Constant Field Values

range

protected NumericRange range

majorTickInterval

protected double majorTickInterval

minorTickInterval

protected double minorTickInterval

support

protected PropertyChangeSupport support
Constructor Detail

AbstractNumericGaugeAxis

public AbstractNumericGaugeAxis()

AbstractNumericGaugeAxis

public AbstractNumericGaugeAxis(double rangeStart,
                                double rangeEnd)

AbstractNumericGaugeAxis

public AbstractNumericGaugeAxis(double rangeStart,
                                double rangeEnd,
                                double majorTickInterval,
                                double minorTickInterval)
Method Detail

setRange

public void setRange(double rangeStart,
                     double rangeEnd)
Change the range of the axis to the specified range start and end values

Parameters:
rangeStart - the start of the range
rangeEnd - the end of the range

setRange

public void setRange(NumericRange range)
Change the range of the axis to the specified range

Parameters:
range - the new range for the gauge

getRange

public NumericRange getRange()

addPropertyChangeListener

public void addPropertyChangeListener(PropertyChangeListener listener)

removePropertyChangeListener

public void removePropertyChangeListener(PropertyChangeListener listener)

getMajorTickInterval

public double getMajorTickInterval()

setMajorTickInterval

public void setMajorTickInterval(double majorTickInterval)

getMinorTickInterval

public double getMinorTickInterval()

setMinorTickInterval

public void setMinorTickInterval(double minorTickInterval)

getNumberFormat

public NumberFormat getNumberFormat()

setNumberFormat

public void setNumberFormat(NumberFormat numberFormat)
Specify a number format for the tick labels along the axis

Parameters:
numberFormat - the number format to use when preparing tick labels

updateTicks

protected void updateTicks()

createTickCalculator

protected NumericTickCalculator createTickCalculator(double rangeMin,
                                                     double rangeMax,
                                                     double majorTickInterval,
                                                     double minorTickInterval)

ticks

public List<Tick> ticks()

minimum

public double minimum()

maximum

public double maximum()

getMajorTickStyle

public TickStyle getMajorTickStyle()

setMajorTickStyle

public void setMajorTickStyle(TickStyle tickStyle)

getMinorTickStyle

public TickStyle getMinorTickStyle()

setMinorTickStyle

public void setMinorTickStyle(TickStyle tickStyle)

getTickLabelFont

public Font getTickLabelFont()

setTickLabelFont

public void setTickLabelFont(Font tickLabelFont)

getTickLabelColor

public Color getTickLabelColor()
Get the current tick label color

Returns:
the tick label color

setTickLabelColor

public void setTickLabelColor(Color tickLabelColor)
Specify the color to use when painting the tick labels. If the tick label color is null the tick label will not be painted.

Parameters:
tickLabelColor - the color for the tick labels

toString

public String toString()
Overrides:
toString in class Object

JIDE 3.5.15