fable.python.views
Class PythonPlotView

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.python.views.PythonPlotView
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 PythonPlotView
extends org.eclipse.ui.part.ViewPart

PythonPlotArrayView plots a python array as a 1d plot. It uses the fast JLChart to draw the chart. Values can be plotted on the Y1 or Y2 axes. A clear button lets the user clear all the plots.

Author:
Andy Gotz

Field Summary
static java.lang.String ID
           
static PythonPlotView view
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
PythonPlotView()
          Initiate the super class and get a local copy of the logger.
 
Method Summary
 void clearAllPlots()
          Clear all plots
 void createChart()
          Create the JLChart and initialise it with default settings e.g.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
          Create the View part.
 void plotArray(java.lang.String _arrayName, float[] _arrayData)
          plot data
 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 PythonPlotView view
Constructor Detail

PythonPlotView

public PythonPlotView()
Initiate the super class and get a local copy of the logger.

Method Detail

createPartControl

public void createPartControl(org.eclipse.swt.widgets.Composite parent)
Create the View part. (non-Javadoc)

Specified by:
createPartControl in interface org.eclipse.ui.IWorkbenchPart
Specified by:
createPartControl in class org.eclipse.ui.part.WorkbenchPart
See Also:
WorkbenchPart.createPartControl(org.eclipse.swt.widgets.Composite)

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 the JLChart and initialise it with default settings e.g. autoscale etc.


plotArray

public void plotArray(java.lang.String _arrayName,
                      float[] _arrayData)
plot data

Parameters:
_name - - name of array to plot
data - - data to plot

clearAllPlots

public void clearAllPlots()
Clear all plots