public class ScrollTimelineAction extends AbstractTimelineAction
Modifier and Type | Class and Description |
---|---|
static class |
ScrollTimelineAction.ScrollDirection
Lists the possible directions.
|
timeline
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 |
---|
ScrollTimelineAction(Timeline timeline,
ScrollTimelineAction.ScrollDirection dir,
boolean fast)
Constructs a new action.
|
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(ActionEvent e) |
ScrollTimelineAction.ScrollDirection |
getDirection()
Returns the scrolling direction defined on this action.
|
boolean |
isFast()
Determines whether the scrolling will be slow or fast.
|
getTimeline, setTimeline
getToolTipText, setToolTipText
addPropertyChangeListener, clone, firePropertyChange, getKeys, getPropertyChangeListeners, getValue, isEnabled, putValue, removePropertyChangeListener, setEnabled
public ScrollTimelineAction(Timeline timeline, ScrollTimelineAction.ScrollDirection dir, boolean fast)
Timeline.scrollLeft(boolean)
and
Timeline.scrollRight(boolean)
.timeline
- the timeline that will be scrolled.dir
- the direction into which to scrollfast
- a flag indicating whether the scrolling should be fast or slowpublic void actionPerformed(ActionEvent e)
public ScrollTimelineAction.ScrollDirection getDirection()
public boolean isFast()
Copyright © 2006–2016 Dirk Lemmermann Software & Consulting. All rights reserved.