fable.framework.imageprint
Class JLChartActions
java.lang.Object
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
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 |
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
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.
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