Chart Builder API (beta)

oracle.ord.media.chart.types
Class AxisDesc

java.lang.Object
  |
  +--oracle.ord.media.chart.types.AxisDesc
Direct Known Subclasses:
NumAxisDesc, TimeAxisDesc

public class AxisDesc
extends java.lang.Object

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.

See Also:
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

AxisDesc

public AxisDesc()
Method Detail

setDrawLabelOff

public void setDrawLabelOff()
Turn off drawing labels.

setColor

public void setColor(java.awt.Color color)
Set the label color.
Parameters:
- color Color of the axis labels.

setFont

public void setFont(java.awt.Font f)
Set the font of the axis labels.
Parameters:
- f Font used for axis labels.

getDrawLabel

public boolean getDrawLabel()
Get the drawLabel flag.

getColor

public java.awt.Color getColor()
Get the color of the labels.

getFont

public java.awt.Font getFont()
Get the font.

Chart Builder API (beta)