uk.ac.starlink.topcat
Class PlasticStarTable

java.lang.Object
  extended by uk.ac.starlink.table.AbstractStarTable
      extended by uk.ac.starlink.table.RandomStarTable
          extended by uk.ac.starlink.table.ColumnStarTable
              extended by uk.ac.starlink.topcat.PlasticStarTable
All Implemented Interfaces:
uk.ac.starlink.table.StarTable

public class PlasticStarTable
extends uk.ac.starlink.table.ColumnStarTable

A StarTable which is initialised from an existing table but can have columns added to it. Currently, this table cannot have its number of rows changed.


Field Summary
 
Fields inherited from class uk.ac.starlink.table.ColumnStarTable
columns
 
Constructor Summary
PlasticStarTable(uk.ac.starlink.table.StarTable baseTable)
          Constructs a PlasticStarTable based on an existing StarTable object.
 
Method Summary
 void addColumn(uk.ac.starlink.table.ColumnData coldata)
           
 uk.ac.starlink.table.StarTable getBaseTable()
          Returns the StarTable table on which this PlasticStarTable is based.
 long getRowCount()
           
 void setColumn(int icol, uk.ac.starlink.table.ColumnData coldata)
           
 
Methods inherited from class uk.ac.starlink.table.ColumnStarTable
getCell, getColumnCount, getColumnData, getColumnInfo, makeTableWithRows, setCell
 
Methods inherited from class uk.ac.starlink.table.RandomStarTable
getRowSequence, isRandom
 
Methods inherited from class uk.ac.starlink.table.AbstractStarTable
checkedLongToInt, getColumnAuxDataInfos, getName, getParameterByName, getParameters, getRow, getURL, setName, setParameter, setParameters, setURL
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PlasticStarTable

public PlasticStarTable(uk.ac.starlink.table.StarTable baseTable)
Constructs a PlasticStarTable based on an existing StarTable object. The metadata are copied from the base table and ColumnData objects constructed to wrap each of its columns.

Parameters:
baseTable - the table to initialise this one from
Method Detail

getRowCount

public long getRowCount()
Specified by:
getRowCount in interface uk.ac.starlink.table.StarTable
Specified by:
getRowCount in class uk.ac.starlink.table.ColumnStarTable

addColumn

public void addColumn(uk.ac.starlink.table.ColumnData coldata)
Overrides:
addColumn in class uk.ac.starlink.table.ColumnStarTable

setColumn

public void setColumn(int icol,
                      uk.ac.starlink.table.ColumnData coldata)
Overrides:
setColumn in class uk.ac.starlink.table.ColumnStarTable

getBaseTable

public uk.ac.starlink.table.StarTable getBaseTable()
Returns the StarTable table on which this PlasticStarTable is based.

Returns:
base table


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