Class SpatialEvents
java.lang.Object
com.eco.bio7.spatial.SpatialEvents
This class offers static methods to detect custom mouse and key events in the
Spatial panel of Bio7.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected static com.jogamp.newt.event.MouseEventprotected static com.jogamp.newt.event.MouseEventprotected static com.jogamp.newt.event.MouseEventprotected static booleanprotected static com.jogamp.newt.event.KeyEventprotected static booleanprotected static com.jogamp.newt.event.KeyEventprotected static booleanprotected static com.jogamp.newt.event.KeyEventprotected static booleanprotected static booleanprotected static booleanprotected static booleanprotected static com.jogamp.newt.event.MouseEventprotected static booleanprotected static com.jogamp.newt.event.MouseEventprotected static booleanprotected static com.jogamp.newt.event.MouseEventprotected static booleanprotected static booleanprotected static booleanprotected static com.jogamp.newt.event.MouseEventprotected static booleanprotected static com.jogamp.newt.event.MouseEventprotected static com.jogamp.newt.event.MouseEventprotected static booleanprotected static com.jogamp.newt.event.MouseEventprotected static com.jogamp.newt.event.MouseEvent -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.KeyEventThis method returns a KeyEvent instance for the specified event.static com.jogamp.newt.event.KeyEventThis method returns a KeyEvent instance for the specified event.static com.jogamp.newt.event.KeyEventThis method returns a KeyEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseWheelEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static com.jogamp.newt.event.MouseEventThis method returns a MouseEvent instance for the specified event.static booleanThis method returns the boolean value true if the specified key event occurred.static booleanThis method returns the boolean value true if the specified key event occurred.static booleanThis method returns the boolean value true if the specified key event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.static booleanThis method returns the boolean value true if the specified mouse wheel event occurred.static booleanThis method returns the boolean value true if the specified mouse event occurred.protected static voidsetClickEvent(com.jogamp.newt.event.MouseEvent clickEvent) protected static voidsetDoubleClickEvent(com.jogamp.newt.event.MouseEvent doubleClickEvent) protected static voidsetDragEvent(com.jogamp.newt.event.MouseEvent dragEvent) protected static voidsetKeyPressed(boolean keyPressed) protected static voidsetKeyPressEvent(com.jogamp.newt.event.KeyEvent keyEvent) protected static voidsetKeyReleased(boolean keyReleased) protected static voidsetKeyReleaseEvent(com.jogamp.newt.event.KeyEvent keyReleaseEvent) protected static voidsetKeyTyped(boolean keyTyped) protected static voidsetKeyTypedEvent(com.jogamp.newt.event.KeyEvent keyTypedEvent) protected static voidsetMouseClicked(boolean mouseClicked) protected static voidsetMouseDoubleClicked(boolean mouseDoubleClicked) protected static voidsetMouseDragged(boolean mouseDragged) protected static voidsetMouseEntered(boolean mouseEntered) protected static voidsetMouseEnteredEvent(com.jogamp.newt.event.MouseEvent mouseEnteredEvent) protected static voidsetMouseExited(boolean mouseExited) protected static voidsetMouseExitedEvent(com.jogamp.newt.event.MouseEvent mouseExitedEvent) protected static voidsetMouseMoved(boolean mouseMoved) protected static voidsetMouseMoveEvent(com.jogamp.newt.event.MouseEvent mouseMoveEvent) protected static voidsetMousePressed(boolean mousePressed) protected static voidsetMouseTripleClicked(boolean mouseTripleClicked) protected static voidsetMouseWheelClicked(boolean mouseWheelClicked) protected static voidsetMouseWheelEvent(com.jogamp.newt.event.MouseEvent mouseWheelEvent) protected static voidsetMouseWheelMoved(boolean mouseWheelMoved) protected static voidsetPressEvent(com.jogamp.newt.event.MouseEvent pressEvent) protected static voidsetRightClickEvent(com.jogamp.newt.event.MouseEvent rightClickEvent) protected static voidsetRightMouseClicked(boolean rightMouseClicked) protected static voidsetTripleClickEvent(com.jogamp.newt.event.MouseEvent tripleClickEvent) protected static voidsetWheelClickEvent(com.jogamp.newt.event.MouseEvent wheelClickEvent)
-
Field Details
-
mouseDragged
protected static boolean mouseDragged -
dragEvent
protected static com.jogamp.newt.event.MouseEvent dragEvent -
mousePressed
protected static boolean mousePressed -
pressEvent
protected static com.jogamp.newt.event.MouseEvent pressEvent -
mouseClicked
protected static boolean mouseClicked -
clickEvent
protected static com.jogamp.newt.event.MouseEvent clickEvent -
rightMouseClicked
protected static boolean rightMouseClicked -
rightClickEvent
protected static com.jogamp.newt.event.MouseEvent rightClickEvent -
mouseWheelClicked
protected static boolean mouseWheelClicked -
wheelClickEvent
protected static com.jogamp.newt.event.MouseEvent wheelClickEvent -
mouseDoubleClicked
protected static boolean mouseDoubleClicked -
doubleClickEvent
protected static com.jogamp.newt.event.MouseEvent doubleClickEvent -
mouseTripleClicked
protected static boolean mouseTripleClicked -
tripleClickEvent
protected static com.jogamp.newt.event.MouseEvent tripleClickEvent -
mouseWheelMoved
protected static boolean mouseWheelMoved -
mouseWheelEvent
protected static com.jogamp.newt.event.MouseEvent mouseWheelEvent -
mouseMoved
protected static boolean mouseMoved -
mouseMoveEvent
protected static com.jogamp.newt.event.MouseEvent mouseMoveEvent -
keyPressed
protected static boolean keyPressed -
keyPressEvent
protected static com.jogamp.newt.event.KeyEvent keyPressEvent -
mouseEntered
protected static boolean mouseEntered -
mouseEnteredEvent
protected static com.jogamp.newt.event.MouseEvent mouseEnteredEvent -
mouseExited
protected static boolean mouseExited -
mouseExitedEvent
protected static com.jogamp.newt.event.MouseEvent mouseExitedEvent -
keyReleased
protected static boolean keyReleased -
keyReleaseEvent
protected static com.jogamp.newt.event.KeyEvent keyReleaseEvent -
keyTyped
protected static boolean keyTyped -
keyTypedEvent
protected static com.jogamp.newt.event.KeyEvent keyTypedEvent
-
-
Constructor Details
-
SpatialEvents
public SpatialEvents()
-
-
Method Details
-
getDragEvent
public static com.jogamp.newt.event.MouseEvent getDragEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setDragEvent
protected static void setDragEvent(com.jogamp.newt.event.MouseEvent dragEvent) -
isMouseWheelMoved
public static boolean isMouseWheelMoved()This method returns the boolean value true if the specified mouse wheel event occurred.- Returns:
- a boolean value.
-
setMouseWheelMoved
protected static void setMouseWheelMoved(boolean mouseWheelMoved) -
getMouseWheelEvent
public static com.jogamp.newt.event.MouseEvent getMouseWheelEvent()This method returns a MouseWheelEvent instance for the specified event.- Returns:
- a MouseWheelEvent instance.
-
setMouseWheelEvent
protected static void setMouseWheelEvent(com.jogamp.newt.event.MouseEvent mouseWheelEvent) -
isMouseClicked
public static boolean isMouseClicked()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseClicked
protected static void setMouseClicked(boolean mouseClicked) -
getClickEvent
public static com.jogamp.newt.event.MouseEvent getClickEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setClickEvent
protected static void setClickEvent(com.jogamp.newt.event.MouseEvent clickEvent) -
isMouseDragged
public static boolean isMouseDragged()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseDragged
protected static void setMouseDragged(boolean mouseDragged) -
isMousePressed
public static boolean isMousePressed()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMousePressed
protected static void setMousePressed(boolean mousePressed) -
getPressEvent
public static com.jogamp.newt.event.MouseEvent getPressEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setPressEvent
protected static void setPressEvent(com.jogamp.newt.event.MouseEvent pressEvent) -
isMouseDoubleClicked
public static boolean isMouseDoubleClicked()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseDoubleClicked
protected static void setMouseDoubleClicked(boolean mouseDoubleClicked) -
getDoubleClickEvent
public static com.jogamp.newt.event.MouseEvent getDoubleClickEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setDoubleClickEvent
protected static void setDoubleClickEvent(com.jogamp.newt.event.MouseEvent doubleClickEvent) -
isRightMouseClicked
public static boolean isRightMouseClicked()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setRightMouseClicked
protected static void setRightMouseClicked(boolean rightMouseClicked) -
getRightClickEvent
public static com.jogamp.newt.event.MouseEvent getRightClickEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setRightClickEvent
protected static void setRightClickEvent(com.jogamp.newt.event.MouseEvent rightClickEvent) -
isMouseMoved
public static boolean isMouseMoved()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseMoved
protected static void setMouseMoved(boolean mouseMoved) -
getMouseMoveEvent
public static com.jogamp.newt.event.MouseEvent getMouseMoveEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setMouseMoveEvent
protected static void setMouseMoveEvent(com.jogamp.newt.event.MouseEvent mouseMoveEvent) -
isMouseEntered
public static boolean isMouseEntered()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseEntered
protected static void setMouseEntered(boolean mouseEntered) -
getMouseEnteredEvent
public static com.jogamp.newt.event.MouseEvent getMouseEnteredEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setMouseEnteredEvent
protected static void setMouseEnteredEvent(com.jogamp.newt.event.MouseEvent mouseEnteredEvent) -
isMouseExited
public static boolean isMouseExited()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseExited
protected static void setMouseExited(boolean mouseExited) -
getMouseExitedEvent
public static com.jogamp.newt.event.MouseEvent getMouseExitedEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setMouseExitedEvent
protected static void setMouseExitedEvent(com.jogamp.newt.event.MouseEvent mouseExitedEvent) -
isMouseTripleClicked
public static boolean isMouseTripleClicked()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseTripleClicked
protected static void setMouseTripleClicked(boolean mouseTripleClicked) -
getTripleClickEvent
public static com.jogamp.newt.event.MouseEvent getTripleClickEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setTripleClickEvent
protected static void setTripleClickEvent(com.jogamp.newt.event.MouseEvent tripleClickEvent) -
isMouseWheelClicked
public static boolean isMouseWheelClicked()This method returns the boolean value true if the specified mouse event occurred.- Returns:
- a boolean value.
-
setMouseWheelClicked
protected static void setMouseWheelClicked(boolean mouseWheelClicked) -
getWheelClickEvent
public static com.jogamp.newt.event.MouseEvent getWheelClickEvent()This method returns a MouseEvent instance for the specified event.- Returns:
- a MouseEvent instance.
-
setWheelClickEvent
protected static void setWheelClickEvent(com.jogamp.newt.event.MouseEvent wheelClickEvent) -
isKeyPressed
public static boolean isKeyPressed()This method returns the boolean value true if the specified key event occurred.- Returns:
- a boolean value.
-
setKeyPressed
protected static void setKeyPressed(boolean keyPressed) -
getKeyPressEvent
public static com.jogamp.newt.event.KeyEvent getKeyPressEvent()This method returns a KeyEvent instance for the specified event.- Returns:
- a KeyEvent instance.
-
setKeyPressEvent
protected static void setKeyPressEvent(com.jogamp.newt.event.KeyEvent keyEvent) -
isKeyReleased
public static boolean isKeyReleased()This method returns the boolean value true if the specified key event occurred.- Returns:
- a boolean value.
-
setKeyReleased
protected static void setKeyReleased(boolean keyReleased) -
getKeyReleaseEvent
public static com.jogamp.newt.event.KeyEvent getKeyReleaseEvent()This method returns a KeyEvent instance for the specified event.- Returns:
- a KeyEvent instance.
-
setKeyReleaseEvent
protected static void setKeyReleaseEvent(com.jogamp.newt.event.KeyEvent keyReleaseEvent) -
isKeyTyped
public static boolean isKeyTyped()This method returns the boolean value true if the specified key event occurred.- Returns:
- a boolean value.
-
setKeyTyped
protected static void setKeyTyped(boolean keyTyped) -
getKeyTypedEvent
public static com.jogamp.newt.event.KeyEvent getKeyTypedEvent()This method returns a KeyEvent instance for the specified event.- Returns:
- a KeyEvent instance.
-
setKeyTypedEvent
protected static void setKeyTypedEvent(com.jogamp.newt.event.KeyEvent keyTypedEvent)
-