Package jspecview.app
Class GenericMouse
java.lang.Object
jspecview.app.GenericMouse
- All Implemented Interfaces:
GenericMouseInterface
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected booleanprotected JSVPanelprotected intprotected EventManagerprotected intprotected int -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionprotected static intapplyLeftMouse(int modifiers) voidclear()protected voidclicked(long time, int x, int y, int modifiers, int clickCount) voiddispose()protected voiddragged(long time, int x, int y, int modifiers) protected voidentered(long time, int x, int y) protected voidexited(long time, int x, int y) voidkeyPressed(KeyEvent ke) voidkeyReleased(KeyEvent ke) voidvoidvoidvoidvoidvoidvoidvoidvoidprotected voidmoved(long time, int x, int y, int modifiers) protected voidpressed(long time, int x, int y, int modifiers, boolean isPopupTrigger) booleanprocessEvent(int id, int x, int y, int modifiers, long time) voidprocessKeyEvent(Object event) voidprocessTwoPointGesture(float[][][] touches) protected voidreleased(long time, int x, int y, int modifiers) protected voidwheeled(long time, int rotation, int modifiers)
-
Field Details
-
pd
-
jsvp
-
xWhenPressed
protected int xWhenPressed -
yWhenPressed
protected int yWhenPressed -
modifiersWhenPressed10
protected int modifiersWhenPressed10 -
isMouseDown
protected boolean isMouseDown
-
-
Constructor Details
-
GenericMouse
-
-
Method Details
-
clear
public void clear()- Specified by:
clearin interfaceGenericMouseInterface
-
processEvent
public boolean processEvent(int id, int x, int y, int modifiers, long time) - Specified by:
processEventin interfaceGenericMouseInterface
-
mouseEntered
-
mouseExited
-
mouseMoved
-
mousePressed
-
mouseDragged
-
mouseReleased
-
mouseClicked
-
mouseWheelMoved
-
keyTyped
-
keyPressed
-
keyReleased
-
processKeyEvent
- Specified by:
processKeyEventin interfaceGenericMouseInterface
-
entered
protected void entered(long time, int x, int y) -
exited
protected void exited(long time, int x, int y) -
clicked
protected void clicked(long time, int x, int y, int modifiers, int clickCount) - Parameters:
time-x-y-modifiers-clickCount-
-
moved
protected void moved(long time, int x, int y, int modifiers) -
wheeled
protected void wheeled(long time, int rotation, int modifiers) -
pressed
protected void pressed(long time, int x, int y, int modifiers, boolean isPopupTrigger) - Parameters:
time-x-y-modifiers-isPopupTrigger-
-
released
protected void released(long time, int x, int y, int modifiers) -
dragged
protected void dragged(long time, int x, int y, int modifiers) -
applyLeftMouse
protected static int applyLeftMouse(int modifiers) -
processTwoPointGesture
public void processTwoPointGesture(float[][][] touches) - Specified by:
processTwoPointGesturein interfaceGenericMouseInterface
-
dispose
public void dispose()- Specified by:
disposein interfaceGenericMouseInterface
-