public class MouseWheelTool extends Tool
Tool.ActivationRequest
DEFAULT_PRIORITY, MAX_PRIORITY, MIN_PRIORITY
Constructor and Description |
---|
MouseWheelTool() |
Modifier and Type | Method and Description |
---|---|
protected int |
getDispatchPriority()
Return the dispatch priority for this tool.
|
protected void |
handleMouseWheelMoved(MouseWheelEditEvent e,
boolean isActive)
Invoked when the mouse wheel is rotated.
|
boolean |
isBrowsePages()
Return whether to skip to the previous/next page if scrolling occurs while already scrolled to
the top/bottom and using a single-page or spread layout.
|
void |
setBrowsePages(boolean browsePages)
Set whether to skip to the previous/next page if scrolling occurs while already scrolled to the
top/bottom and using a single-page or spread layout.
|
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getManager, getRenderPriority, handleEditEvent, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseClicked, handleMouseDragged, handleMouseEntered, handleMouseExited, handleMouseMoved, handleMousePressed, handleMouseReleased, propagatePropertyChange, render, setActive, setCursor, setEnabled, setManager, setStatusFeedback
protected void handleMouseWheelMoved(MouseWheelEditEvent e, boolean isActive)
Tool
handleMouseWheelMoved
in class Tool
isActive
- whether this tool is currently activeMouseWheelEvent
protected int getDispatchPriority()
Tool
Tool.MIN_PRIORITY
...Tool.MAX_PRIORITY
.
The default priority is equal to Tool.MAX_PRIORITY
minus the render priority.getDispatchPriority
in class Tool
public boolean isBrowsePages()
true
, if skipping will be performed, false
otherwisepublic void setBrowsePages(boolean browsePages)
browsePages
- true
, if skipping should be performed, false
otherwiseCopyright © 2024 levigo holding gmbh. All rights reserved.