public class ApiPlanePlotter extends Object implements SinePlot.PlanePlotter
EnvPlanePlotter
implementation instead.
This approach however gives compile-time type-checking of the
plot parameters.Constructor and Description |
---|
ApiPlanePlotter() |
Modifier and Type | Method and Description |
---|---|
PlotDisplay<?,?> |
createPlotComponent(StarTable table,
boolean dataMayChange)
Creates a JComponent holding a plot of the data in the first two
columns of the supplied table.
|
public PlotDisplay<?,?> createPlotComponent(StarTable table, boolean dataMayChange) throws InterruptedException, IOException
SinePlot.PlanePlotter
The dataMayChange
parameter is used to determine
whether the plot positions should be cached or not for repaints,
either as required by Swing move/resize actions or
as the result of the user navigating around the plot.
It's always safe to set it true, but if the data is static,
setting it false will give better performance.
createPlotComponent
in interface SinePlot.PlanePlotter
table
- table to plotdataMayChange
- true if the table data may change during
the lifetime of the plotInterruptedException
IOException
Copyright © 2024 Central Laboratory of the Research Councils. All Rights Reserved.