public class GLMouseAdapter extends java.lang.Object implements GLMouseListener
Constructor and Description |
---|
GLMouseAdapter(GLViewer viewer) |
Modifier and Type | Method and Description |
---|---|
java.awt.Point |
getCurrentCursor() |
int |
getDraggerConstrainMask() |
int |
getDraggerDragMask() |
int |
getDraggerRepositionMask() |
int |
getEllipticCursorResizeMask() |
int |
getEllipticDeselectMask()
Gets the modifier mask that enables deselection when using elliptic
selection.
|
GLViewer |
getGLViewer() |
double |
getMouseWheelZoomScale()
get the mouse wheel zoom amount default: 100
|
int |
getMultipleSelectionMask()
Gets the modifier mask that enables multiple selection.
|
int |
getRotateButtonMask()
Gets the mouse button mask that enables rotation.
|
int |
getSelectionButtonMask()
Gets the mouse button mask that enables selection.
|
int |
getTranslateButtonMask()
Gets the mouse button mask that enables translation.
|
int |
getZoomButtonMask()
Gets the mouse button mask that enables zooming.
|
boolean |
isSelectVisibleOnly() |
void |
mouseClicked(java.awt.event.MouseEvent e) |
void |
mouseDragged(java.awt.event.MouseEvent e) |
void |
mouseEntered(java.awt.event.MouseEvent e) |
void |
mouseExited(java.awt.event.MouseEvent e) |
void |
mouseMoved(java.awt.event.MouseEvent e) |
void |
mousePressed(java.awt.event.MouseEvent e) |
void |
mouseReleased(java.awt.event.MouseEvent e) |
void |
mouseWheelMoved(java.awt.event.MouseWheelEvent e)
to get the zoom function going through the mouse wheel which is easier to
navigate, then by using key combination CTRL + mouse click + mouse drag.
|
void |
setDraggerConstrainMask(int mask) |
void |
setDraggerDragMask(int mask) |
void |
setDraggerRepositionMask(int mask) |
void |
setEllipticCursorResizeMask(int mask) |
void |
setEllipticDeselectMask(int mask)
Sets the modifier mask that enables deselection when using elliptic
selection.
|
void |
setGLViewer(GLViewer viewer) |
void |
setLaptopConfig() |
void |
setMouseWheelZoomScale(double s)
set the mouse wheel zoom amount modified by Charles Krzysik on Apr 11th
2008 default: 100
|
void |
setMultipleSelectionMask(int mask)
Sets the modifier mask that enables multiple selection.
|
void |
setRotateButtonMask(int mask)
Sets the mouse button mask that enables rotation.
|
void |
setSelectionButtonMask(int mask)
Sets the mouse button mask that enables selection.
|
void |
setSelectVisibleOnly(boolean set)
Configures the selection handler to only select objects visible on the screen
(i.e.
|
void |
setTranslateButtonMask(int mask)
Sets the mouse button mask that enables translation.
|
void |
setZoomButtonMask(int mask)
Sets the mouse button mask that enables zooming.
|
public GLMouseAdapter(GLViewer viewer)
public java.awt.Point getCurrentCursor()
getCurrentCursor
in interface GLMouseListener
public void setGLViewer(GLViewer viewer)
public GLViewer getGLViewer()
public void mouseClicked(java.awt.event.MouseEvent e)
mouseClicked
in interface java.awt.event.MouseListener
public void mouseEntered(java.awt.event.MouseEvent e)
mouseEntered
in interface java.awt.event.MouseListener
public void mouseExited(java.awt.event.MouseEvent e)
mouseExited
in interface java.awt.event.MouseListener
public void mousePressed(java.awt.event.MouseEvent e)
mousePressed
in interface java.awt.event.MouseListener
public void mouseReleased(java.awt.event.MouseEvent e)
mouseReleased
in interface java.awt.event.MouseListener
public void mouseDragged(java.awt.event.MouseEvent e)
mouseDragged
in interface java.awt.event.MouseMotionListener
public void mouseMoved(java.awt.event.MouseEvent e)
mouseMoved
in interface java.awt.event.MouseMotionListener
public void mouseWheelMoved(java.awt.event.MouseWheelEvent e)
mouseWheelMoved
in interface java.awt.event.MouseWheelListener
public void setRotateButtonMask(int mask)
mask
- rotation button maskpublic int getRotateButtonMask()
setRotateButtonMask(int)
public void setTranslateButtonMask(int mask)
mask
- translation button maskpublic int getTranslateButtonMask()
setTranslateButtonMask(int)
public void setZoomButtonMask(int mask)
mask
- zooming button maskpublic int getZoomButtonMask()
setZoomButtonMask(int)
public void setMouseWheelZoomScale(double s)
setMouseWheelZoomScale
in interface GLMouseListener
s
- zoomAmountpublic double getMouseWheelZoomScale()
getMouseWheelZoomScale
in interface GLMouseListener
public void setSelectionButtonMask(int mask)
mask
- selection button maskpublic int getSelectionButtonMask()
setSelectionButtonMask(int)
public void setMultipleSelectionMask(int mask)
mask
- multiple selection modifier maskpublic int getMultipleSelectionMask()
getMultipleSelectionMask
in interface GLMouseListener
setMultipleSelectionMask(int)
public void setEllipticDeselectMask(int mask)
mask
- elliptic deselect modifier maskpublic int getEllipticDeselectMask()
setMultipleSelectionMask(int)
public int getDraggerConstrainMask()
public void setDraggerConstrainMask(int mask)
public int getDraggerRepositionMask()
public void setDraggerRepositionMask(int mask)
public void setDraggerDragMask(int mask)
public int getDraggerDragMask()
public void setEllipticCursorResizeMask(int mask)
public int getEllipticCursorResizeMask()
public void setSelectVisibleOnly(boolean set)
GLMouseListener
setSelectVisibleOnly
in interface GLMouseListener
set
- if true, only selects visible components. False, select occludedpublic boolean isSelectVisibleOnly()
isSelectVisibleOnly
in interface GLMouseListener
public void setLaptopConfig()