Package mgui.interfaces.tools
Class ToolInputEvent
java.lang.Object
java.util.EventObject
mgui.interfaces.tools.ToolInputEvent
- All Implemented Interfaces:
java.io.Serializable
- Direct Known Subclasses:
ToolMouseEvent
public class ToolInputEvent
extends java.util.EventObject
Event signifying that input has been detected and must be handled by a
Tool
object.- Since:
- 1.0
- Version:
- 1.0
- Author:
- Andrew Reid
- See Also:
- Serialized Form
-
Field Summary
Fields Modifier and Type Field Description protected boolean
ctrl_pressed
protected java.awt.Point
eventPoint
protected int
eventType
protected double
eventVal
protected int
keyInputVal
protected boolean
shift_pressed
Fields inherited from class java.util.EventObject
source
-
Constructor Summary
Constructors Constructor Description ToolInputEvent(java.lang.Object object)
ToolInputEvent(InterfacePanel panel)
ToolInputEvent(InterfacePanel panel, int type, int keyInputVal)
ToolInputEvent(InterfacePanel panel, int type, java.awt.Point thisPt)
ToolInputEvent(InterfacePanel panel, int type, java.awt.Point thisPt, boolean ctrl_pressed, boolean shift_pressed)
ToolInputEvent(org.jogamp.java3d.Canvas3D panel, int type, java.awt.Point thisPt)
-
Method Summary
Modifier and Type Method Description int
getEventType()
int
getKeyInputVal()
java.awt.Point
getPoint()
double
getVal()
boolean
isCtrlPressed()
boolean
isShiftPressed()
void
setKeyInputVal(int thisVal)
void
setVal(double thisVal)
Methods inherited from class java.util.EventObject
getSource, toString
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
eventType
protected int eventType -
eventPoint
protected java.awt.Point eventPoint -
eventVal
protected double eventVal -
keyInputVal
protected int keyInputVal -
ctrl_pressed
protected boolean ctrl_pressed -
shift_pressed
protected boolean shift_pressed
-
-
Constructor Details
-
ToolInputEvent
public ToolInputEvent(java.lang.Object object) -
ToolInputEvent
-
ToolInputEvent
-
ToolInputEvent
public ToolInputEvent(InterfacePanel panel, int type, java.awt.Point thisPt, boolean ctrl_pressed, boolean shift_pressed) -
ToolInputEvent
public ToolInputEvent(org.jogamp.java3d.Canvas3D panel, int type, java.awt.Point thisPt) -
ToolInputEvent
-
-
Method Details
-
getEventType
public int getEventType() -
getPoint
public java.awt.Point getPoint() -
getVal
public double getVal() -
setVal
public void setVal(double thisVal) -
getKeyInputVal
public int getKeyInputVal() -
setKeyInputVal
public void setKeyInputVal(int thisVal) -
isShiftPressed
public boolean isShiftPressed() -
isCtrlPressed
public boolean isCtrlPressed()
-