Class PeakFittingTool
java.lang.Object
org.eclipse.ui.part.Page
org.eclipse.dawnsci.plotting.api.tool.AbstractToolPage
org.dawnsci.plotting.tools.fitting.AbstractFittingTool
org.dawnsci.plotting.tools.fitting.PeakFittingTool
- All Implemented Interfaces:
EventListener,org.eclipse.core.runtime.IAdaptable,IRegionListener,IToolPage,org.eclipse.ui.part.IPage,org.eclipse.ui.part.IPageBookViewPage
-
Nested Class Summary
Nested classes/interfaces inherited from class org.dawnsci.plotting.tools.fitting.AbstractFittingTool
AbstractFittingTool.FittingJobNested classes/interfaces inherited from interface org.eclipse.dawnsci.plotting.api.region.IRegionListener
IRegionListener.StubNested classes/interfaces inherited from interface org.eclipse.dawnsci.plotting.api.tool.IToolPage
IToolPage.ToolPageRole -
Field Summary
Fields inherited from class org.dawnsci.plotting.tools.fitting.AbstractFittingTool
algorithmMessage, composite, dataReduction, fitRegion, fittedFunctions, fittingJob, selectedTraces, sliceMetadata, tracesMenu, viewer -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected voidWe use the old actions here for simplicity of configuration.protected List<org.eclipse.jface.viewers.TableViewerColumn> createColumns(org.eclipse.jface.viewers.TableViewer viewer) Implement method to provide colums with information on the type of fit being done.protected voidcreateFittedFunctionUI(FittedFunctions newBean) Thread safeexportFittedData(String path) getAdapter(Class key) Default does nothingprotected Stringprotected FittedFunctionsgetFittedFunctions(FittedPeaksInfo fittedPeaksInfo) This method will be implemented to return any data which is defined by the tool and may be used elsewhere.Methods inherited from class org.dawnsci.plotting.tools.fitting.AbstractFittingTool
activate, clearAll, createControl, createNewFit, deactivate, dispose, getControl, getFitBounds, getSortedFunctionList, getTableColumnSortListener, getToolPageRole, regionAdded, regionCancelled, regionCreated, regionNameChanged, regionRemoved, regionsRemoved, setAddingPeaks, setFitBounds, setFittedFunctions, setFocus, sync, updateTracesChoiceMethods inherited from class org.eclipse.dawnsci.plotting.api.tool.AbstractToolPage
cloneTool, createToolInDedicatedView, createToolPageActions, equals, getCheatSheetId, getImageDescriptor, getImageTrace, getLinkedToolPage, getLinkedToolPlot, getPaletteTrace, getPart, getPlottingSystem, getStackTrace, getSurfaceTrace, getTitle, getToolId, getToolPlottingSystem, getToolSystem, getTrace, getUniqueId, getViewPart, getWindowTrace, hashCode, isActive, isAlwaysSeparateView, isDedicatedView, isDisposed, isLinkedToolPage, isStaticTool, setCheatSheetId, setData, setImageDescriptor, setPart, setPlottingSystem, setTitle, setToolData, setToolId, setToolSystem, setViewPart, toStringMethods inherited from class org.eclipse.ui.part.Page
getSite, init, makeContributions, setActionBarsMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, waitMethods inherited from interface org.eclipse.ui.part.IPage
setActionBarsMethods inherited from interface org.eclipse.ui.part.IPageBookViewPage
getSite, initMethods inherited from interface org.eclipse.dawnsci.plotting.api.region.IRegionListener
regionAdded, regionCancelled, regionCreated, regionNameChanged, regionRemoved, regionsRemoved
-
Constructor Details
-
PeakFittingTool
public PeakFittingTool()
-
-
Method Details
-
createColumns
protected List<org.eclipse.jface.viewers.TableViewerColumn> createColumns(org.eclipse.jface.viewers.TableViewer viewer) Description copied from class:AbstractFittingToolImplement method to provide colums with information on the type of fit being done.- Specified by:
createColumnsin classAbstractFittingTool- Parameters:
viewer-
-
getFittedFunctions
- Specified by:
getFittedFunctionsin classAbstractFittingTool- Parameters:
fittedPeaksInfo-- Returns:
- Throws:
Exception
-
getToolData
Description copied from interface:IToolPageThis method will be implemented to return any data which is defined by the tool and may be used elsewhere. By default the AbstractToolPage will return null and many tools will return null unless they have been specifically altered to encapsulate and return their data.- Specified by:
getToolDatain interfaceIToolPage- Overrides:
getToolDatain classAbstractFittingTool- Returns:
- data specific to tool
-
createFittedFunctionUI
Thread safe- Specified by:
createFittedFunctionUIin classAbstractFittingTool- Parameters:
newBean-peaks-
-
getAlgorithmSummary
-
createActions
protected void createActions()We use the old actions here for simplicity of configuration. TODO consider moving to commands.- Specified by:
createActionsin classAbstractFittingTool
-
getAdapter
Description copied from class:AbstractToolPageDefault does nothing- Specified by:
getAdapterin interfaceorg.eclipse.core.runtime.IAdaptable- Overrides:
getAdapterin classAbstractToolPage
-
exportFittedData
- Throws:
Exception
-