Class CommonMouseAdapter
java.lang.Object
com.inductiveautomation.ignition.client.util.gui.MouseAdapterEx
com.inductiveautomation.ignition.client.util.gui.CommonMouseAdapter
- All Implemented Interfaces:
- MouseListener,- MouseMotionListener,- EventListener
This mouse listener and mouse motion listener implements logic to make handling mouse drags easier. It handles logic
 such converting "trivial drags" into clicks, meaning that drags must exceed a minimum drag distance before being
 considered a "drag". It also has simple popup trigger handling and other conveniences.
- 
Field SummaryFields
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionprotected doubleThe minimum distance before a drag starts.voidvoidvoidvoidprotected voidonClick(MouseEvent event, Point point, int modifiers) protected voidonDrag(MouseEvent event, Point start, Point end, Rectangle rect, int modifiers) protected voidonDragEnd(MouseEvent event, Point start, Point end, Rectangle rect, int modifiers) protected voidonDragStart(MouseEvent event, Point start, Point end, Rectangle rect, int modifiers) protected voidonMove(MouseEvent event, Point point, int modifiers) protected voidonPopupTrigger(MouseEvent event, Point point, int modifiers) protected voidonPress(MouseEvent event, Point point, int modifiers) protected voidonRelease(MouseEvent event, Point point, int modifiers) protected booleanDetermines if this mouse event should be processed or not.Methods inherited from class com.inductiveautomation.ignition.client.util.gui.MouseAdapterExinstall, mouseClicked, mouseEntered, mouseExited, uninstall
- 
Field Details- 
MIN_DRAG_DISTpublic static final double MIN_DRAG_DIST- See Also:
 
 
- 
- 
Constructor Details- 
CommonMouseAdapterpublic CommonMouseAdapter()
 
- 
- 
Method Details- 
processDetermines if this mouse event should be processed or not. Default implementation does not process consumed mouse events
- 
getMinDragDistanceprotected double getMinDragDistance()The minimum distance before a drag starts. Default is 4.0
- 
mousePressed- Specified by:
- mousePressedin interface- MouseListener
- Overrides:
- mousePressedin class- MouseAdapterEx
 
- 
mouseReleased- Specified by:
- mouseReleasedin interface- MouseListener
- Overrides:
- mouseReleasedin class- MouseAdapterEx
 
- 
mouseMoved- Specified by:
- mouseMovedin interface- MouseMotionListener
- Overrides:
- mouseMovedin class- MouseAdapterEx
 
- 
mouseDragged- Specified by:
- mouseDraggedin interface- MouseMotionListener
- Overrides:
- mouseDraggedin class- MouseAdapterEx
 
- 
onDragStart
- 
onDrag
- 
onDragEnd
- 
onMove
- 
onPress
- 
onRelease
- 
onPopupTrigger
- 
onClick
 
-