|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectjava.util.Observable
org.ascape.util.data.DataSelection
org.ascape.util.vis.DataViewSelection
public class DataViewSelection
A group of data series which may be selected, and which provides a settable SeriesRepresentation (and other view realted features, as needed) for each element in the backing data group. Items are reachable through selection in index or directly.
| Field Summary |
|---|
| Fields inherited from class org.ascape.util.data.DataSelection |
|---|
dataGroup |
| Constructor Summary | |
|---|---|
DataViewSelection()
|
|
| Method Summary | |
|---|---|
SeriesRepresentation |
getSelectedSeriesView(int index)
Return the seriesView for the selected series at the supplied index. |
SeriesRepresentation |
getSeriesView(int index)
Return the seriesView for the series at the supplied index. |
SeriesRepresentation |
getSeriesView(java.lang.String name)
Return the seriesView for the series with the given name in the data group. |
void |
setSelectedSeriesView(int index,
SeriesRepresentation seriesView)
Sets the seriesView for the selected series at the supplied index to the supplied seriesView. |
void |
setSeriesView(java.lang.String name,
SeriesRepresentation seriesView)
Sets the seriesView for the named series to the supplied seriesView. |
void |
update()
Updates the selection in response to a change in the data group. |
| Methods inherited from class org.ascape.util.data.DataSelection |
|---|
clearSelection, clone, getData, getIndexOfSelectedIndex, getMax, getMin, getSelectedIndexOf, getSelectedName, getSelectedSeries, getSelectedSeries, getSelectedSeriesData, getSelectionSize, isSelected, isSelected, selectAll, setData, setSelected, setSelected, setSelected, update |
| Methods inherited from class java.util.Observable |
|---|
addObserver, clearChanged, countObservers, deleteObserver, deleteObservers, hasChanged, notifyObservers, notifyObservers, setChanged |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public DataViewSelection()
| Method Detail |
|---|
public void update()
update in class DataSelectionpublic SeriesRepresentation getSeriesView(java.lang.String name)
name - the name of the series within the data group
public void setSeriesView(java.lang.String name,
SeriesRepresentation seriesView)
name - the name of the series within the data groupseriesView - the seriesView to assign to the seriespublic SeriesRepresentation getSeriesView(int index)
index - the index of the series within the data grouppublic SeriesRepresentation getSelectedSeriesView(int index)
index - the index of the series within the selection
public void setSelectedSeriesView(int index,
SeriesRepresentation seriesView)
index - the index of the series within the selectionseriesView - the seriesView to assign to the series
|
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||