public class PieModelDefault<X extends Comparable,S extends Comparable> extends Object implements PieModel<X,S>
This is open source software released under the Apache 2.0 License
| Modifier and Type | Field and Description |
|---|---|
private com.zavtech.morpheus.frame.DataFrame<?,S> |
frame |
private IntFunction<X> |
itemFunction |
private IntToDoubleFunction |
valueFunction |
| Constructor and Description |
|---|
PieModelDefault()
Constructor
|
| Modifier and Type | Method and Description |
|---|---|
void |
apply(com.zavtech.morpheus.frame.DataFrame<?,S> frame,
S itemKey,
S valueKey)
Applies data from the valueKey column in the DataFrame, using items from the itemKey column
|
void |
apply(com.zavtech.morpheus.frame.DataFrame<X,S> frame)
Applies data from the first numeric column in the DataFrame, using row keys as items
|
void |
apply(com.zavtech.morpheus.frame.DataFrame<X,S> frame,
S valueKey)
Applies data from the specified column in the DataFrame, using row keys as items
|
void |
clear(boolean notify)
Clears all data for this dataset
|
com.zavtech.morpheus.frame.DataFrame<?,S> |
getFrame()
Returns the frame reference for model, which can be null
|
IntFunction<X> |
getItemFunction()
Returns the item function for model
|
IntToDoubleFunction |
getValueFunction()
Returns the value function for model
|
boolean |
isEmpty()
Returns true if this dataset is empty
|
Iterable<X> |
keys()
Returns an iterable for section keys
|
private void |
update(com.zavtech.morpheus.frame.DataFrame<?,S> frame,
IntFunction<X> itemFunction,
IntToDoubleFunction valueFunction)
Updates this dataset with the frame, data ordinal and label function
|
private com.zavtech.morpheus.frame.DataFrame<?,S extends Comparable> frame
private IntFunction<X extends Comparable> itemFunction
private IntToDoubleFunction valueFunction
public final com.zavtech.morpheus.frame.DataFrame<?,S> getFrame()
public final IntFunction<X> getItemFunction()
public final IntToDoubleFunction getValueFunction()
private void update(com.zavtech.morpheus.frame.DataFrame<?,S> frame, IntFunction<X> itemFunction, IntToDoubleFunction valueFunction)
frame - the frame referenceitemFunction - the item functionvalueFunction - the value functionpublic Iterable<X> keys()
PieModelkeys in interface PieModel<X extends Comparable,S extends Comparable>public final boolean isEmpty()
PieModelisEmpty in interface PieModel<X extends Comparable,S extends Comparable>public void clear(boolean notify)
PieModelclear in interface PieModel<X extends Comparable,S extends Comparable>notify - if true, fire notification eventpublic void apply(com.zavtech.morpheus.frame.DataFrame<X,S> frame)
PieModelapply in interface PieModel<X extends Comparable,S extends Comparable>frame - the DataFrame referencepublic void apply(com.zavtech.morpheus.frame.DataFrame<X,S> frame, S valueKey)
PieModelapply in interface PieModel<X extends Comparable,S extends Comparable>frame - the DataFrame referencevalueKey - the column key that contains the pie plor data valuespublic void apply(com.zavtech.morpheus.frame.DataFrame<?,S> frame, S itemKey, S valueKey)
PieModelapply in interface PieModel<X extends Comparable,S extends Comparable>frame - the DataFrame referenceitemKey - the column key that contains the pie plot labelsvalueKey - the column key that contains the pie plor data valuesCopyright 2014-2017, Xavier Witdouck