com.levigo.jadice.swing.pageview
Class MouseWheelZoomTool
java.lang.Object
com.levigo.jadice.swing.tool.Tool
com.levigo.jadice.swing.pageview.MouseWheelZoomTool
- All Implemented Interfaces:
- MenuContributor
public class MouseWheelZoomTool
- extends Tool
MouseWheelZoomTool.java
- Author:
- Carolin Koehler
Methods inherited from class com.levigo.jadice.swing.tool.Tool |
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 |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
MouseWheelZoomTool
public MouseWheelZoomTool()
handleMouseWheelMoved
protected void handleMouseWheelMoved(MouseWheelEditEvent e,
boolean isActive)
- Description copied from class:
Tool
- Invoked when the mouse wheel is rotated.
- Overrides:
handleMouseWheelMoved
in class Tool
isActive
- whether this tool is currently active- See Also:
MouseWheelEvent
getDispatchPriority
protected int getDispatchPriority()
- Description copied from class:
Tool
- Return the dispatch priority for this tool. Tools with higher dispatch priorities receive
events earlier than tools with lower priorities.
The priority should be in the range
Tool.MIN_PRIORITY
...Tool.MAX_PRIORITY
.
The default priority is equal to Tool.MAX_PRIORITY
minus the render priority.
- Overrides:
getDispatchPriority
in class Tool
- Returns:
- the dispatch priority
getScrollDivisor
public int getScrollDivisor()
- Get the scroll divisor. The scroll divisor is used to scale the mouse scroll amount into a
factor by which the zoom factor is calculated.
- Returns:
- the scrollDivisor
setScrollDivisor
public void setScrollDivisor(int scrollDivisor)
- Set the scroll divisor. The scroll divisor is used to scale the mouse scroll amount into a
factor by which the zoom factor is calculated.
- Parameters:
scrollDivisor
- the scrollDivisor to set
getMinZoomFactor
public float getMinZoomFactor()
setMinZoomFactor
public void setMinZoomFactor(float minZoomFactor)
getMaxZoomFactor
public float getMaxZoomFactor()
setMaxZoomFactor
public void setMaxZoomFactor(float maxZoomFactor)
setModifierMask
public void setModifierMask(int modifierMask)
getModifierMask
public int getModifierMask()