com.levigo.jadice.swing.lens
Class LensView.LensInputEventTool
java.lang.Object
com.levigo.jadice.swing.tool.Tool
com.levigo.jadice.swing.lens.LensView.LensInputEventTool
- All Implemented Interfaces:
- MenuContributor
- Enclosing class:
- LensView
public static final class LensView.LensInputEventTool
- extends Tool
A tool to retrieve and processes MouseEvents and KeyEvents registered by the Canvas. Currently
used for mouseMoved and mouseClicked events.
Methods inherited from class com.levigo.jadice.swing.tool.Tool |
contribute, getActivationFeedback, getActivationRequest, getActivationRequestForKeyPressed, getActivationRequestForMouseDragged, getActivationRequestForMousePressed, getCursor, getDispatchPriority, getManager, getRenderPriority, handleEditEvent, handleKeyPressed, handleKeyReleased, handleKeyTyped, handleMouseEntered, handleMouseExited, handleMousePressed, handleMouseReleased, handleMouseWheelMoved, 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 |
LensView.LensInputEventTool
public LensView.LensInputEventTool()
getLens
public LensView getLens()
setLens
public void setLens(LensView lens)
handleMouseClicked
protected void handleMouseClicked(MouseEditEvent e,
boolean isActive)
- Description copied from class:
Tool
- Invoked when the mouse button has been clicked (pressed and released) on a component.
- Overrides:
handleMouseClicked
in class Tool
isActive
- whether this tool is currently active
handleMouseDragged
protected void handleMouseDragged(MouseEditEvent e,
boolean isActive)
- Description copied from class:
Tool
- Invoked when a mouse button is pressed on a component and then dragged.
MOUSE_DRAGGED
events will continue to be delivered to the component where the drag
originated until the mouse button is released (regardless of whether the mouse position is
within the bounds of the component).
Due to platform-dependent Drag&Drop implementations, MOUSE_DRAGGED
events may
not be delivered during a native Drag&Drop operation.
- Overrides:
handleMouseDragged
in class Tool
isActive
- whether this tool is currently active
handleMouseMoved
protected void handleMouseMoved(MouseEditEvent e,
boolean isActive)
- Description copied from class:
Tool
- Invoked when the mouse cursor has been moved onto a component but no buttons have been pushed.
- Overrides:
handleMouseMoved
in class Tool
isActive
- whether this tool is currently active
Copyright © 1995-2020 levigo holding gmbh. All Rights Reserved.