fable.imageviewer.views
Class RockingCurveView

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.imageviewer.views.RockingCurveView
All Implemented Interfaces:
org.eclipse.core.runtime.IAdaptable, org.eclipse.core.runtime.IExecutableExtension, 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 RockingCurveView
extends org.eclipse.ui.part.ViewPart

The RockingCurveView class implements an eclipse view for plotting a rocking curve of a user selected area in an image. A rocking curve is a plot of the integrated intensity of an area in an image for a series of images usually taken at different orientations of the sample. The sample orientation is normally represented by the angle "omega". It uses JLChart to do the plotting. It will plot the data set as a line. The image view gathers the user's selection and sends the data to plot to the RockingCurveView. The user can change the range of images over which to integrate and plot. Fabio is used to read the image and integrate the intensity.

Author:
goetz

Field Summary
 SampleController controller
           
static java.lang.String ID
           
 Sample sample
           
static RockingCurveView view
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
RockingCurveView()
           
 
Method Summary
 void checkRockRange()
           
 void createChart()
           
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 int Integrate()
           
 void Plot()
           
 void runIntegratePlotJob()
           
 void setCenterArea(java.lang.String _title, int center, int y1, int z1, int y2, int z2)
          Set the new area, center and sample to integrate and display it as a line 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, dispose, 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, dispose, getSite, getTitle, getTitleImage, getTitleToolTip, removePropertyListener
 
Methods inherited from interface org.eclipse.core.runtime.IAdaptable
getAdapter
 

Field Detail

ID

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

view

public static RockingCurveView view

controller

public SampleController controller

sample

public Sample sample
Constructor Detail

RockingCurveView

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

setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus in class org.eclipse.ui.part.WorkbenchPart

createChart

public void createChart()

setCenterArea

public void setCenterArea(java.lang.String _title,
                          int center,
                          int y1,
                          int z1,
                          int y2,
                          int z2)
                   throws java.lang.Throwable
Set the new area, center and sample to integrate and display it as a line plot

Parameters:
title - - title to display with plot
center - - center image
area - - area to integrate
Throws:
java.lang.Throwable

checkRockRange

public void checkRockRange()

runIntegratePlotJob

public void runIntegratePlotJob()

Integrate

public int Integrate()

Plot

public void Plot()