Package org.dawb.workbench.ui.editors
Class PlotDataEditor
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.EditorPart
org.dawb.workbench.ui.editors.PlotDataEditor
- All Implemented Interfaces:
ITitledEditor,org.eclipse.core.runtime.IAdaptable,org.eclipse.core.runtime.IExecutableExtension,ISelectedPlotting,ISlicablePlottingPart,org.eclipse.ui.IEditorPart,org.eclipse.ui.IReusableEditor,org.eclipse.ui.ISaveablePart,org.eclipse.ui.IWorkbenchPart,org.eclipse.ui.IWorkbenchPart2,org.eclipse.ui.IWorkbenchPart3,org.eclipse.ui.part.IWorkbenchPartOrientation
public class PlotDataEditor
extends org.eclipse.ui.part.EditorPart
implements org.eclipse.ui.IReusableEditor, ISlicablePlottingPart, ITitledEditor, ISelectedPlotting
An editor which combines a plot with a graph of data sets.
-
Field Summary
Fields inherited from interface org.eclipse.ui.IEditorPart
PROP_DIRTY, PROP_INPUTFields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE -
Constructor Summary
ConstructorsConstructorDescriptionPlotDataEditor(PlotType defaultPlotType) PlotDataEditor(PlotType defaultPlotType, ITitledEditor parent) -
Method Summary
Modifier and TypeMethodDescriptionvoidcreatePartControl(org.eclipse.swt.widgets.Composite parent) createPlotSeparateAxes(org.eclipse.january.dataset.IDataset x, Map<Integer, List<org.eclipse.january.dataset.IDataset>> ysMap, Map<Integer, List<String>> dNameMap, org.eclipse.core.runtime.IProgressMonitor monitor) voidCall to change plot default by looking at datavoiddispose()voiddoSave(org.eclipse.core.runtime.IProgressMonitor monitor) voiddoSaveAs()getAdapter(Class clazz) protected voidgetAxisSettings(String propertyStub, IAxis axis) IPlottingSystem<org.eclipse.swt.widgets.Composite> IPlottingSystem<org.eclipse.swt.widgets.Composite> voidinit(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) booleanisDirty()booleanvoidsetAll1DSelected(boolean overide) Method used to select all 1D plots in the order they are extracted.protected voidsetAxisSettings(String propertyStub, IAxis axis) voidsetFocus()voidsetInput(org.eclipse.ui.IEditorInput input) voidsetPartTitle(String name) voidsetToolbarsVisible(boolean isVisible) toString()voidupdatePlot(ITransferableDataObject[] selections, ISliceSystem sliceSystem, boolean useTask) Must be called in UI threadMethods inherited from class org.eclipse.ui.part.EditorPart
checkSite, getEditorInput, getEditorSite, getTitleToolTip, isSaveOnCloseNeeded, setContentDescription, setInitializationData, setInputWithNotify, setPartNameMethods inherited from class org.eclipse.ui.part.WorkbenchPart
addPartPropertyListener, addPropertyListener, firePartPropertyChanged, firePropertyChange, getConfigurationElement, getContentDescription, getDefaultImage, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, removePartPropertyListener, removePropertyListener, setPartProperty, setSite, setTitle, setTitleImage, setTitleToolTip, showBusyMethods inherited from class org.eclipse.core.commands.common.EventManager
addListenerObject, clearListeners, getListeners, isListenerAttached, removeListenerObjectMethods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.ui.IEditorPart
getEditorInput, getEditorSiteMethods inherited from interface org.eclipse.ui.ISaveablePart
isSaveOnCloseNeededMethods inherited from interface org.eclipse.ui.IWorkbenchPart
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
-
Constructor Details
-
PlotDataEditor
-
PlotDataEditor
-
-
Method Details
-
init
public void init(org.eclipse.ui.IEditorSite site, org.eclipse.ui.IEditorInput input) throws org.eclipse.ui.PartInitException - Specified by:
initin interfaceorg.eclipse.ui.IEditorPart- Specified by:
initin classorg.eclipse.ui.part.EditorPart- Throws:
org.eclipse.ui.PartInitException
-
getSelected
- Specified by:
getSelectedin interfaceISelectedPlotting
-
isDirty
public boolean isDirty()- Specified by:
isDirtyin interfaceorg.eclipse.ui.ISaveablePart- Specified by:
isDirtyin classorg.eclipse.ui.part.EditorPart
-
setToolbarsVisible
public void setToolbarsVisible(boolean isVisible) -
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent) - Specified by:
createPartControlin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
createPartControlin classorg.eclipse.ui.part.WorkbenchPart
-
setAxisSettings
-
getAxisSettings
-
createPlotTypeDefaultFromData
public void createPlotTypeDefaultFromData()Call to change plot default by looking at data -
updatePlot
public void updatePlot(ITransferableDataObject[] selections, ISliceSystem sliceSystem, boolean useTask) Must be called in UI thread- Specified by:
updatePlotin interfaceISlicablePlottingPart- Parameters:
selections-useTask-
-
createPlotSeparateAxes
-
setInput
public void setInput(org.eclipse.ui.IEditorInput input) - Specified by:
setInputin interfaceorg.eclipse.ui.IReusableEditor- Overrides:
setInputin classorg.eclipse.ui.part.EditorPart
-
setAll1DSelected
public void setAll1DSelected(boolean overide) Method used to select all 1D plots in the order they are extracted. If overide then current selected plots will be ignored. -
setFocus
public void setFocus()- Specified by:
setFocusin interfaceorg.eclipse.ui.IWorkbenchPart- Specified by:
setFocusin classorg.eclipse.ui.part.WorkbenchPart
-
doSave
public void doSave(org.eclipse.core.runtime.IProgressMonitor monitor) - Specified by:
doSavein interfaceorg.eclipse.ui.ISaveablePart- Specified by:
doSavein classorg.eclipse.ui.part.EditorPart
-
doSaveAs
public void doSaveAs()- Specified by:
doSaveAsin interfaceorg.eclipse.ui.ISaveablePart- Specified by:
doSaveAsin classorg.eclipse.ui.part.EditorPart
-
isSaveAsAllowed
public boolean isSaveAsAllowed()- Specified by:
isSaveAsAllowedin interfaceorg.eclipse.ui.ISaveablePart- Specified by:
isSaveAsAllowedin classorg.eclipse.ui.part.EditorPart
-
dispose
public void dispose()- Specified by:
disposein interfaceorg.eclipse.ui.IWorkbenchPart- Overrides:
disposein classorg.eclipse.ui.part.WorkbenchPart
-
getDataSetComponent
-
getSliceComponent
-
getPlotWindow
-
getPlottingSystem
-
getAdapter
- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classorg.eclipse.ui.part.WorkbenchPart
-
toString
-
setPartTitle
- Specified by:
setPartTitlein interfaceITitledEditor
-