public class MouseTracker extends org.j3d.device.input.Tracker implements MouseListener, MouseMotionListener, MouseWheelListener
| Constructor and Description |
|---|
MouseTracker(GraphicsOutputDevice surface,
String id) |
| Modifier and Type | Method and Description |
|---|---|
void |
beginPolling()
Notification that tracker polling is beginning.
|
void |
endPolling()
Notification that tracker polling is ending.
|
int |
getActionMask()
What action types does this sensor return.
|
void |
getState(int layer,
int subLayer,
org.j3d.device.input.TrackerState state)
Get the current state of this tracker.
|
void |
mouseClicked(MouseEvent evt)
Process a mouse click event.
|
void |
mouseDragged(MouseEvent evt)
Process a mouse drag event
|
void |
mouseEntered(MouseEvent evt)
Process a mouse enter event.
|
void |
mouseExited(MouseEvent evt)
Process a mouse exited event.
|
void |
mouseMoved(MouseEvent evt)
Process a mouse movement event.
|
void |
mousePressed(MouseEvent evt)
Process a mouse press event.
|
void |
mouseReleased(MouseEvent evt)
Process a mouse release event.
|
void |
mouseWheelMoved(MouseWheelEvent mwe) |
public MouseTracker(GraphicsOutputDevice surface, String id)
public int getActionMask()
getActionMask in class org.j3d.device.input.Trackerpublic void beginPolling()
beginPolling in class org.j3d.device.input.Trackerpublic void endPolling()
endPolling in class org.j3d.device.input.Trackerpublic void getState(int layer,
int subLayer,
org.j3d.device.input.TrackerState state)
getState in class org.j3d.device.input.Trackerstate - The current statelayer - The ID of the layer to get the state forsubLayer - The ID of the sub layer within the parent layerpublic void mousePressed(MouseEvent evt)
mousePressed in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseReleased(MouseEvent evt)
mouseReleased in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseClicked(MouseEvent evt)
mouseClicked in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseEntered(MouseEvent evt)
mouseEntered in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseExited(MouseEvent evt)
mouseExited in interface MouseListenerevt - The event that caused this method to be calledpublic void mouseDragged(MouseEvent evt)
mouseDragged in interface MouseMotionListenerevt - The event that caused this method to be calledpublic void mouseMoved(MouseEvent evt)
mouseMoved in interface MouseMotionListenerevt - The event that caused this method to be calledpublic void mouseWheelMoved(MouseWheelEvent mwe)
mouseWheelMoved in interface MouseWheelListener
Copyright © 2001 - 2015 j3d.org