fable.framework.ui.views
Class ColumnFilePlotView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
fable.framework.ui.views.ColumnFilePlotView
- All Implemented Interfaces:
- java.util.EventListener, org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, org.eclipse.jface.util.IPropertyChangeListener, org.eclipse.ui.IPersistable, org.eclipse.ui.IViewPart, org.eclipse.ui.IWorkbenchPart, org.eclipse.ui.IWorkbenchPart2, org.eclipse.ui.IWorkbenchPart3, org.eclipse.ui.part.IWorkbenchPartOrientation
public class ColumnFilePlotView
- extends org.eclipse.ui.part.ViewPart
- implements org.eclipse.jface.util.IPropertyChangeListener
ColumnFilePlotView will create a view with an xy plot of a columnfile. A
columnfile is a file containing columns of data to plot in ascii format.
Columnfiles are produced by many Fable programs e.g. by ImageD11 and PolyXSim
for example. The view is very simple, all the work is done in the
ColFileXYPlot class. The view can load a new file, and listen for changes to
a ColumnFile.
- Author:
- Andy Gotz + Gaelle Suchet
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Methods inherited from class org.eclipse.ui.part.ViewPart |
getViewSite, init, init, saveState, setInitializationData |
Methods inherited from class org.eclipse.ui.part.WorkbenchPart |
addPartPropertyListener, addPropertyListener, getAdapter, getContentDescription, getOrientation, getPartName, getPartProperties, getPartProperty, getSite, getTitle, getTitleImage, getTitleToolTip, removePartPropertyListener, removePropertyListener, setPartProperty, showBusy |
Methods inherited from class java.lang.Object |
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Methods inherited from interface org.eclipse.ui.IWorkbenchPart |
addPropertyListener, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener |
Methods inherited from interface org.eclipse.core.runtime.IAdaptable |
getAdapter |
view
public static ColumnFilePlotView view
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
viewCount
public static int viewCount
ColumnFilePlotView
public ColumnFilePlotView()
createPartControl
public void createPartControl(org.eclipse.swt.widgets.Composite parent)
- Specified by:
createPartControl
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
createPartControl
in class org.eclipse.ui.part.WorkbenchPart
dispose
public void dispose()
- Specified by:
dispose
in interface org.eclipse.ui.IWorkbenchPart
- Overrides:
dispose
in class org.eclipse.ui.part.WorkbenchPart
setFocus
public void setFocus()
- Specified by:
setFocus
in interface org.eclipse.ui.IWorkbenchPart
- Specified by:
setFocus
in class org.eclipse.ui.part.WorkbenchPart
getxyPlot
public ColFileXYPlot getxyPlot()
- Returns:
- The ColFileXYPlot.
addData
public void addData(float[] x)
- This has been made for transform, add unit cell peaks
openColumnFile
public void openColumnFile(java.lang.String fileName)
- open a new column file and add it to the list of column files to plot
- Parameters:
fileName
- - name of column file
setColumnFile
public void setColumnFile(ColumnFile _columnFile)
- set column file and add it to the plot
- Parameters:
_columnFile
- - new column file
browseColumnFile
public void browseColumnFile()
propertyChange
public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
- listen for property change events fired by the Column File
- Specified by:
propertyChange
in interface org.eclipse.jface.util.IPropertyChangeListener
saveAs
public void saveAs()