public class TopcatModelInfo extends Object
An instance of this class doesn't tell you anthing that you can't find out from the TopcatModel itself, but the process of obtaining the summary information required to construct it may be somewhat time-consuming, so constructing an instance of this class and passing it to all the known ActivationType instances allows that summarisation work to be done only once.
Modifier and Type | Method and Description |
---|---|
boolean |
columnHasFlag(int icol,
ColFlag flag)
Indicates whether a given column has been marked as having
a particular characteristic.
|
static TopcatModelInfo |
createInfo(TopcatModel tcModel)
Constructs a TopcatModelInfo instance from a TopcatModel.
|
Suitability |
getSkySuitability()
Returns a standard suitability type for activation types
that require only or mainly sky coordinates.
|
TopcatModel |
getTopcatModel()
Returns the TopcatModel which this object is describing.
|
Suitability |
getUrlSuitability()
Returns a standard suitability type for activation types
that require only or mainly a URL column.
|
boolean |
tableHasFlag(ColFlag flag)
Indicates whether a particular characteristic has been marked
on at least one of the columns in this table.
|
boolean |
tableHasSkyCoords()
Indicates whether the table has been determined to contain sky
coordinates.
|
public TopcatModel getTopcatModel()
public boolean columnHasFlag(int icol, ColFlag flag)
icol
- column index; refers to the TableColumnModel at
the construction time of this objectflag
- characteristic typepublic boolean tableHasFlag(ColFlag flag)
flag
- characteristic typepublic boolean tableHasSkyCoords()
public Suitability getUrlSuitability()
public Suitability getSkySuitability()
public static TopcatModelInfo createInfo(TopcatModel tcModel)
Note that the 'apparent' table is used for assessment. That means firstly that, since the table rows and columns may change, the information should be used right away and not cached for later use, and secondly that this method should be invoked on the Event Dispatch Thread.
tcModel
- topcat modelCopyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.