|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.approximatrix.charting.model.AbstractChartDataModel
com.approximatrix.charting.model.DefaultChartDataModel
com.approximatrix.charting.model.EditableChartDataModel
com.approximatrix.charting.model.ScatterDataModel
public class ScatterDataModel
Implements an EditableChartDataModel that can be used for plotting data that shares the same X-axis points. Each series in the ScatterDataModel also retains the series plot properties, including line style, color, and marker type.
| Nested Class Summary | |
|---|---|
private class |
ScatterDataModel.SeriesProperties
Simple private class that is used to store the drawing properties for a ScatterDataModel series. |
| Field Summary | |
|---|---|
(package private) java.util.ArrayList |
data_properties
Arraylist containing a SeriesProperties classes, one for each data set |
| Fields inherited from class com.approximatrix.charting.model.DefaultChartDataModel |
|---|
columnSet, constraints1, constraints2, data, valuesbyaxis |
| Fields inherited from class com.approximatrix.charting.model.AbstractChartDataModel |
|---|
autoscale, listener, maxcolumn, maxvalue, mincolumn, minvalue |
| Constructor Summary | |
|---|---|
ScatterDataModel(double[][] model,
double[] columns,
java.lang.String[] rows)
Creates a new ScatterDataModel with default series properties |
|
| Method Summary | |
|---|---|
boolean |
getSeriesLine(int set)
Returns whether the specified line series displays a drawn line |
boolean |
getSeriesLine(java.lang.String name)
Returns whether the specified line series displays a its line |
boolean |
getSeriesMarker(int set)
Returns whether the specified line series displays a marker |
boolean |
getSeriesMarker(java.lang.String name)
Returns whether the specified line series displays a marker |
void |
setSeriesLine(java.lang.String name,
boolean on_or_off)
Set the series line, specified by name, to be either displayed or hidden |
void |
setSeriesMarker(java.lang.String name,
boolean on_or_off)
Sets the series marker, specified by name, to be either displayed or hidden |
| Methods inherited from class com.approximatrix.charting.model.EditableChartDataModel |
|---|
insertValue, removeValueAt, setAxisBinding, setValueAt |
| Methods inherited from class com.approximatrix.charting.model.DefaultChartDataModel |
|---|
getAxisBinding, getChartDataModelConstraints, getColumnClass, getColumnValueAt, getColumnValueAt, getDataSetLength, getDataSetName, getDataSetNumber, getFirstColumnValue, getLastColumnValue, getOrderedValues, getValueAt, isColumnNumeric, setChartDataModelConstraints, trimSet |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
java.util.ArrayList data_properties
| Constructor Detail |
|---|
public ScatterDataModel(double[][] model,
double[] columns,
java.lang.String[] rows)
model - an array containing one series along each rowcolumns - x-axis (independent) values corresponding to each column of modelrows - String array containing the name of each series| Method Detail |
|---|
public void setSeriesMarker(java.lang.String name,
boolean on_or_off)
name - line series nameon_or_off - true to show markers, false otherwise
public void setSeriesLine(java.lang.String name,
boolean on_or_off)
name - line series nameon_or_off - true to display the line, false otherwisepublic boolean getSeriesMarker(int set)
set - an integer specifying which series to inquire about
public boolean getSeriesLine(int set)
set - an integer specifying which series to inquire about
public boolean getSeriesMarker(java.lang.String name)
name - the name of the series to inquire about
public boolean getSeriesLine(java.lang.String name)
name - the name of the series to inquire about
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||