info.monitorenter.gui.chart.events
Class Chart2DActionSetCustomGridColorSingleton
java.lang.Object
javax.swing.AbstractAction
info.monitorenter.gui.chart.events.AChart2DAction
info.monitorenter.gui.chart.events.Chart2DActionSetCustomGridColorSingleton
- All Implemented Interfaces:
- ActionListener, PropertyChangeListener, Serializable, Cloneable, EventListener, Action
public final class Chart2DActionSetCustomGridColorSingleton
- extends AChart2DAction
Singleton Action
that sets a custom grid color to the corresponding chart (Chart2D.setGridColor(Color)
)
by showing a modal color chooser.
Only one instance per target component may exist.
- Version:
- $Revision: 1.4 $
- Author:
- Achim Westermann
- See Also:
Chart2DActionSetCustomGridColor
,
Serialized Form
getInstance
public static Chart2DActionSetCustomGridColorSingleton getInstance(Chart2D chart,
String colorName)
- 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 oncolorName
- 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.