Class PlotWindow
java.lang.Object
uk.ac.diamond.scisoft.analysis.plotclient.ScriptingConnection
uk.ac.diamond.scisoft.analysis.rcp.plotting.AbstractPlotWindow
uk.ac.diamond.scisoft.analysis.rcp.plotting.PlotWindow
- All Implemented Interfaces:
gda.observable.IObservable,IPlotWindow
Actual PlotWindow that can be used inside a View- or EditorPart
-
Field Summary
Fields inherited from class uk.ac.diamond.scisoft.analysis.rcp.plotting.AbstractPlotWindow
bars, parentComp, plotSystemCompositeFields inherited from class uk.ac.diamond.scisoft.analysis.plotclient.ScriptingConnection
myBeanMemory, name, plotConnection, plottingSystem, roiManager -
Constructor Summary
ConstructorsConstructorDescriptionPlotWindow(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.IActionBars bars, org.eclipse.ui.IWorkbenchPart part, String name) PlotWindow(org.eclipse.swt.widgets.Composite parent, IBeanScriptingManager manager, org.eclipse.ui.IActionBars bars, org.eclipse.ui.IWorkbenchPart part, String name) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePlotControl(org.eclipse.swt.widgets.Composite composite) Create the IPlottingSystemand other controls if necessary
The IPlottingSystemshould be created the following way:
plottingSystem = PlottingFactory.createPlottingSystem();
plottingSystem.setColorOption(ColorOption.NONE);
plottingSystem.createPlotPart(parent, getName(), bars, PlotType.XY, (IViewPart) getGuiManager());
plottingSystem.repaint();
plottingSystem.addRegionListener(getRoiManager());plottingSystem.addTraceListener(getRoiManager().getTraceListener());
static IPlotWindowManagerObtain the IPlotWindowManager for the running Eclipse.Methods inherited from class uk.ac.diamond.scisoft.analysis.rcp.plotting.AbstractPlotWindow
addClearAction, addDuplicateAction, changePlotMode, dispose, getPart, isExclusiveToolars, removePreviousActions, setExclusiveToolars, setFocusMethods inherited from class uk.ac.diamond.scisoft.analysis.plotclient.ScriptingConnection
addIObserver, cleanUpPlottingSystem, clearPlot, createRegion, deleteIObserver, deleteIObservers, getAdapter, getDataBean, getGuiManager, getName, getNotififyListener, getObservers, getPlotMode, getPlottingSystem, getPlotUI, getPreviousMode, getRoiManager, isUpdatePlot, notifyUpdateFinished, processGUIUpdate, processPlotUpdate, setDataBean, setNotifyListener, setPlottingSystem, setPreviousMode, setUpdatePlot, setVisibleByPlotType, updatePlotMode, updatePlotModeMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface uk.ac.diamond.scisoft.analysis.plotclient.IPlotWindow
getName
-
Constructor Details
-
PlotWindow
public PlotWindow(org.eclipse.swt.widgets.Composite parent, org.eclipse.ui.IActionBars bars, org.eclipse.ui.IWorkbenchPart part, String name) -
PlotWindow
public PlotWindow(org.eclipse.swt.widgets.Composite parent, IBeanScriptingManager manager, org.eclipse.ui.IActionBars bars, org.eclipse.ui.IWorkbenchPart part, String name)
-
-
Method Details
-
getManager
Obtain the IPlotWindowManager for the running Eclipse.- Returns:
- singleton instance of IPlotWindowManager
-
createPlotControl
public void createPlotControl(org.eclipse.swt.widgets.Composite composite) Description copied from class:AbstractPlotWindowCreate the IPlottingSystemand other controls if necessary
The IPlottingSystemshould be created the following way:
plottingSystem = PlottingFactory.createPlottingSystem();
plottingSystem.setColorOption(ColorOption.NONE);
plottingSystem.createPlotPart(parent, getName(), bars, PlotType.XY, (IViewPart) getGuiManager());
plottingSystem.repaint();
plottingSystem.addRegionListener(getRoiManager());plottingSystem.addTraceListener(getRoiManager().getTraceListener());
- Overrides:
createPlotControlin classAbstractPlotWindow- Parameters:
composite-
-