|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectschmitzm.jfree.chart.style.AbstractChartStyle
schmitzm.jfree.chart.style.ScatterChartStyle
public class ScatterChartStyle
This class provides a chart style for scatter chart, which shows the data as points. Besides the points it is possible to show a regression line ("line of best fit") for the data points.
Field Summary | |
---|---|
protected boolean |
regrLineVisible
Stores whether a regression line ("line of best fit") for the data points is shown. |
Fields inherited from class schmitzm.jfree.chart.style.AbstractChartStyle |
---|
axisStyle, bgPaint, borderVisible, descStyle, id, legend, LOGGER, maxRendererDatasetIdx, orientation, plotStyle, rendererStyle, TIPGEN_CAT, TIPGEN_XY, titleStyle, tooltips, type, URLGEN_CAT, URLGEN_XY, urls |
Fields inherited from interface schmitzm.jfree.chart.style.ChartStyle |
---|
DOMAIN_AXIS, RANGE_AXIS, RANGE_AXIS2, X_AXIS, Y_AXIS, Y_AXIS_LEFT, Y_AXIS_RIGHT, Y_AXIS2 |
Constructor Summary | |
---|---|
ScatterChartStyle(String id)
Creates a scatter chart style a regression line shown. |
Method Summary | |
---|---|
void |
applyToChart(JFreeChart chart)
Applies the style to an existing chart. |
JFreeChart |
applyToDataset(Dataset dataset)
Creates a scatter chart for the given Dataset and applies the style. |
ScatterChartStyle |
copy()
Creates a (deep) clone of this chart style. |
ChartStyle |
copyTo(ChartStyle dest)
Copies all properties of this chart style to another chart style. |
boolean |
isRegressionLineVisible()
Returns whether a regression line is shown. |
void |
setRegressionLineVisible(boolean visible)
Sets whether a regression line is shown. |
Methods inherited from class schmitzm.jfree.chart.style.AbstractChartStyle |
---|
getAxisCount, getAxisStyle, getBackground, getDescStyle, getID, getOrientation, getPlotStyle, getRendererCount, getRendererStyle, getTitleStyle, getType, hasLegend, hasTooltips, hasURLs, isBorderVisible, setAxisStyle, setBackground, setBorderVisible, setDescStyle, setLegend, setOrientation, setPlotStyle, setRendererStyle, setTitleStyle, setTooltips, setType, setURLs |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
protected boolean regrLineVisible
Constructor Detail |
---|
public ScatterChartStyle(String id)
id
- a (unique) ID for the styleMethod Detail |
---|
public ScatterChartStyle copy()
copy
in interface Copyable<ChartStyle>
copy
in class AbstractChartStyle
public ChartStyle copyTo(ChartStyle dest)
copyTo
in interface Copyable<ChartStyle>
copyTo
in class AbstractChartStyle
dest
- destination object (if null
the copy
is created by copy()
)
dest
or the new instance
IllegalArgumentException
- if dest
is no
AbstractChartStyle
public boolean isRegressionLineVisible()
public void setRegressionLineVisible(boolean visible)
public JFreeChart applyToDataset(Dataset dataset)
Dataset
and applies the style.
dataset
- the data for the chart
UnsupportedOperationException
- if the style can not be applied
to the given datasetpublic void applyToChart(JFreeChart chart)
applyToChart
in interface ChartStyle
applyToChart
in class AbstractChartStyle
chart
- chart the style is applied to
UnsupportedOperationException
- if the style can not be applied
to the given dataset
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |