|
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<DialTickStyle> com.jidesoft.gauge.DialAxis
public class DialAxis
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 java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final String PROPERTY_INNER_RADIUS
public static final String PROPERTY_OUTER_RADIUS
public static final String PROPERTY_LABEL_RADIUS
Constructor Detail |
---|
public DialAxis()
public DialAxis(double rangeStart, double rangeEnd)
rangeStart
- the start of the axis rangerangeEnd
- the end of the axis rangepublic DialAxis(double rangeStart, double rangeEnd, double majorTickInterval, double minorTickInterval)
rangeStart
- the start of the axis rangerangeEnd
- the end of the axis rangemajorTickInterval
- the distance between major ticks along the axisminorTickInterval
- the distance between minor ticks along the axisMethod Detail |
---|
public double getStartAngle()
public void setStartAngle(double startAngle)
startAngle
- the startAngle of the axis (in degrees)public double getEndAngle()
public void setEndAngle(double endAngle)
endAngle
- the end angle of the axis in degreespublic double getInnerRadius()
public void setInnerRadius(double innerRadius)
public double getOuterRadius()
public void setOuterRadius(double outerRadius)
public DialLabelOrientation getLabelOrientation()
public void setLabelOrientation(DialLabelOrientation labelOrientation)
labelOrientation
- the orientation of the labelspublic double getLabelRadius()
public void setLabelRadius(double labelRadius)
public Paint getFill()
public void setFill(Paint fill)
public Color getBorderColor()
public void setBorderColor(Color borderColor)
public BasicStroke getBorderStroke()
public void setBorderStroke(BasicStroke borderStroke)
public double getRangeStart()
public void setRangeStart(double start)
public double getRangeEnd()
public void setRangeEnd(double end)
public boolean isTickLabelsVisible()
public void setTickLabelsVisible(boolean tickLabelsVisible)
|
JIDE 3.5.15 | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |