JIDE 3.5.15

com.jidesoft.gauge
Class DialAxis

java.lang.Object
  extended by com.jidesoft.gauge.AbstractNumericGaugeAxis<DialTickStyle>
      extended by com.jidesoft.gauge.DialAxis

public class DialAxis
extends AbstractNumericGaugeAxis<DialTickStyle>

The axis from which values are read on a Dial. You need to specify a start and end angle as well as a range. Start and end angles are given in degrees, with 0 being horizontal in the direction of East, and angles increasing in the anticlockwise direction. When specifying your start and end angles, you can make the end angle smaller than the start angle if you want the values on the axis to increase in a clockwise direction (for example a start angle of 180 and an end angle of 0).


Field Summary
static String PROPERTY_INNER_RADIUS
           
static String PROPERTY_LABEL_RADIUS
           
static String PROPERTY_OUTER_RADIUS
           
 
Fields inherited from class com.jidesoft.gauge.AbstractNumericGaugeAxis
majorTickInterval, minorTickInterval, PROPERTY_MAJOR_TICK, PROPERTY_MAJOR_TICK_STYLE, PROPERTY_MINOR_TICK, PROPERTY_MINOR_TICK_STYLE, PROPERTY_RANGE, range, support
 
Constructor Summary
DialAxis()
          Default Constructor
DialAxis(double rangeStart, double rangeEnd)
          Create a DialAxis by specifying the start and end of the axis range
DialAxis(double rangeStart, double rangeEnd, double majorTickInterval, double minorTickInterval)
          Create a DialAxis by specifying the start and end of the axis range, as well as the major and minor tick intervals
 
Method Summary
 Color getBorderColor()
           
 BasicStroke getBorderStroke()
           
 double getEndAngle()
          Returns the end angle of the axis in degrees
 Paint getFill()
           
 double getInnerRadius()
           
 DialLabelOrientation getLabelOrientation()
          Returns the orientation of the labels in relation to the dial face
 double getLabelRadius()
           
 double getOuterRadius()
           
 double getRangeEnd()
           
 double getRangeStart()
           
 double getStartAngle()
          Returns the start angle of the axis in degrees
 boolean isTickLabelsVisible()
           
 void setBorderColor(Color borderColor)
           
 void setBorderStroke(BasicStroke borderStroke)
           
 void setEndAngle(double endAngle)
          Sets the end angle of the axis in degrees
 void setFill(Paint fill)
           
 void setInnerRadius(double innerRadius)
           
 void setLabelOrientation(DialLabelOrientation labelOrientation)
          Specify the orientation of the labels in relation to the dial face
 void setLabelRadius(double labelRadius)
           
 void setOuterRadius(double outerRadius)
           
 void setRangeEnd(double end)
           
 void setRangeStart(double start)
           
 void setStartAngle(double startAngle)
          Sets the start angle of the axis in degrees
 void setTickLabelsVisible(boolean tickLabelsVisible)
           
 
Methods inherited from class com.jidesoft.gauge.AbstractNumericGaugeAxis
addPropertyChangeListener, createTickCalculator, getMajorTickInterval, getMajorTickStyle, getMinorTickInterval, getMinorTickStyle, getNumberFormat, getRange, getTickLabelColor, getTickLabelFont, maximum, minimum, removePropertyChangeListener, setMajorTickInterval, setMajorTickStyle, setMinorTickInterval, setMinorTickStyle, setNumberFormat, setRange, setRange, setTickLabelColor, setTickLabelFont, ticks, toString, updateTicks
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

PROPERTY_INNER_RADIUS

public static final String PROPERTY_INNER_RADIUS
See Also:
Constant Field Values

PROPERTY_OUTER_RADIUS

public static final String PROPERTY_OUTER_RADIUS
See Also:
Constant Field Values

PROPERTY_LABEL_RADIUS

public static final String PROPERTY_LABEL_RADIUS
See Also:
Constant Field Values
Constructor Detail

DialAxis

public DialAxis()
Default Constructor


DialAxis

public DialAxis(double rangeStart,
                double rangeEnd)
Create a DialAxis by specifying the start and end of the axis range

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

DialAxis

public DialAxis(double rangeStart,
                double rangeEnd,
                double majorTickInterval,
                double minorTickInterval)
Create a DialAxis by specifying the start and end of the axis range, as well as the major and minor tick intervals

Parameters:
rangeStart - the start of the axis range
rangeEnd - the end of the axis range
majorTickInterval - the distance between major ticks along the axis
minorTickInterval - the distance between minor ticks along the axis
Method Detail

getStartAngle

public double getStartAngle()
Returns the start angle of the axis in degrees

Returns:
the start angle of the axis in degrees

setStartAngle

public void setStartAngle(double startAngle)
Sets the start angle of the axis in degrees

Parameters:
startAngle - the startAngle of the axis (in degrees)

getEndAngle

public double getEndAngle()
Returns the end angle of the axis in degrees

Returns:
the end angle of the axis in degrees

setEndAngle

public void setEndAngle(double endAngle)
Sets the end angle of the axis in degrees

Parameters:
endAngle - the end angle of the axis in degrees

getInnerRadius

public double getInnerRadius()

setInnerRadius

public void setInnerRadius(double innerRadius)

getOuterRadius

public double getOuterRadius()

setOuterRadius

public void setOuterRadius(double outerRadius)

getLabelOrientation

public DialLabelOrientation getLabelOrientation()
Returns the orientation of the labels in relation to the dial face

Returns:
the orientation of the labels

setLabelOrientation

public void setLabelOrientation(DialLabelOrientation labelOrientation)
Specify the orientation of the labels in relation to the dial face

Parameters:
labelOrientation - the orientation of the labels

getLabelRadius

public double getLabelRadius()

setLabelRadius

public void setLabelRadius(double labelRadius)

getFill

public Paint getFill()

setFill

public void setFill(Paint fill)

getBorderColor

public Color getBorderColor()

setBorderColor

public void setBorderColor(Color borderColor)

getBorderStroke

public BasicStroke getBorderStroke()

setBorderStroke

public void setBorderStroke(BasicStroke borderStroke)

getRangeStart

public double getRangeStart()

setRangeStart

public void setRangeStart(double start)

getRangeEnd

public double getRangeEnd()

setRangeEnd

public void setRangeEnd(double end)

isTickLabelsVisible

public boolean isTickLabelsVisible()

setTickLabelsVisible

public void setTickLabelsVisible(boolean tickLabelsVisible)

JIDE 3.5.15