public class RotationControl extends ControlAdapter
Action
module that rotates
just the item co-ordinates.LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON
Constructor and Description |
---|
RotationControl()
Create a new RotateControl.
|
RotationControl(int mouseButton)
Create a new RotateControl
|
Modifier and Type | Method and Description |
---|---|
void |
mouseDragged(java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on the Display (but NOT a
VisualItem) and then dragged.
|
void |
mousePressed(java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on the Display but NOT
on a VisualItem.
|
void |
mouseReleased(java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on the Display but NOT
on a VisualItem.
|
isEnabled, itemClicked, itemDragged, itemEntered, itemExited, itemKeyPressed, itemKeyReleased, itemKeyTyped, itemMoved, itemPressed, itemReleased, itemWheelMoved, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, setEnabled
public RotationControl()
public RotationControl(int mouseButton)
mouseButton
- the mouse button that should initiate a rotation. One
of Control.LEFT_MOUSE_BUTTON
,
Control.MIDDLE_MOUSE_BUTTON
, or
Control.RIGHT_MOUSE_BUTTON
.public void mousePressed(java.awt.event.MouseEvent e)
Control
mousePressed
in interface java.awt.event.MouseListener
mousePressed
in interface Control
mousePressed
in class ControlAdapter
MouseListener.mousePressed(java.awt.event.MouseEvent)
public void mouseDragged(java.awt.event.MouseEvent e)
Control
mouseDragged
in interface java.awt.event.MouseMotionListener
mouseDragged
in interface Control
mouseDragged
in class ControlAdapter
MouseMotionListener.mouseDragged(java.awt.event.MouseEvent)
public void mouseReleased(java.awt.event.MouseEvent e)
Control
mouseReleased
in interface java.awt.event.MouseListener
mouseReleased
in interface Control
mouseReleased
in class ControlAdapter
MouseListener.mouseReleased(java.awt.event.MouseEvent)
Copyright ? 2013 Regents of the University of California