public class PlotDialogProvider
extends java.lang.Object
Constructor and Description |
---|
PlotDialogProvider() |
Modifier and Type | Method and Description |
---|---|
java.util.List<IPlot> |
getAllPlots()
Gets all plots that were created by the dialog.
|
IPlot |
getSelectedPlot()
Gets the plot created from the selected visualization service.
|
IVizService |
getSelectedService()
Gets the service used to create the plot.
|
int |
openDialog(org.eclipse.swt.widgets.Shell shell,
java.net.URI uri)
If there are multiple visualization services available that can create
plots for the specified file, this presents a dialog allowing the user to
select the preferred service.
|
public java.util.List<IPlot> getAllPlots()
public IPlot getSelectedPlot()
null
if the dialog was cancelled or
there was no viz service that could create a plot.public IVizService getSelectedService()
public int openDialog(org.eclipse.swt.widgets.Shell shell, java.net.URI uri)
Otherwise, a dialog is not presented if there is no viz service or only one available for the specified URI.
The plot created by the selected visualization service can be retrieved
by calling getSelectedPlot()
.
shell
- The parent shell on which to open the dialog.uri
- The URI of the file that needs a plot.Window.OK
, then at least one
plot is available or was selected. Otherwise (
Window.CANCEL
), no plot was selected.