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
Action
that invokes
upon selection by the triggeringChart2D.setUseAntialiasing(boolean)
.AbstractButton
Also this
will track the stateAction
as 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.SelectionPropertyAdaptSupport
Caution
This implementation only works if assigned to a trigger that descends fromAbstractButton
(e.g.JCheckBoxMenuItem
orJRadioButtonMenuItem
): 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 anAction
that will invoke
with the state of the triggeringChart2D.enablePointHighlighting(boolean)
ItemSelectable
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
actionPerformed(java.awt.event.ActionEvent e)
void
propertyChange(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 anAction
that will invoke
with the state of the triggeringChart2D.enablePointHighlighting(boolean)
ItemSelectable
- Parameters:
chart
- the owner of the axis to trigger actions upon.description
- the descriptiveString
that will be displayed byAbstractButton
subclasses that get thisAction
assigned (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)
-
-