|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectprefuse.controls.ControlAdapter
prefuse.controls.RotationControl
public class RotationControl
Control that can be used to rotate the display. This results in a
transformation of the display itself, such that all aspects are
rotated. For example, after a rotation of 180 degrees, upright
text strings will subsequently upside down. To rotate item positions
but leave other aspects such as orientation intact, you can
instead create a new Action module that rotates
just the item co-ordinates.
| Field Summary |
|---|
| Fields inherited from interface prefuse.controls.Control |
|---|
LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON |
| Constructor Summary | |
|---|---|
RotationControl()
Create a new RotateControl. |
|
RotationControl(int mouseButton)
Create a new RotateControl |
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class prefuse.controls.ControlAdapter |
|---|
isEnabled, itemClicked, itemDragged, itemEntered, itemExited, itemKeyPressed, itemKeyReleased, itemKeyTyped, itemMoved, itemPressed, itemReleased, itemWheelMoved, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved, setEnabled |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
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.| Method Detail |
|---|
public void mousePressed(java.awt.event.MouseEvent e)
Control
mousePressed in interface java.awt.event.MouseListenermousePressed in interface ControlmousePressed in class ControlAdapterMouseListener.mousePressed(java.awt.event.MouseEvent)public void mouseDragged(java.awt.event.MouseEvent e)
Control
mouseDragged in interface java.awt.event.MouseMotionListenermouseDragged in interface ControlmouseDragged in class ControlAdapterMouseMotionListener.mouseDragged(java.awt.event.MouseEvent)public void mouseReleased(java.awt.event.MouseEvent e)
Control
mouseReleased in interface java.awt.event.MouseListenermouseReleased in interface ControlmouseReleased in class ControlAdapterMouseListener.mouseReleased(java.awt.event.MouseEvent)
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||