public class IlvScrollToTimeIndicatorAction extends IlvAction
IlvScrollToTimeIndicatorAction
class implements an action that will
scroll to a specific IlvTimeIndicator
for the specified
IlvGanttSheet
. The action keeps the same displayed duration
but changes the time interval so that the IlvTimeIndicator
is in the center.changeSupport, enabled
ACCELERATOR_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 |
---|
IlvScrollToTimeIndicatorAction(IlvGanttSheet ganttSheet,
IlvTimeIndicator timeIndicator,
String name,
Icon icon,
KeyStroke accelerator,
String shortDescription,
String longDescription)
Creates an
IlvScrollToTimeIndicatorAction for the specified
IlvGanttSheet object. |
IlvScrollToTimeIndicatorAction(IlvGanttSheet ganttSheet,
IlvTimeIndicator timeIndicator,
String name,
KeyStroke accelerator,
String shortDescription,
String longDescription)
Creates an
IlvScrollToTimeIndicatorAction for the specified
IlvGanttSheet object with a default icon. |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e)
Performs the scroll to
IlvTimeIndicator action
on the IlvGanttSheet object. |
IlvTimeIndicator |
getTimeIndicator()
Returns the target time indicator.
|
void |
setTimeIndicator(IlvTimeIndicator timeIndicator)
Sets the target time indicator.
|
getAccelerator, getAcceleratorText, getIcon, getLongDescription, getMnemonic, getName, getShortDescription, setAccelerator, setIcon, setIcon, setLongDescription, setMnemonic, setName, setShortDescription
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public IlvScrollToTimeIndicatorAction(IlvGanttSheet ganttSheet, IlvTimeIndicator timeIndicator, String name, KeyStroke accelerator, String shortDescription, String longDescription)
IlvScrollToTimeIndicatorAction
for the specified
IlvGanttSheet
object with a default icon.ganttSheet
- The Gantt sheet on which the action works.timeIndicator
- The time indicator to scroll to.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.accelerator
- The action's optional keyboard accelerator.shortDescription
- The action's optional short description. This
text, if not null
, will be typically used for
tooltips.longDescription
- The action's optional long description. This
text, if not null
, will be typically used for
display in a status bar.public IlvScrollToTimeIndicatorAction(IlvGanttSheet ganttSheet, IlvTimeIndicator timeIndicator, String name, Icon icon, KeyStroke accelerator, String shortDescription, String longDescription)
IlvScrollToTimeIndicatorAction
for the specified
IlvGanttSheet
object.ganttSheet
- The Gantt sheet on which the action works.timeIndicator
- The time indicator to scroll to.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.accelerator
- The action's optional keyboard accelerator.shortDescription
- The action's optional short description. This
text, if not null
, will be typically used for
tooltips.longDescription
- The action's optional long description. This
text, if not null
, will be typically used for
display in a status bar.public IlvTimeIndicator getTimeIndicator()
setTimeIndicator(ilog.views.gantt.graphic.IlvTimeIndicator)
public void setTimeIndicator(IlvTimeIndicator timeIndicator)
timeIndicator
- The target time indicator.getTimeIndicator()
public void actionPerformed(ActionEvent e)
IlvTimeIndicator
action
on the IlvGanttSheet
object.e
- The ActionEvent
.© Copyright 2024 Rogue Wave Software, Inc., a Perforce company.. All Rights Reserved.