|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface ChartLayout
An interface to chart layouts.
Nested Class Summary | |
---|---|
static class |
ChartLayout.ChartType
The chart type. |
static class |
ChartLayout.HAlignment
The horizontal alignment. |
static class |
ChartLayout.Location
The label location. |
static class |
ChartLayout.Position
The axis position. |
static class |
ChartLayout.VAlignment
The vertical alignment. |
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,
ChartLayout.Location pos,
ChartLayout.HAlignment ho,
ChartLayout.VAlignment 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 adaptee. |
ChartLayout.ChartType |
getChartType()
Gets the type of the chart. |
ChartAxis |
getColumnAxis(int index)
Gets the indexed column axis. |
ChartLayout.Position |
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. |
NumberFormat |
getLabelNumberFormat()
Gets the label number format. |
NumberFormat |
getLabelPercentFormat()
Gets the label percent format. |
Paint |
getOutlinePaint(int index,
int series)
Gets the outline paint of the specified series. |
Stroke |
getOutlineStroke(int index,
int series)
Gets the outline stroke of the specified series. |
Paint |
getPaint(int index,
int series)
Gets the paint of the specified series. |
Paint |
getPanelPaint()
Gets the panel paint. |
ChartAxis |
getRowAxis(int index)
Gets the indexed row axis. |
ChartLayout.Position |
getRowAxisPosition(int index)
Gets the position of the indexed row axis. |
Stroke |
getStroke(int index,
int series)
Gets the stroke of the specified series. |
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 |
isOutlinesVisible()
Checks whether outlines are visible. |
boolean |
isOutlinesVisible(int index)
Checks whether otulines are visible for the specified dataset. |
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,
ChartLayout.Position 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 |
setLabelNumberFormat(NumberFormat format)
Sets the label number format. |
void |
setLabelPercentFormat(NumberFormat format)
Sets the label percent format. |
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 |
setOutlinePaint(int index,
int series,
Paint paint)
Sets the outline paint of the specified series. |
void |
setOutlinePaint(int index,
Paint paint)
Sets the outline paint for the specified dataset. |
void |
setOutlinePaint(Paint paint)
Sets the outline paint. |
void |
setOutlineStroke(int index,
int series,
Stroke stroke)
Sets the outline stroke of the specified series. |
void |
setOutlineStroke(int index,
Stroke stroke)
Sets the outline stroke for the specified dataset. |
void |
setOutlineStroke(Stroke stroke)
Sets the outline stroke. |
void |
setOutlinesVisible(boolean v)
Sets whether outlines are visible. |
void |
setOutlinesVisible(int index,
boolean v)
Sets whether outlines are visible for the specified dataset. |
void |
setPaint(int index,
int series,
Paint paint)
Sets the paint of the specified series. |
void |
setPaint(int index,
Paint paint)
Sets the paint for the specified dataset. |
void |
setPaint(Paint paint)
Sets the paint. |
void |
setPanelPaint(Paint paint)
Sets the panel paint. |
void |
setRowAxis(int index,
ChartAxis axis)
Sets the indexed row axis. |
void |
setRowAxisPosition(int index,
ChartLayout.Position 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 |
setStroke(int index,
int series,
Stroke stroke)
Sets the stroke of the specified series. |
void |
setStroke(int index,
Stroke stroke)
Sets the stroke for the specified dataset. |
void |
setStroke(Stroke stroke)
Sets the stroke. |
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,
ChartLayout.Location pos,
ChartLayout.HAlignment ho,
ChartLayout.VAlignment vo)
Sets the title with attributes. |
void |
setWidth(int w)
Sets the width. |
Method Detail |
---|
Object getChart()
ChartLayout.ChartType 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, ChartLayout.Location pos, ChartLayout.HAlignment ho, ChartLayout.VAlignment vo)
title
- the title.paint
- the paint (may be null).style
- the style (Font
style).pos
- the position.ho
- the horizontal alignment.vo
- the vertical orientation.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, ChartLayout.Location pos, ChartLayout.HAlignment ho, ChartLayout.VAlignment vo)
label
- the label.paint
- the paint.style
- the style (Font
style).pos
- the position.ho
- the horizontal orientation.vo
- the vertical orientation.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.ChartLayout.Position getRowAxisPosition(int index)
index
- the index of the axis.
void setRowAxisPosition(int index, ChartLayout.Position 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.ChartLayout.Position getColumnAxisPosition(int index)
index
- the index of the axis.
void setColumnAxisPosition(int index, ChartLayout.Position 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.NumberFormat getLabelNumberFormat()
void setLabelNumberFormat(NumberFormat format)
format
- the format for number labels.NumberFormat getLabelPercentFormat()
void setLabelPercentFormat(NumberFormat format)
format
- the format for percent labels.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.boolean isOutlinesVisible()
void setOutlinesVisible(boolean v)
v
- the visibility of ooutlines.boolean isOutlinesVisible(int index)
index
- the dataset index.
void setOutlinesVisible(int index, boolean v)
index
- the dataset index.v
- the visibility of outlines.void setPaint(Paint paint)
paint
- the paint.void setPaint(int index, Paint paint)
index
- the dataset index.paint
- the paint.Paint getPaint(int index, int series)
index
- the dataset index.series
- the series index.
void setPaint(int index, int series, Paint paint)
index
- the dataset index.series
- the series index.paint
- the paint.void setStroke(Stroke stroke)
stroke
- the stroke.void setStroke(int index, Stroke stroke)
index
- the dataset index.stroke
- the stroke.Stroke getStroke(int index, int series)
index
- the dataset index.series
- the series index.
void setStroke(int index, int series, Stroke stroke)
index
- the dataset index.series
- the series index.stroke
- the paint.void setOutlinePaint(Paint paint)
paint
- the paint.void setOutlinePaint(int index, Paint paint)
index
- the dataset index.paint
- the paint.Paint getOutlinePaint(int index, int series)
index
- the dataset index.series
- the series index.
void setOutlinePaint(int index, int series, Paint paint)
index
- the dataset index.series
- the series index.paint
- the paint.void setOutlineStroke(Stroke stroke)
stroke
- the stroke.void setOutlineStroke(int index, Stroke stroke)
index
- the dataset index.stroke
- the stroke.Stroke getOutlineStroke(int index, int series)
index
- the dataset index.series
- the series index.
void setOutlineStroke(int index, int series, Stroke stroke)
index
- the dataset index.series
- the series index.stroke
- the paint.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |