Package uk.ac.starlink.topcat.plot2
Class TablePlotDisplay
java.lang.Object
uk.ac.starlink.topcat.plot2.TablePlotDisplay
Opens a plot window with access to a table that can be supplied
without loading it into the TOPCAT application.
This table can be replaced, and the plot will update accordingly.
It works best if the replacement tables are all similar in structure.
- Since:
- 10 May 2018
- Author:
- Mark Taylor
-
Constructor Summary
ConstructorsConstructorDescriptionTablePlotDisplay
(Component parent, PlotWindowType plotType, String tableLabel, boolean isVisibleOnPlot) Constructor. -
Method Summary
Modifier and TypeMethodDescriptionReturns the plot window type for this display.StackPlotWindow<?,
?> Returns the plot window currently in use by this display.void
showPlotWindow
(uk.ac.starlink.table.StarTable table) Displays a plot window with access to a given unloaded table.
-
Constructor Details
-
TablePlotDisplay
public TablePlotDisplay(Component parent, PlotWindowType plotType, String tableLabel, boolean isVisibleOnPlot) Constructor.- Parameters:
parent
- parent componentplotType
- type of plot window to opentableLabel
- label for unloaded table as presented to userisVisibleOnPlot
- if true, the plot window is forcibly set visible every time the plot is displayed
-
-
Method Details
-
showPlotWindow
public void showPlotWindow(uk.ac.starlink.table.StarTable table) Displays a plot window with access to a given unloaded table. If a plot window already exists, it is reused and the table is inserted into it as a replacement for the one used last time.- Parameters:
table
- table to display
-
getPlotWindowType
Returns the plot window type for this display.- Returns:
- plot window type
-
getWindow
Returns the plot window currently in use by this display. If no display has so far been made, this may be null.- Returns:
- plot window, may be null
-