Class 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

      Constructors 
      Constructor Description
      ProgressDataStoreFactory​(uk.ac.starlink.ttools.plot2.data.DataStoreFactory baseFact, javax.swing.BoundedRangeModel progModel)
      Constructor.
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      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,
                                        javax.swing.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 java.io.IOException
        Specified by:
        createRowSequence in class uk.ac.starlink.ttools.plot2.data.WrapperDataStoreFactory
        Throws:
        java.io.IOException