public class AxisActionSetRangePolicy extends AAxisAction
IRangePolicy
to a constructor given
AAxis
.
Action
currently is only intended to bem_chart
Constructor and Description |
---|
AxisActionSetRangePolicy(Chart2D chart,
java.lang.String description,
int axis,
IRangePolicy rangePolicy)
Create an
Action that accesses the axis, identifies itself
with the given action String and sets the given
IRangePolicy to the axis upon
selection. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
propertyChange(java.beans.PropertyChangeEvent evt) |
getAxis
public AxisActionSetRangePolicy(Chart2D chart, java.lang.String description, int axis, IRangePolicy rangePolicy)
Action
that accesses the axis, identifies itself
with the given action String and sets the given
IRangePolicy
to the axis upon
selection.
chart
- the owner of the axis to trigger actions upon.axis
- needed to identify the axis of the chart: one of Chart2D.X
,
Chart2D.Y
.rangePolicy
- the range policy to set oon the axis.description
- the descriptive String
that will be displayed by
AbstractButton
subclasses that get this
Action
assigned (
AbstractButton.setAction(javax.swing.Action)
).public void actionPerformed(java.awt.event.ActionEvent e)
ActionListener.actionPerformed(java.awt.event.ActionEvent)
public void propertyChange(java.beans.PropertyChangeEvent evt)
propertyChange
in interface java.beans.PropertyChangeListener
propertyChange
in class AAxisAction
PropertyChangeListener.propertyChange(java.beans.PropertyChangeEvent)
Copyright © 2001 - 2010 LGPL, All Rights Footloose.