org.ascape.util.vis
Class DataViewSelection

java.lang.Object
  extended by java.util.Observable
      extended by org.ascape.util.data.DataSelection
          extended by org.ascape.util.vis.DataViewSelection
All Implemented Interfaces:
java.io.Serializable, java.lang.Cloneable, java.util.Observer

public class DataViewSelection
extends DataSelection

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.

Since:
1.0
Version:
1.2
Author:
Miles Parker
See Also:
Serialized Form

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

DataViewSelection

public DataViewSelection()
Method Detail

update

public void update()
Updates the selection in response to a change in the data group.

Overrides:
update in class DataSelection

getSeriesView

public SeriesRepresentation getSeriesView(java.lang.String name)
Return the seriesView for the series with the given name in the data group.

Parameters:
name - the name of the series within the data group

setSeriesView

public void setSeriesView(java.lang.String name,
                          SeriesRepresentation seriesView)
Sets the seriesView for the named series to the supplied seriesView.

Parameters:
name - the name of the series within the data group
seriesView - the seriesView to assign to the series

getSeriesView

public SeriesRepresentation getSeriesView(int index)
Return the seriesView for the series at the supplied index.

Parameters:
index - the index of the series within the data group

getSelectedSeriesView

public SeriesRepresentation getSelectedSeriesView(int index)
Return the seriesView for the selected series at the supplied index.

Parameters:
index - the index of the series within the selection

setSelectedSeriesView

public void setSelectedSeriesView(int index,
                                  SeriesRepresentation seriesView)
Sets the seriesView for the selected series at the supplied index to the supplied seriesView.

Parameters:
index - the index of the series within the selection
seriesView - the seriesView to assign to the series


Copyright © 1998-2008 The Brookings Institution, NuTech Solutions, Metascape, LLC All Rights Reserved.