fable.framework.ui.views
Class ColumnFilePlotView

java.lang.Object
  extended by org.eclipse.core.commands.common.EventManager
      extended by org.eclipse.ui.part.WorkbenchPart
          extended by org.eclipse.ui.part.ViewPart
              extended by 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

Field Summary
static java.lang.String ID
           
static ColumnFilePlotView view
           
static int viewCount
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
ColumnFilePlotView()
           
 
Method Summary
 void addData(float[] x)
          This has been made for transform, add unit cell peaks
 void browseColumnFile()
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 ColFileXYPlot getxyPlot()
           
 void openColumnFile(java.lang.String fileName)
          open a new column file and add it to the list of column files to plot
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent event)
          listen for property change events fired by the Column File
 void saveAs()
           
 void setColumnFile(ColumnFile _columnFile)
          set column file and add it to the plot
 void setFocus()
           
 
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
 

Field Detail

view

public static ColumnFilePlotView view

ID

public static final java.lang.String ID
See Also:
Constant Field Values

viewCount

public static int viewCount
Constructor Detail

ColumnFilePlotView

public ColumnFilePlotView()
Method Detail

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()