com.androidplot.data
Interface Dataset

All Known Subinterfaces:
BarDataset, XYDataset

public interface Dataset

The base interface for data sets.

All datasets must support the DatasetChangeEvent mechanism by allowing listeners to register and receive notification of any changes to the dataset.


Nested Class Summary
static class Dataset.DomainOrder
           
 
Method Summary
 boolean addChangeListener(DatasetChangeListener listener)
          Registers an object for notification of changes to this dataset.
 Dataset.DomainOrder getDomainOrder()
          Returns the order of the domain (or X) values returned by the dataset.
 void readLock()
          Places a read lock on data model.
 void readUnlock()
          Release the read lock on the data model
 boolean removeChangeListener(DatasetChangeListener listener)
          Deregisters an object for notification of changes to this dataset.
 

Method Detail

getDomainOrder

Dataset.DomainOrder getDomainOrder()
Returns the order of the domain (or X) values returned by the dataset. Currently unused.

Returns:
The order (never null).

addChangeListener

boolean addChangeListener(DatasetChangeListener listener)
Registers an object for notification of changes to this dataset.

Parameters:
listener - the object to register.

removeChangeListener

boolean removeChangeListener(DatasetChangeListener listener)
Deregisters an object for notification of changes to this dataset.

Parameters:
listener - the object to deregister.

readLock

void readLock()
Places a read lock on data model. Simultanous read locks should be permitted. Consider using java.util.concurrent.locks.ReentrantReadWriteLock as your synch model.


readUnlock

void readUnlock()
Release the read lock on the data model



Copyright © 2010. All Rights Reserved.