public class GuiCoordContent extends Object
dataLabels
and colDatas
arrays both
correspond to (and have the same array size as) the
Inputs
arrays for the coord.CoordPanel
Constructor and Description |
---|
GuiCoordContent(uk.ac.starlink.ttools.plot2.data.Coord coord,
String[] dataLabels,
uk.ac.starlink.table.ColumnData[] colDatas,
uk.ac.starlink.table.DomainMapper[] domainMappers)
Constructor.
|
Modifier and Type | Method and Description |
---|---|
uk.ac.starlink.table.ColumnData[] |
getColDatas()
Returns the column data objects for user input variables.
|
uk.ac.starlink.ttools.plot2.data.Coord |
getCoord()
Returns the coordinate definition.
|
static String |
getCoordLabel(String userCoordName,
GuiCoordContent[] contents)
Utility method to interrogate a list of GuiCoordContent objects
to get a suitable coordinate label (for instance for use as an
axis label) for one of the coordinates in a plot.
|
static uk.ac.starlink.ttools.plot2.task.CoordSpec[] |
getCoordSpecs(GuiCoordContent[] contents)
Utility method to generate a mapping from user coordinate names
to their string specifications, given a set of GuiCoordContents.
|
String[] |
getDataLabels()
Returns the labels describing user input variables.
|
uk.ac.starlink.table.DomainMapper[] |
getDomainMappers()
Returns the domain mapper objects corresponding to the user input
variables.
|
public GuiCoordContent(uk.ac.starlink.ttools.plot2.data.Coord coord, String[] dataLabels, uk.ac.starlink.table.ColumnData[] colDatas, uk.ac.starlink.table.DomainMapper[] domainMappers)
coord
- plot coordinate definitiondataLabels
- array of strings naming quantities
for the user variables constituting the coord value;
these are typically the values typed in by the usercolDatas
- array of column data arrays supplying values
for the user variables constituting the coord valuedomainMappers
- array of DomainMappers used to decode values
from the user variablespublic uk.ac.starlink.ttools.plot2.data.Coord getCoord()
public String[] getDataLabels()
public uk.ac.starlink.table.ColumnData[] getColDatas()
public uk.ac.starlink.table.DomainMapper[] getDomainMappers()
public static uk.ac.starlink.ttools.plot2.task.CoordSpec[] getCoordSpecs(GuiCoordContent[] contents)
contents
- objects specifying selected coordinate valuesLayerCommand.getInputValues()
public static String getCoordLabel(String userCoordName, GuiCoordContent[] contents)
userCoordName
- user input coordinate namecontents
- list of GuiCoordContent values associated
with a plot; null is permitted, and will give
a null resultuserCoordName
for plots generated by this control,
or null if no result is foundCoord.getInputs()
Copyright © 2003-2025 CCLRC: Council for the Central Laboratory of the Research Councils. All Rights Reserved.