public class ProjectionModel extends ChartModel
Constructor and Description |
---|
ProjectionModel()
Default constructor.
|
ProjectionModel(int dimensions)
Construct a projection model with a specified number of dimensions.
|
Modifier and Type | Method and Description |
---|---|
void |
addPoint(double x,
double y)
Convenience method for adding points to dataset.
|
org.jfree.data.xy.XYSeriesCollection |
getDataset() |
Projector |
getProjector()
Returns the projector.
|
static com.thoughtworks.xstream.XStream |
getXStream()
Returns a properly initialized xstream object.
|
void |
init(int numDataSources)
Initialize the projection model with a certain number of data sources.
|
boolean |
isRunning() |
boolean |
isUpdateCompleted()
Swing update flag.
|
void |
resetData()
Resets the JFreeChart data and re-adds all the datapoints.
|
void |
setRunning(boolean b)
This flag allows the user to start and stop iterative projection
techniques.
|
void |
setUpdateCompleted(boolean b)
Swing update flag.
|
addChartSettingsListener, addListener, fireChartInitialized, fireDataSourceAdded, fireDataSourceRemoved, fireSettingsChanged
public ProjectionModel()
public ProjectionModel(int dimensions)
dimensions
- dimension of the projectorpublic void init(int numDataSources)
numDataSources
- number of sources to initialize model with.public Projector getProjector()
public static com.thoughtworks.xstream.XStream getXStream()
public org.jfree.data.xy.XYSeriesCollection getDataset()
public void addPoint(double x, double y)
x
- x dimension of point to addy
- y dimension of point to addpublic void resetData()
public boolean isRunning()
public void setRunning(boolean b)
b
- whether this component being updated by a thread or not.public void setUpdateCompleted(boolean b)
b
- whether updated is completedpublic boolean isUpdateCompleted()