fable.framework.imageprint
Class JLChartActions

java.lang.Object
  extended by fable.framework.imageprint.JLChartActions

public class JLChartActions
extends java.lang.Object

A class to provide some actions for a JLChart. Note that if the associated chart changes, then the current one must be set into this class.

Author:
evans

Field Summary
 org.eclipse.jface.action.Action copyAction
           
 org.eclipse.jface.action.Action printAction
           
 org.eclipse.jface.action.Action printPreviewAction
           
 org.eclipse.jface.action.Action printSetupAction
           
 
Constructor Summary
JLChartActions(org.eclipse.swt.widgets.Display display, fr.esrf.tangoatk.widget.util.chart.JLChart chart)
          Constructor.
 
Method Summary
 java.awt.image.BufferedImage getAWTChartImage()
          Makes a new AWT BufferedImage from the chart.
 fr.esrf.tangoatk.widget.util.chart.JLChart getChart()
           
 org.eclipse.swt.graphics.Image getSWTChartImage()
          Makes an SWT Image from the chart.
 void setChart(fr.esrf.tangoatk.widget.util.chart.JLChart chart)
           
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

printSetupAction

public org.eclipse.jface.action.Action printSetupAction

printPreviewAction

public org.eclipse.jface.action.Action printPreviewAction

printAction

public org.eclipse.jface.action.Action printAction

copyAction

public org.eclipse.jface.action.Action copyAction
Constructor Detail

JLChartActions

public JLChartActions(org.eclipse.swt.widgets.Display display,
                      fr.esrf.tangoatk.widget.util.chart.JLChart chart)
Constructor.

Parameters:
display - The display associated with the chart.
chart - The chart. Note that if the associated chart changes, then the current one must be set into this class.
Method Detail

getAWTChartImage

public java.awt.image.BufferedImage getAWTChartImage()
Makes a new AWT BufferedImage from the chart.

Returns:
The BufferedImage.

getSWTChartImage

public org.eclipse.swt.graphics.Image getSWTChartImage()
Makes an SWT Image from the chart.

Returns:
The Image. It must be disposed after use.

getChart

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

setChart

public void setChart(fr.esrf.tangoatk.widget.util.chart.JLChart chart)
Parameters:
chart - the chart to set