Class Chart2DActionEnableAntialiasing
- java.lang.Object
-
- javax.swing.AbstractAction
-
- info.monitorenter.gui.chart.events.AChart2DAction
-
- info.monitorenter.gui.chart.events.Chart2DActionEnableAntialiasing
-
- All Implemented Interfaces:
java.awt.event.ActionListener,java.beans.PropertyChangeListener,java.io.Serializable,java.lang.Cloneable,java.util.EventListener,javax.swing.Action
public class Chart2DActionEnableAntialiasing extends AChart2DAction
Actionthat invokesupon selection by the triggeringChart2D.setUseAntialiasing(boolean).AbstractButtonAlso this
will track the stateActionas a listener of the chart and inform all listeners of this action for the eventChart2D.isUseAntialiasing()with the new state. To listen to this action just have a look at the usage ofLayoutFactory.PropertyChangeCheckBoxMenuItem.PROPERTY_SELECTED.LayoutFactory.SelectionPropertyAdaptSupportCaution
This implementation only works if assigned to a trigger that descends fromAbstractButton(e.g.JCheckBoxMenuItemorJRadioButtonMenuItem): It assumes that the source instance given toactionPerformed(ActionEvent)within the action event is of that type as the state information (selected) is needed.- Version:
- $Revision: 1.3 $
- Author:
- Achim Westermann
- See Also:
- Serialized Form
-
-
Field Summary
-
Fields inherited from class info.monitorenter.gui.chart.events.AChart2DAction
m_chart
-
-
Constructor Summary
Constructors Constructor Description Chart2DActionEnableAntialiasing(Chart2D chart, java.lang.String description)Creates anActionthat will invokewith the state of the triggeringChart2D.enablePointHighlighting(boolean)ItemSelectable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voidactionPerformed(java.awt.event.ActionEvent e)voidpropertyChange(java.beans.PropertyChangeEvent evt)-
Methods inherited from class javax.swing.AbstractAction
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
-
-
-
-
Constructor Detail
-
Chart2DActionEnableAntialiasing
public Chart2DActionEnableAntialiasing(Chart2D chart, java.lang.String description)
Creates anActionthat will invokewith the state of the triggeringChart2D.enablePointHighlighting(boolean)ItemSelectable- Parameters:
chart- the owner of the axis to trigger actions upon.description- the descriptiveStringthat will be displayed byAbstractButtonsubclasses that get thisActionassigned (AbstractButton.setAction(javax.swing.Action)).
-
-
Method Detail
-
actionPerformed
public void actionPerformed(java.awt.event.ActionEvent e)
- See Also:
ActionListener.actionPerformed(java.awt.event.ActionEvent)
-
propertyChange
public void propertyChange(java.beans.PropertyChangeEvent evt)
- See Also:
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
-
-