fable.imageviewer.views
Class ProfileView
java.lang.Object
org.eclipse.core.commands.common.EventManager
org.eclipse.ui.part.WorkbenchPart
org.eclipse.ui.part.ViewPart
fable.imageviewer.views.ProfileView
- 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 ProfileView
- extends org.eclipse.ui.part.ViewPart
The ProfileView class implements an Eclipse View for plotting a user selected
x,y profile. It uses the fast JLChart to do the plotting. It will plot the
data set as two line plots. The data is set by the ImageView based on the
user selection.
- Author:
- goetz
Fields inherited from interface org.eclipse.ui.IWorkbenchPart |
PROP_TITLE |
Method Summary |
void |
createChart()
creates the XYLineChart's inside the embedded SWT_AWT frames |
void |
createPartControl(org.eclipse.swt.widgets.Composite parent)
|
void |
setData(java.lang.String title,
java.lang.String xTitle,
java.lang.String yTitle,
boolean xInverted,
boolean yInverted,
float[] pixel_x,
float[] profile_x,
float[] pixel_y,
float[] profile_y)
Set the new x and y profile data to plot and display as two XY plots |
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 |
ID
public static final java.lang.String ID
- See Also:
- Constant Field Values
view
public static ProfileView view
controller
public SampleController controller
ProfileView
public ProfileView()
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()
- creates the XYLineChart's inside the embedded SWT_AWT frames
- Parameters:
dataset1
- - dataset for plot 1dataset2
- - dataset for plot 2
setData
public void setData(java.lang.String title,
java.lang.String xTitle,
java.lang.String yTitle,
boolean xInverted,
boolean yInverted,
float[] pixel_x,
float[] profile_x,
float[] pixel_y,
float[] profile_y)
- Set the new x and y profile data to plot and display as two XY plots
- Parameters:
title
- - title to display with plotpixel_x
- - x pixel array (integers)profile_x
- - x profile to plot as f(x)pixel_y
- - y pixel array (integers)profile_y
- - y profile to plot as f(x)