uk.ac.starlink.topcat.plot2
Class ProgressDataStoreFactory

java.lang.Object
  extended by uk.ac.starlink.ttools.plot2.data.WrapperDataStoreFactory
      extended by uk.ac.starlink.topcat.plot2.ProgressDataStoreFactory
All Implemented Interfaces:
uk.ac.starlink.ttools.plot2.data.DataStoreFactory

public class ProgressDataStoreFactory
extends uk.ac.starlink.ttools.plot2.data.WrapperDataStoreFactory

DataStoreFactory wrapper which messages a progress bar model as row data is read from the tables to fill the store. The assumption is that the readDataStore method will only ever be running from one thread at a time; if not, the progress bar updates will get messy.

Since:
8 Nov 2013
Author:
Mark Taylor

Constructor Summary
ProgressDataStoreFactory(uk.ac.starlink.ttools.plot2.data.DataStoreFactory baseFact, BoundedRangeModel progModel)
          Constructor.
 
Method Summary
protected  uk.ac.starlink.table.RowSequence createRowSequence(uk.ac.starlink.table.StarTable table)
           
 
Methods inherited from class uk.ac.starlink.ttools.plot2.data.WrapperDataStoreFactory
readDataStore
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ProgressDataStoreFactory

public ProgressDataStoreFactory(uk.ac.starlink.ttools.plot2.data.DataStoreFactory baseFact,
                                BoundedRangeModel progModel)
Constructor.

Parameters:
baseFact - factory to which most behaviour is delegated
progModel - progress bar data model to be messaged
Method Detail

createRowSequence

protected uk.ac.starlink.table.RowSequence createRowSequence(uk.ac.starlink.table.StarTable table)
                                                      throws IOException
Specified by:
createRowSequence in class uk.ac.starlink.ttools.plot2.data.WrapperDataStoreFactory
Throws:
IOException


Copyright © 2003-2018 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.