Class SimplePositionCoordPanel
java.lang.Object
uk.ac.starlink.topcat.plot2.BasicCoordPanel
uk.ac.starlink.topcat.plot2.SimplePositionCoordPanel
- All Implemented Interfaces:
CoordPanel, PositionCoordPanel
- Direct Known Subclasses:
MatrixPositionCoordPanel
Simple implementation of a PositionCoordPanel.
It only deals with a single, fixed, DataGeom.
- Since:
- 13 Mar 2013
- Author:
- Mark Taylor
-
Nested Class Summary
Nested classes/interfaces inherited from class BasicCoordPanel
BasicCoordPanel.CoordStack -
Constructor Summary
ConstructorsConstructorDescriptionSimplePositionCoordPanel(uk.ac.starlink.ttools.plot2.data.Coord[] coords, uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] configKeys, BasicCoordPanel.CoordStack stack, uk.ac.starlink.ttools.plot2.DataGeom geom) Constructs a CoordPanel for selecting Coords and Config values.SimplePositionCoordPanel(uk.ac.starlink.ttools.plot2.data.Coord[] coords, uk.ac.starlink.ttools.plot2.DataGeom geom) Constructs a panel for selecting just Coords. -
Method Summary
Modifier and TypeMethodDescriptionstatic SimplePositionCoordPanelcreatePanel(uk.ac.starlink.ttools.plot2.DataGeom geom, int npos, CoordSpotter[] spotters) Constructs a position coord panel based on a given DataGeom.uk.ac.starlink.ttools.plot2.DataGeomReturns the position geometry that defines the mapping of input to data coordinates.Methods inherited from class BasicCoordPanel
addActionListener, addButtons, autoPopulate, createDefaultStack, getActionForwarder, getAdditionalManagedCoords, getColumnSelector, getComponent, getConfig, getConfigSpecifier, getContents, getCoords, getInfos, getStack, getTable, isPreferredCoord, multiplyCoords, populate, removeActionListener, setColumnSelector, setTableMethods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface CoordPanel
addActionListener, getAdditionalManagedCoords, getColumnSelector, getComponent, getConfig, getConfigSpecifier, getContents, getCoords, removeActionListener, setTableMethods inherited from interface PositionCoordPanel
getExtraTabs
-
Constructor Details
-
SimplePositionCoordPanel
public SimplePositionCoordPanel(uk.ac.starlink.ttools.plot2.data.Coord[] coords, uk.ac.starlink.ttools.plot2.DataGeom geom) Constructs a panel for selecting just Coords.- Parameters:
coords- coordinate definitions for which values are requiredgeom- fixed data geom
-
SimplePositionCoordPanel
public SimplePositionCoordPanel(uk.ac.starlink.ttools.plot2.data.Coord[] coords, uk.ac.starlink.ttools.plot2.config.ConfigKey<?>[] configKeys, BasicCoordPanel.CoordStack stack, uk.ac.starlink.ttools.plot2.DataGeom geom) Constructs a CoordPanel for selecting Coords and Config values.- Parameters:
coords- coordinate definitions for which values are requiredconfigKeys- config value keysstack- coord stack implementationgeom- fixed data geom
-
-
Method Details
-
getDataGeom
public uk.ac.starlink.ttools.plot2.DataGeom getDataGeom()Description copied from interface:PositionCoordPanelReturns the position geometry that defines the mapping of input to data coordinates.- Specified by:
getDataGeomin interfacePositionCoordPanel- Returns:
- data geom
-
createPanel
public static SimplePositionCoordPanel createPanel(uk.ac.starlink.ttools.plot2.DataGeom geom, int npos, CoordSpotter[] spotters) Constructs a position coord panel based on a given DataGeom. A given number of groups of the positional coordinates defined by the DataGeom are shown.- Parameters:
geom- provides description of positional coordinatesnpos- number of positional groups to include
-