fable.imageviewer.views
Class LineView

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.LineView
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 LineView
extends org.eclipse.ui.part.ViewPart

The ZoomLineView class implements an eclipse view for plotting a user selected cut in an image. It uses the fast 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 ZoomLineView.

Author:
Andy Gotz

Field Summary
 SampleController controller
           
static java.lang.String ID
           
static LineView view
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
LineView()
           
 
Method Summary
 void createChart()
          create an empty chart
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 void setData(java.lang.String title, java.lang.String xTitle, boolean xInverted, float[] pixel, java.lang.String yTitle, float[] intensity)
          Remove the previous plot, set the new data to plot, 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, 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

ID

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

view

public static LineView view

controller

public SampleController controller
Constructor Detail

LineView

public LineView()
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()
create an empty chart


setData

public void setData(java.lang.String title,
                    java.lang.String xTitle,
                    boolean xInverted,
                    float[] pixel,
                    java.lang.String yTitle,
                    float[] intensity)
Remove the previous plot, set the new data to plot, and display it as a line plot.

Parameters:
title - Title to display with plot.
xTitle - Label for x axis.
xInverted - Whether to invert the x axis.
pixel - x values.
yTitle - Label for y axis.
intensity - Intensity to plot as f(x).

dispose

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