Aviatrix3D
2.1.0

org.j3d.renderer.aviatrix3d.device.input.mouse
Class MouseTracker

java.lang.Object
  extended by org.j3d.device.input.Tracker
      extended by org.j3d.renderer.aviatrix3d.device.input.mouse.MouseTracker
All Implemented Interfaces:
java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener, java.util.EventListener

public class MouseTracker
extends org.j3d.device.input.Tracker
implements java.awt.event.MouseListener, java.awt.event.MouseMotionListener, java.awt.event.MouseWheelListener

A tracker implementation for mouse devices under OpenGL.

Version:
$Revision: 1.1 $
Author:
Alan Hudson

Field Summary
 
Fields inherited from class org.j3d.device.input.Tracker
MASK_NONE, MASK_ORIENTATION, MASK_PICKING, MASK_POSITION
 
Constructor Summary
MouseTracker(GraphicsOutputDevice surface, java.lang.String id)
           
 
Method Summary
 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(java.awt.event.MouseEvent evt)
          Process a mouse click event.
 void mouseDragged(java.awt.event.MouseEvent evt)
          Process a mouse drag event
 void mouseEntered(java.awt.event.MouseEvent evt)
          Process a mouse enter event.
 void mouseExited(java.awt.event.MouseEvent evt)
          Process a mouse exited event.
 void mouseMoved(java.awt.event.MouseEvent evt)
          Process a mouse movement event.
 void mousePressed(java.awt.event.MouseEvent evt)
          Process a mouse press event.
 void mouseReleased(java.awt.event.MouseEvent evt)
          Process a mouse release event.
 void mouseWheelMoved(java.awt.event.MouseWheelEvent mwe)
           
 
Methods inherited from class org.j3d.device.input.Tracker
actionChanges
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MouseTracker

public MouseTracker(GraphicsOutputDevice surface,
                    java.lang.String id)
Method Detail

getActionMask

public int getActionMask()
What action types does this sensor return. This a combination of ACTION masks.

Specified by:
getActionMask in class org.j3d.device.input.Tracker
Returns:
The action mask.

beginPolling

public void beginPolling()
Notification that tracker polling is beginning.

Specified by:
beginPolling in class org.j3d.device.input.Tracker

endPolling

public void endPolling()
Notification that tracker polling is ending.

Specified by:
endPolling in class org.j3d.device.input.Tracker

getState

public void getState(int layer,
                     int subLayer,
                     org.j3d.device.input.TrackerState state)
Get the current state of this tracker.

Specified by:
getState in class org.j3d.device.input.Tracker
Parameters:
state - The current state
layer - The ID of the layer to get the state for
subLayer - The ID of the sub layer within the parent layer

mousePressed

public void mousePressed(java.awt.event.MouseEvent evt)
Process a mouse press event.

Specified by:
mousePressed in interface java.awt.event.MouseListener
Parameters:
evt - The event that caused this method to be called

mouseReleased

public void mouseReleased(java.awt.event.MouseEvent evt)
Process a mouse release event.

Specified by:
mouseReleased in interface java.awt.event.MouseListener
Parameters:
evt - The event that caused this method to be called

mouseClicked

public void mouseClicked(java.awt.event.MouseEvent evt)
Process a mouse click event.

Specified by:
mouseClicked in interface java.awt.event.MouseListener
Parameters:
evt - The event that caused this method to be called

mouseEntered

public void mouseEntered(java.awt.event.MouseEvent evt)
Process a mouse enter event.

Specified by:
mouseEntered in interface java.awt.event.MouseListener
Parameters:
evt - The event that caused this method to be called

mouseExited

public void mouseExited(java.awt.event.MouseEvent evt)
Process a mouse exited event.

Specified by:
mouseExited in interface java.awt.event.MouseListener
Parameters:
evt - The event that caused this method to be called

mouseDragged

public void mouseDragged(java.awt.event.MouseEvent evt)
Process a mouse drag event

Specified by:
mouseDragged in interface java.awt.event.MouseMotionListener
Parameters:
evt - The event that caused this method to be called

mouseMoved

public void mouseMoved(java.awt.event.MouseEvent evt)
Process a mouse movement event.

Specified by:
mouseMoved in interface java.awt.event.MouseMotionListener
Parameters:
evt - The event that caused this method to be called

mouseWheelMoved

public void mouseWheelMoved(java.awt.event.MouseWheelEvent mwe)
Specified by:
mouseWheelMoved in interface java.awt.event.MouseWheelListener

Aviatrix3D
2.1.0

Latest Info from http://aviatrix3d.j3d.org/
Copyright © 2003 - 2009 j3d.org