public class IlvChartFitAction extends IlvChartAction
IlvChartFitAction is created, it registers an
internal, private event listener with the chart axis so that the action
can automatically enable and disable itself appropriately. If, at a later
time, you want to remove the action from the user interface and have it
garbage-collected, you will need to explicitly call its IlvChartAction.setChart(ilog.views.chart.IlvChart)
method with a null argument to detach the action from the chart, hence
removing itself from the listener list.changeSupport, enabledACCELERATOR_KEY, ACTION_COMMAND_KEY, DEFAULT, DISPLAYED_MNEMONIC_INDEX_KEY, LARGE_ICON_KEY, LONG_DESCRIPTION, MNEMONIC_KEY, NAME, SELECTED_KEY, SHORT_DESCRIPTION, SMALL_ICON| Constructor and Description |
|---|
IlvChartFitAction(String name)
Creates a new
IlvChartFitAction with the specified name. |
IlvChartFitAction(String name,
Icon icon)
Creates a new
IlvChartFitAction with the specified name
and icon. |
IlvChartFitAction(String name,
Icon icon,
KeyStroke accelerator)
Creates a new
IlvChartFitAction with the specified name,
icon and accelerator. |
IlvChartFitAction(String name,
Icon icon,
KeyStroke accelerator,
String shortDescription,
String longDescription)
Creates a new
IlvChartFitAction. |
| Modifier and Type | Method and Description |
|---|---|
void |
actionPerformed(ActionEvent event)
Called when an action occurred.
|
protected void |
attach()
Called when the action has been attached to a new chart.
|
protected void |
computeEnabled()
Called when a change occurs on the axis to refresh the enabled property.
|
protected void |
detach()
Called when the action is about to be detached from its associated chart.
|
getAccelerator, getAcceleratorText, getChart, getCoordinateSystem, getIcon, getLongDescription, getShortDescription, getXAxis, getYAxis, getYAxisIndex, setAccelerator, setChart, setIcon, setIcon, setLongDescription, setShortDescription, setYAxisIndexaddPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabledpublic IlvChartFitAction(String name)
IlvChartFitAction with the specified name.public IlvChartFitAction(String name, Icon icon)
IlvChartFitAction with the specified name
and icon.public IlvChartFitAction(String name, Icon icon, KeyStroke accelerator)
IlvChartFitAction with the specified name,
icon and accelerator.public IlvChartFitAction(String name, Icon icon, KeyStroke accelerator, String shortDescription, String longDescription)
IlvChartFitAction.name - The name of the action. If the action is added to a JMenu,
the name will be used as the menu item text. If the action is added to a
JToolBar, the name will be used as the button text.icon - The action optional icon.accelerator - The action optional keyboard accelerator.shortDescription - The action optional short description.
If not null, this text will be typically used for tooltips.longDescription - The action optional long description.
If not null, this text will be typically used for display in a status bar.protected void attach()
attach in class IlvChartActionprotected void detach()
detach in class IlvChartActionprotected void computeEnabled()
computeEnabled in class IlvChartActionIlvChartAction.setChart(ilog.views.chart.IlvChart)public void actionPerformed(ActionEvent event)
© Copyright Rogue Wave Software, Inc. 1997, 2017. All Rights Reserved.