info.monitorenter.gui.chart.events
Class Chart2DActionSaveImageSingleton
java.lang.Object
javax.swing.AbstractAction
info.monitorenter.gui.chart.events.AChart2DAction
info.monitorenter.gui.chart.events.Chart2DActionSaveImageSingleton
- All Implemented Interfaces:
- ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
public final class Chart2DActionSaveImageSingleton
- extends AChart2DAction
Singleton Action
that saves the current chart to an image at the location
specified by showing a modal file chooser save dialog.
Only one instance per target component may exist.
- Version:
- $Revision: 1.6 $
- Author:
- Achim Westermann
- See Also:
Chart2DActionSetCustomGridColor
,
Serialized Form
getInstance
public static Chart2DActionSaveImageSingleton getInstance(Chart2D chart,
String actionName)
- Returns the single instance for the given component, potentially creating it.
If an instance for the given component had been created the description String is ignored.
- Parameters:
chart
- the target the action will work onactionName
- the descriptive String
that will be displayed by
AbstractButton
subclasses that get this Action
assigned ( AbstractButton.setAction(javax.swing.Action)
).
- Returns:
- the single instance for the given component.
actionPerformed
public void actionPerformed(ActionEvent e)
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
propertyChange
public void propertyChange(PropertyChangeEvent evt)
- See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
Copyright © 2001 - 2007 LGPL, All Rights Footloose.