|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
public interface ChartLayout
An interface to chart layouts.
| Field Summary | |
|---|---|
static int |
AREA_CHART
The area chart type. |
static int |
BAR_3D_CHART
The 3D bar chart type. |
static int |
BAR_CHART
The bar chart type. |
static int |
BOTTOM
The bottom location. |
static int |
BOTTOM_LEFT
The bottom-left location. |
static int |
BOTTOM_RIGHT
The bottom-right location. |
static int |
CENTER
The center location. |
static int |
CORNER
The corner location. |
static int |
DATE_AREA_CHART
The date area chart type. |
static int |
DATE_LINE_CHART
The date line chart type. |
static int |
HORIZONTAL
The horizontal orientation. |
static int |
LEFT
The left location. |
static int |
LINE_3D_CHART
The 3D line chart type. |
static int |
LINE_CHART
The line chart type. |
static int |
MULTI_PIE_3D_CHART
The 3D multi-pie chart type. |
static int |
MULTI_PIE_CHART
The multi-pie chart type. |
static int |
PIE_3D_CHART
The 3D pie chart type. |
static int |
PIE_CHART
The pie chart type. |
static int |
RIGHT
The right location. |
static int |
STACKED_AREA_CHART
The stacked area chart type. |
static int |
STACKED_BAR_3D_CHART
The 3D stacked bar chart type. |
static int |
STACKED_BAR_CHART
The stacked bar chart type. |
static int |
STACKED_DATE_AREA_CHART
The stacked date area chart type. |
static int |
STACKED_XY_AREA_CHART
The stacked xy area chart type. |
static int |
TOP
The top location. |
static int |
TOP_LEFT
The top-left location. |
static int |
TOP_RIGHT
The top-right location. |
static int |
VERTICAL
The vertical orientation. |
static int |
XY_AREA_CHART
The xy area chart type. |
static int |
XY_LINE_CHART
The xy line chart type. |
| Method Summary | |
|---|---|
void |
addLabel(String label)
Adds a label. |
void |
addLabel(String label,
Paint paint)
Adds a label with paint. |
void |
addLabel(String label,
Paint paint,
int style,
int pos,
int ho,
int vo)
Adds a label with attributes. |
void |
clearLabels()
Clears all labels. |
int |
columnAxisCount()
Returns the number of column axes. |
Paint |
getBackgroundPaint()
Gets the background paint. |
int |
getBackgroundTransparency()
Gets the transparency of the background. |
Paint |
getBorderPaint()
Gets the border paint. |
Object |
getChart()
Gets the implementation specific chart. |
int |
getChartType()
Gets the type of the chart. |
ChartAxis |
getColumnAxis(int index)
Gets the indexed column axis. |
int |
getColumnAxisPosition(int index)
Gets the position of the indexed column axis. |
int |
getExplodePercent(int section)
Gets the amount that a pie section should be 'exploded'. |
String |
getFontFace()
Gets the font face. |
int |
getFontSize()
Gets the font size. |
int |
getForegroundTransparency()
Gets the transparency of the foreground. |
Paint |
getGridPaint()
Gets the grid paint. |
int |
getHeight()
Gets the height. |
Paint |
getLinePaint(int index,
int series)
Gets the line paint of the specified series. |
Stroke |
getLineStroke(int index,
int series)
Gets the line stroke of the specified series. |
Paint |
getPanelPaint()
Gets the panel paint. |
ChartAxis |
getRowAxis(int index)
Gets the indexed row axis. |
int |
getRowAxisPosition(int index)
Gets the position of the indexed row axis. |
String |
getTitle()
Gets the title. |
int |
getWidth()
Gets the width. |
boolean |
isBorderVisible()
Checks whether the border is visible. |
boolean |
isGridVisible()
Checks whether the grid is visible. |
boolean |
isLinesVisible()
Checks whether lines are visible. |
boolean |
isLinesVisible(int index)
Checks whether lines are visible for the specified dataset. |
boolean |
isLinesVisible(int index,
int series)
Checks whether lines are visible for the specified series. |
boolean |
isShapesVisible()
Checks whether shapes are visible. |
boolean |
isShapesVisible(int index)
Checks whether shapes are visible for the specified dataset. |
boolean |
isShapesVisible(int index,
int series)
Checks whether shapes are visible for the specified series. |
int |
rowAxisCount()
Returns the number of row axes. |
void |
setBackgroundPaint(Paint paint)
Sets the background paint. |
void |
setBackgroundTransparency(int alpha)
Sets the transparency of the background. |
void |
setBorderPaint(Paint paint)
Sets the border paint. |
void |
setBorderVisible(boolean v)
Sets whether the border is visible. |
void |
setColumnAxis(int index,
ChartAxis axis)
Sets the indexed the column axis. |
void |
setColumnAxisPosition(int index,
int pos)
Sets the position of the column axis. |
void |
setExplodePercent(int section,
int percent)
Sets the amount that a pie section should be 'exploded'. |
void |
setFontFace(String fn)
Sets the font face. |
void |
setFontSize(int fs)
Sets the font size. |
void |
setForegroundTransparency(int alpha)
Sets the transparency of the foreground. |
void |
setGridPaint(Paint paint)
Sets the grid paint. |
void |
setGridVisible(boolean v)
Sets whether the grid is visible. |
void |
setHeight(int h)
Sets the height. |
void |
setLinePaint(int index,
int series,
Paint paint)
Sets the line paint of the specified series. |
void |
setLinePaint(int index,
Paint paint)
Sets the line paint for the specified dataset. |
void |
setLinePaint(Paint paint)
Sets the line paint. |
void |
setLineStroke(int index,
int series,
Stroke stroke)
Sets the line stroke of the specified series. |
void |
setLineStroke(int index,
Stroke stroke)
Sets the line stroke for the specified series. |
void |
setLineStroke(Stroke stroke)
Sets the line stroke. |
void |
setLinesVisible(boolean v)
Sets whether lines are visible. |
void |
setLinesVisible(int index,
boolean v)
Sets whether lines are visible for the specified dataset. |
void |
setLinesVisible(int index,
int series,
boolean v)
Sets whether lines are visible for the specified series. |
void |
setModelColumnAxis(int model,
int index)
Sets the column axis of the indexed model. |
void |
setModelRowAxis(int model,
int index)
Sets the row axis of the indexed model. |
void |
setPanelPaint(Paint paint)
Sets the panel paint. |
void |
setRowAxis(int index,
ChartAxis axis)
Sets the indexed row axis. |
void |
setRowAxisPosition(int index,
int pos)
Sets the position of the row axis. |
void |
setShapesVisible(boolean v)
Sets whether shapes are visible. |
void |
setShapesVisible(int index,
boolean v)
Sets whether shapes are visible for the specified dataset. |
void |
setShapesVisible(int index,
int series,
boolean v)
Sets whether shapes are visible for the specified series. |
void |
setTitle(String title)
Sets the title. |
void |
setTitle(String title,
Paint paint)
Sets the title with paint. |
void |
setTitle(String title,
Paint paint,
int style,
int pos,
int ho,
int vo)
Sets the title with attributes. |
void |
setWidth(int w)
Sets the width. |
| Field Detail |
|---|
static final int PIE_CHART
static final int PIE_3D_CHART
static final int MULTI_PIE_CHART
static final int MULTI_PIE_3D_CHART
static final int BAR_CHART
static final int BAR_3D_CHART
static final int STACKED_BAR_CHART
static final int STACKED_BAR_3D_CHART
static final int LINE_CHART
static final int LINE_3D_CHART
static final int XY_LINE_CHART
static final int DATE_LINE_CHART
static final int AREA_CHART
static final int XY_AREA_CHART
static final int DATE_AREA_CHART
static final int STACKED_AREA_CHART
static final int STACKED_XY_AREA_CHART
static final int STACKED_DATE_AREA_CHART
static final int CENTER
static final int TOP
static final int LEFT
static final int BOTTOM
static final int RIGHT
static final int CORNER
static final int TOP_LEFT
static final int BOTTOM_LEFT
static final int BOTTOM_RIGHT
static final int TOP_RIGHT
static final int VERTICAL
static final int HORIZONTAL
| Method Detail |
|---|
Object getChart()
int getChartType()
String getTitle()
void setTitle(String title)
title - the title.
void setTitle(String title,
Paint paint)
title - the title.paint - the paint.
void setTitle(String title,
Paint paint,
int style,
int pos,
int ho,
int vo)
title - the title.paint - the paint (may be null).style - the style (Font style).pos - the position (TOP, LEFT, BOTTOM, RIGHT).ho - the horizontal orientation (CENTER, LEFT, RIGHT).vo - the vertical orientation (CENTER, TOP, BOTTOM).void addLabel(String label)
label - the label.
void addLabel(String label,
Paint paint)
label - the label.paint - the paint.
void addLabel(String label,
Paint paint,
int style,
int pos,
int ho,
int vo)
label - the label.paint - the paint.style - the style (Font style).pos - the position (TOP, LEFT, BOTTOM, RIGHT).ho - the horizontal orientation (CENTER, LEFT, RIGHT).vo - the vertical orientation (CENTER, TOP, BOTTOM).void clearLabels()
int getWidth()
void setWidth(int w)
w - the width.int getHeight()
void setHeight(int h)
h - the height.String getFontFace()
void setFontFace(String fn)
fn - the font name.int getFontSize()
void setFontSize(int fs)
fs - the font size in points.int rowAxisCount()
ChartAxis getRowAxis(int index)
index - the index of the axis.
void setRowAxis(int index,
ChartAxis axis)
index - the index of the axis.axis - the axis or null.int getRowAxisPosition(int index)
index - the index of the axis.
void setRowAxisPosition(int index,
int pos)
index - the index of the axis.pos - the position of the axis.
void setModelRowAxis(int model,
int index)
model - the model index.index - the axis index.int columnAxisCount()
ChartAxis getColumnAxis(int index)
index - the index of the axis.
void setColumnAxis(int index,
ChartAxis axis)
index - the index of the axis.axis - the axis or null.int getColumnAxisPosition(int index)
index - the index of the axis.
void setColumnAxisPosition(int index,
int pos)
index - the index of the axis.pos - the position of the axis.
void setModelColumnAxis(int model,
int index)
model - the model index.index - the axis index.int getExplodePercent(int section)
section - the index of the section.
void setExplodePercent(int section,
int percent)
section - the index of the section.percent - the explode percentage (0 - 100).Paint getPanelPaint()
void setPanelPaint(Paint paint)
paint - the panel paint.Paint getBackgroundPaint()
void setBackgroundPaint(Paint paint)
paint - the background paint.int getBackgroundTransparency()
void setBackgroundTransparency(int alpha)
alpha - the transparency of the background (0-100).int getForegroundTransparency()
void setForegroundTransparency(int alpha)
alpha - the transparency of the foreground (0-100).Paint getGridPaint()
void setGridPaint(Paint paint)
paint - the grid paint.boolean isGridVisible()
void setGridVisible(boolean v)
v - the visibility of the grid.Paint getBorderPaint()
void setBorderPaint(Paint paint)
paint - the border paint.boolean isBorderVisible()
void setBorderVisible(boolean v)
v - the visibility of the border.boolean isLinesVisible()
void setLinesVisible(boolean v)
v - the visibility of lines.boolean isLinesVisible(int index)
index - the dataset index.
void setLinesVisible(int index,
boolean v)
index - the dataset index.v - the visibility of lines.
boolean isLinesVisible(int index,
int series)
index - the dataset index.series - the series index.
void setLinesVisible(int index,
int series,
boolean v)
index - the dataset index.series - the series index.v - the visibility of lines.boolean isShapesVisible()
void setShapesVisible(boolean v)
v - the visibility of shapes.boolean isShapesVisible(int index)
index - the dataset index.
void setShapesVisible(int index,
boolean v)
index - the dataset index.v - the visibility of shapes.
boolean isShapesVisible(int index,
int series)
index - the dataset index.series - the series index.
void setShapesVisible(int index,
int series,
boolean v)
index - the dataset index.series - the series index.v - the visibility of shapes.void setLinePaint(Paint paint)
paint - the line paint.
void setLinePaint(int index,
Paint paint)
index - the dataset index.paint - the line paint.
Paint getLinePaint(int index,
int series)
index - the dataset index.series - the series index.
void setLinePaint(int index,
int series,
Paint paint)
index - the dataset index.series - the series index.paint - the line paint.void setLineStroke(Stroke stroke)
stroke - the line stroke.
void setLineStroke(int index,
Stroke stroke)
index - the dataset index.stroke - the line stroke.
Stroke getLineStroke(int index,
int series)
index - the dataset index.series - the series index.
void setLineStroke(int index,
int series,
Stroke stroke)
index - the dataset index.series - the series index.stroke - the line paint.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||