class JFPieModel<X extends Comparable,S extends Comparable> extends org.jfree.data.general.AbstractDataset implements PieModel<X,S>, org.jfree.data.general.PieDataset
This is open source software released under the Apache 2.0 License
| Modifier and Type | Field and Description |
|---|---|
private com.zavtech.morpheus.index.Index<X> |
itemKeys |
private PieModelDefault<X,S> |
model |
| Constructor and Description |
|---|
JFPieModel()
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
|
int |
getIndex(Comparable itemKey) |
int |
getItemCount() |
Comparable |
getKey(int index) |
List |
getKeys() |
Number |
getValue(Comparable itemKey) |
Number |
getValue(int index) |
boolean |
isEmpty()
Returns true if this dataset is empty
|
Iterable<X> |
keys()
Returns an iterable for section keys
|
private void |
updateItemKeys()
Updates the item keys for this model
|
addChangeListener, clone, fireDatasetChanged, getGroup, hasListener, notifyListeners, removeChangeListener, setGroup, validateObjectprivate com.zavtech.morpheus.index.Index<X extends Comparable> itemKeys
private PieModelDefault<X extends Comparable,S extends Comparable> model
private void updateItemKeys()
public 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 valuespublic final int getItemCount()
getItemCount in interface org.jfree.data.Valuespublic final List getKeys()
getKeys in interface org.jfree.data.KeyedValuespublic final Comparable getKey(int index)
getKey in interface org.jfree.data.KeyedValuespublic final int getIndex(Comparable itemKey)
getIndex in interface org.jfree.data.KeyedValuespublic final Number getValue(Comparable itemKey)
getValue in interface org.jfree.data.KeyedValuespublic final Number getValue(int index)
getValue in interface org.jfree.data.ValuesCopyright 2014-2017, Xavier Witdouck