|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.threerings.opengl.camera.MouseOrbiter
public class MouseOrbiter
Provides a means of manipulating an OrbitCameraHandler using the mouse.
| Field Summary | |
|---|---|
protected OrbitCameraHandler |
_camhand
The camera handler we're controlling. |
protected int |
_lx
The last x and y position recorded. |
protected int |
_ly
The last x and y position recorded. |
protected boolean |
_panXY
Whether or not to restrict panning to the XY plane. |
protected float |
_radiansPerPixel
The angular scale. |
protected float |
_unitsPerClick
The wheel scale. |
protected float |
_unitsPerPixel
The linear scale. |
| Constructor Summary | |
|---|---|
MouseOrbiter(OrbitCameraHandler camhand)
Creates new mouse orbiter for the specified camera handler. |
|
MouseOrbiter(OrbitCameraHandler camhand,
boolean panXY)
Creates a new mouse orbiter for the specified camera handler. |
|
| Method Summary | |
|---|---|
void |
addTo(Component comp)
Adds the orbiter to the specified component. |
protected void |
mouseDragged(int x,
int y,
boolean b1,
boolean b2,
boolean b3)
Notes that the mouse has been dragged. |
void |
mouseDragged(MouseEvent event)
|
void |
mouseDragged(MouseEvent event)
Dispatched when the mouse is moved after a button having been pressed within the bounds of the target component. |
protected void |
mouseMoved(int x,
int y)
Notes that the mouse has moved. |
void |
mouseMoved(MouseEvent event)
|
void |
mouseMoved(MouseEvent event)
Dispatched when the mouse is moved within the bounds of the target component. |
void |
mouseWheeled(MouseEvent event)
Dispatched when the mouse wheel is rotated within the bounds of the target component. |
protected void |
mouseWheelMoved(int delta)
Notes that the mouse wheel has moved. |
void |
mouseWheelMoved(MouseWheelEvent event)
|
void |
removeFrom(Component comp)
Removes the orbiter from the specified component. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
protected OrbitCameraHandler _camhand
protected float _radiansPerPixel
protected float _unitsPerPixel
protected float _unitsPerClick
protected boolean _panXY
protected int _lx
protected int _ly
| Constructor Detail |
|---|
public MouseOrbiter(OrbitCameraHandler camhand)
public MouseOrbiter(OrbitCameraHandler camhand,
boolean panXY)
panXY - if true, limit panning to the XY plane.| Method Detail |
|---|
public void addTo(Component comp)
public void removeFrom(Component comp)
public void mouseDragged(MouseEvent event)
public void mouseMoved(MouseEvent event)
public void mouseWheelMoved(MouseWheelEvent event)
public void mouseMoved(MouseEvent event)
MouseMotionListener
mouseMoved in interface MouseMotionListenerpublic void mouseDragged(MouseEvent event)
MouseMotionListener
mouseDragged in interface MouseMotionListenerpublic void mouseWheeled(MouseEvent event)
MouseWheelListener
mouseWheeled in interface MouseWheelListener
protected void mouseDragged(int x,
int y,
boolean b1,
boolean b2,
boolean b3)
protected void mouseMoved(int x,
int y)
protected void mouseWheelMoved(int delta)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||