|
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.GridDesc
GridDesc objects are used to customize the Grid, and are normally supplied as arguments to setChartAttributes(). Users have control of grid attributes, such as grid color and the line style. The grid can be disabled with setDrawGridOff().
For the time axis, grid lines are drawn based on the labeled time dimension. For example, suppose the time axis is defined at daily intervals, but, because many days are supplied, labels are generated each month. In this case, grid lines will be drawn on monthly boundaries and grid threshold lines will be drawn on yearly boundaries.
The specific heuristic for drawing grid lines along the time axis is the following:
Grid lines are generally drawn for the highest frequency labeled dimension. If this would result in drawing a grid line for every timestamp, grid lines are drawn for the next highest frequency labeled dimension.
By default, grid lines are drawn with a dashed line, while grid threshold lines are drawn with a solid line. The style for grid lines can be changed using setGridStyle(), while the style for grid threshold lines can be changed with setGridStyleThreshold().
Field Summary | |
static int |
GRID_LINE_DASHED
Constant for dashed grid lines. |
static int |
GRID_LINE_DASHED2
Constant for heavier dashed grid lines. |
static int |
GRID_LINE_SOLID
Constant for solid grid lines. |
Constructor Summary | |
GridDesc()
|
Method Summary | |
java.awt.Color |
getColor()
Get the color of the grid. |
boolean |
getDrawGrid()
Get the drawGrid flag. |
int |
getGridStyle()
Get the line style of the grid. |
int |
getGridStyleThreshold()
Get the line style of the grid threshold. |
void |
setColor(java.awt.Color color)
Set the grid color. |
void |
setDrawGridOff()
Disable drawing the grid. |
void |
setGridStyle(int gridStyle)
Set the style of the grid. |
void |
setGridStyleThreshold(int gridStyle)
Set the style of the grid threshold. |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
public static final int GRID_LINE_SOLID
public static final int GRID_LINE_DASHED
public static final int GRID_LINE_DASHED2
Constructor Detail |
public GridDesc()
Method Detail |
public void setDrawGridOff()
public void setColor(java.awt.Color color)
- color Color of the grid.public void setGridStyle(int gridStyle) throws ChartException
gridStyle
- Valid values are GRID_LINE_SOLID, GRID_LINE_DASHED or GRID_LINE_DASHED2.public void setGridStyleThreshold(int gridStyle) throws ChartException
For example, suppose the time axis is defined at 10 minute intervals, and days and hours are labeled. In this case, grid lines will be drawn each hour; the grid lines on day boundaries are drawn in the style of the Threshold grid.
gridStyle
- Valid values are GRID_LINE_SOLID, GRID_LINE_DASHED or GRID_LINE_DASHED2.public boolean getDrawGrid()
public java.awt.Color getColor()
public int getGridStyle()
public int getGridStyleThreshold()
|
Chart Builder API (beta) | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |