|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.imsl.chart.AbstractChartNode com.imsl.chart.ChartNode com.imsl.chart.AxisLabel
public class AxisLabel
The labels on an axis.
AxisLabel
is created by Axis1D
as its child. It can
be retrieved using the method Axis1D.getAxisLabel()
.
Axis labels are placed at the tick mark locations. The number of tick marks is determined by the attribute "Number". Tick marks are evenly spaced. If the attribute "Labels" is defined then it is used to label the tick marks.
If "Labels" is not defined, the ticks are labeled numerically. The endpoint label values are obtained from the attribute "Window". The numbers are formatted using the attribute "TextFormat".
Text attributes in this node control the drawing of the axis labels.
Field Summary |
---|
Fields inherited from class com.imsl.chart.AbstractChartNode |
---|
AUTOSCALE_DATA, AUTOSCALE_DENSITY, AUTOSCALE_NUMBER, AUTOSCALE_OFF, AUTOSCALE_WINDOW, AXIS_X, AXIS_Y, AXIS_Z, LABEL_TYPE_NONE, LABEL_TYPE_TITLE, LABEL_TYPE_X, LABEL_TYPE_Y, LABEL_TYPE_Z, TRANSFORM_CUSTOM, TRANSFORM_LINEAR, TRANSFORM_LOG |
Method Summary | |
---|---|
Text[] |
getLabels()
Returns the "Labels" attribute. |
void |
paint(Draw draw)
Paints this node and all of its children. |
void |
setLabels(String[] value)
Sets the axis label values for this node to be used instead of the default numbers. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Method Detail |
---|
public Text[] getLabels()
String
array containing the axis labels, if set.
Otherwise, null
is returned.public void paint(Draw draw)
paint
in class ChartNode
draw
- the Draw
object to be paintedpublic void setLabels(String[] value)
value.length
.
value
- a String
array containing the labels for
the major tick marks
|
JMSLTM Numerical Library 6.1 | |||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |