fable.imageviewer.views
Class HeaderPlotView

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.HeaderPlotView
All Implemented Interfaces:
fr.esrf.tangoatk.widget.util.chart.IJLChartListener, java.io.Serializable, 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 HeaderPlotView
extends org.eclipse.ui.part.ViewPart
implements org.eclipse.jface.util.IPropertyChangeListener, fr.esrf.tangoatk.widget.util.chart.IJLChartListener

This class plots header keys of selected samples in navigator. For each sample, a several plots can be done. X and Y are selected in combos. X and Y combos are loaded with current sample and its keys.

Author:
SUCHET
See Also:
Serialized Form

Field Summary
static java.lang.String ID
           
 org.eclipse.swt.widgets.Button plotDiff
           
 org.eclipse.swt.widgets.Button removeDataViewY1
           
 org.eclipse.swt.widgets.Button removeDataViewY2
           
 org.eclipse.swt.widgets.Button resetButton
           
static HeaderPlotView view
           
 
Fields inherited from interface org.eclipse.ui.IWorkbenchPart
PROP_TITLE
 
Constructor Summary
HeaderPlotView()
           
 
Method Summary
 void addDataView(Sample sample, org.eclipse.swt.widgets.Combo jlcombo, fr.esrf.tangoatk.widget.util.chart.JLAxis axis)
           
 void clearAllPlots()
          Clear all plots
 java.lang.String[] clickOnChart(fr.esrf.tangoatk.widget.util.chart.JLChartEvent e)
          Customize chart tooltip with labels.
 void createChart()
          Create the JLChart and initialise it with default settings e.g.
 void createPartControl(org.eclipse.swt.widgets.Composite parent)
           
 void dispose()
           
 fr.esrf.tangoatk.widget.util.chart.JLChart getChart()
           
 javax.swing.JApplet getChartContainer()
           
 void plotHeaderValues(java.lang.String key, Sample s)
          sample should have fabio files
 void populateListsKeys()
          Set x and y list keys with values to plot
 void propertyChange(org.eclipse.jface.util.PropertyChangeEvent evt)
           
 void removeDataViews(Sample s)
           
 void repaint()
           
 void setData(Sample sample, fr.esrf.tangoatk.widget.util.chart.JLDataView dataview)
          Set values of headers for x and y label to dataview
 void setFocus()
           
 void setSxAxisLabel(java.lang.String sxAxisLabel)
          Set x axis label
 void setSyAxisLabel(java.lang.String syAxisLabel)
          Set y axis label
 
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 HeaderPlotView view

ID

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

plotDiff

public org.eclipse.swt.widgets.Button plotDiff

resetButton

public org.eclipse.swt.widgets.Button resetButton

removeDataViewY1

public org.eclipse.swt.widgets.Button removeDataViewY1

removeDataViewY2

public org.eclipse.swt.widgets.Button removeDataViewY2
Constructor Detail

HeaderPlotView

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

createChart

public void createChart()
Create the JLChart and initialise it with default settings e.g. autoscale


setFocus

public void setFocus()
Specified by:
setFocus in interface org.eclipse.ui.IWorkbenchPart
Specified by:
setFocus 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

setData

public void setData(Sample sample,
                    fr.esrf.tangoatk.widget.util.chart.JLDataView dataview)
Set values of headers for x and y label to dataview

Parameters:
dataview -

setSyAxisLabel

public void setSyAxisLabel(java.lang.String syAxisLabel)
Set y axis label

Parameters:
syAxisLabel -

setSxAxisLabel

public void setSxAxisLabel(java.lang.String sxAxisLabel)
Set x axis label

Parameters:
sxAxisLabel -

populateListsKeys

public void populateListsKeys()
Set x and y list keys with values to plot

Parameters:
colandValues -

clearAllPlots

public void clearAllPlots()
Clear all plots


addDataView

public void addDataView(Sample sample,
                        org.eclipse.swt.widgets.Combo jlcombo,
                        fr.esrf.tangoatk.widget.util.chart.JLAxis axis)

removeDataViews

public void removeDataViews(Sample s)
Parameters:
s - remove all dataviews for this sample (Y1 and Y2 axis)

repaint

public void repaint()

getChart

public fr.esrf.tangoatk.widget.util.chart.JLChart getChart()
Returns:
this chart

getChartContainer

public javax.swing.JApplet getChartContainer()

plotHeaderValues

public void plotHeaderValues(java.lang.String key,
                             Sample s)
                      throws SampleException
sample should have fabio files

Parameters:
key -
s -
Throws:
SampleException

clickOnChart

public java.lang.String[] clickOnChart(fr.esrf.tangoatk.widget.util.chart.JLChartEvent e)
Customize chart tooltip with labels.

Specified by:
clickOnChart in interface fr.esrf.tangoatk.widget.util.chart.IJLChartListener

propertyChange

public void propertyChange(org.eclipse.jface.util.PropertyChangeEvent evt)
Specified by:
propertyChange in interface org.eclipse.jface.util.IPropertyChangeListener