|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--oracle.ord.media.chart.types.AxisDesc
AxisDesc
objects are used to customize chart axes.
AxisDesc
objects allow users to select the fonts and colors of text used in
generating axis labels. AxisDesc
objects are supplied as arguments to setChartAttributes()
. Labeling of axes can also be disabled.
Consider the following example, which sets the color of the X-axis labels to gray:
AxisChart myChart = new AxisChart(); ... AxisDesc myAxisDesc = new AxisDesc(); myAxisDesc.setForeground(color.gray); myChart.setChartAttributes(AxisChart.XAXIS, myAxisDesc);
Note that attributes associated with numerical axes can also be configured
by using an alternate axis descriptor, NumAxisDesc
.
AxisChart.setChartAttributes(int, AxisDesc)
,
NumAxisDesc
Constructor Summary | |
AxisDesc()
|
Method Summary | |
java.awt.Color |
getColor()
Get the color of the labels. |
boolean |
getDrawLabel()
Get the drawLabel flag. |
java.awt.Font |
getFont()
Get the font. |
void |
setColor(java.awt.Color color)
Set the label color. |
void |
setDrawLabelOff()
Turn off drawing labels. |
void |
setFont(java.awt.Font f)
Set the font of the axis labels. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public AxisDesc()
Method Detail |
public void setDrawLabelOff()
public void setColor(java.awt.Color color)
- color
Color of the axis labels.public void setFont(java.awt.Font f)
- f
Font used for axis labels.public boolean getDrawLabel()
public java.awt.Color getColor()
public java.awt.Font getFont()
|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |