public interface XyModel<X extends Comparable,S extends Comparable>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Method and Description |
|---|---|
int |
add(com.zavtech.morpheus.frame.DataFrame<?,S> frame,
S domainKey)
Adds a data frame using a specific column in the frame to define the domain axis
|
int |
add(com.zavtech.morpheus.frame.DataFrame<X,S> frame)
Adds a data frame using the row keys to define the domain
|
XyDataset<X,S> |
at(int index)
Returns the chart model holding chart data at the specified index
|
Class<X> |
domainType()
Returns the domain type for this model
|
void |
remove(int index)
Removes the data at the specified index
|
void |
removeAll()
Clears all data from the plot
|
void |
setRangeAxis(int dataset,
int axis)
Sets the range axis to use for the dataset specified
|
XyDataset<X,S> |
update(int index,
com.zavtech.morpheus.frame.DataFrame<?,S> frame,
S domainKey)
Applies an updated DataFrame to the model at the specified index
|
XyDataset<X,S> |
update(int index,
com.zavtech.morpheus.frame.DataFrame<X,S> frame)
Applies an updated DataFrame to the model at the specified index
|
void removeAll()
void remove(int index)
index - the index of the dataset to removevoid setRangeAxis(int dataset,
int axis)
dataset - the dataset indexaxis - tne range axis index, 0 for primary, 1 for secondary etc...Class<X> domainType()
XyDataset<X,S> at(int index)
index - the index for requested dataint add(com.zavtech.morpheus.frame.DataFrame<X,S> frame)
frame - the data frame containing chart data where columns represent seriesint add(com.zavtech.morpheus.frame.DataFrame<?,S> frame, S domainKey)
frame - the data frame containing chart data where column represent series, except for column with domainKeydomainKey - the column key that should be used to define the domainXyDataset<X,S> update(int index, com.zavtech.morpheus.frame.DataFrame<X,S> frame)
index - the index of the data model to update with the specified frameframe - the data frame containing chart data where columns represent seriesXyDataset<X,S> update(int index, com.zavtech.morpheus.frame.DataFrame<?,S> frame, S domainKey)
index - the index of the data model to update with the specified frameframe - the data frame containing chart data where column represent series, except for column with domainKeydomainKey - the column key that should be used to define the domainCopyright 2014-2017, Xavier Witdouck