private class JFXyPlot.ModelAdapter<S extends Comparable> extends Object implements XyModel<X,S>
| Modifier | Constructor and Description |
|---|---|
private |
ModelAdapter()
Constructor
|
| 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
|
private Stream<JFXyDataset<X,? extends Comparable>> |
getModels()
Returns a stream of the models contained in this adapter
|
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
|
private Stream<JFXyDataset<X,? extends Comparable>> getModels()
public Class<X> domainType()
XyModeldomainType in interface XyModel<X extends Comparable,S extends Comparable>public XyDataset<X,S> at(int index)
XyModelat in interface XyModel<X extends Comparable,S extends Comparable>index - the index for requested datapublic void setRangeAxis(int dataset,
int axis)
XyModelsetRangeAxis in interface XyModel<X extends Comparable,S extends Comparable>dataset - the dataset indexaxis - tne range axis index, 0 for primary, 1 for secondary etc...public int add(com.zavtech.morpheus.frame.DataFrame<X,S> frame)
XyModeladd in interface XyModel<X extends Comparable,S extends Comparable>frame - the data frame containing chart data where columns represent seriespublic int add(com.zavtech.morpheus.frame.DataFrame<?,S> frame, S domainKey)
XyModeladd in interface XyModel<X extends Comparable,S extends Comparable>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 domainpublic XyDataset<X,S> update(int index, com.zavtech.morpheus.frame.DataFrame<X,S> frame)
XyModelupdate in interface XyModel<X extends Comparable,S extends Comparable>index - the index of the data model to update with the specified frameframe - the data frame containing chart data where columns represent seriespublic XyDataset<X,S> update(int index, com.zavtech.morpheus.frame.DataFrame<?,S> frame, S domainKey)
XyModelupdate in interface XyModel<X extends Comparable,S extends Comparable>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 domainpublic void remove(int index)
XyModelremove in interface XyModel<X extends Comparable,S extends Comparable>index - the index of the dataset to removepublic void removeAll()
XyModelremoveAll in interface XyModel<X extends Comparable,S extends Comparable>Copyright 2014-2017, Xavier Witdouck