|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object prefuse.controls.ControlAdapter prefuse.controls.PanControl
public class PanControl
Pans the display, changing the viewable region of the visualization. By default, panning is accomplished by clicking on the background of a visualization with the left mouse button and then dragging.
Field Summary |
---|
Fields inherited from interface prefuse.controls.Control |
---|
LEFT_MOUSE_BUTTON, MIDDLE_MOUSE_BUTTON, RIGHT_MOUSE_BUTTON |
Constructor Summary | |
---|---|
PanControl()
Create a new PanControl. |
|
PanControl(boolean panOverItem)
Create a new PanControl. |
|
PanControl(int mouseButton)
Create a new PanControl. |
|
PanControl(int mouseButton,
boolean panOverItem)
Create a new PanControl |
Method Summary | |
---|---|
void |
itemDragged(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when a mouse button is pressed on a VisualItem and then dragged. |
void |
itemPressed(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when a mouse button has been pressed on a VisualItem. |
void |
itemReleased(VisualItem item,
java.awt.event.MouseEvent e)
Invoked when a mouse button has been released on a VisualItem. |
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, itemEntered, itemExited, itemKeyPressed, itemKeyReleased, itemKeyTyped, itemMoved, 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 PanControl()
public PanControl(boolean panOverItem)
panOverItem
- if true, the panning control will work even while
the mouse is over a visual item.public PanControl(int mouseButton)
mouseButton
- the mouse button that should initiate a pan. One of
Control.LEFT_MOUSE_BUTTON
, Control.MIDDLE_MOUSE_BUTTON
,
or Control.RIGHT_MOUSE_BUTTON
.public PanControl(int mouseButton, boolean panOverItem)
mouseButton
- the mouse button that should initiate a pan. One of
Control.LEFT_MOUSE_BUTTON
, Control.MIDDLE_MOUSE_BUTTON
,
or Control.RIGHT_MOUSE_BUTTON
.panOverItem
- if true, the panning control will work even while
the mouse is over a visual item.Method Detail |
---|
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)
public void itemPressed(VisualItem item, java.awt.event.MouseEvent e)
Control
itemPressed
in interface Control
itemPressed
in class ControlAdapter
Control.itemPressed(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemDragged(VisualItem item, java.awt.event.MouseEvent e)
Control
itemDragged
in interface Control
itemDragged
in class ControlAdapter
Control.itemDragged(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
public void itemReleased(VisualItem item, java.awt.event.MouseEvent e)
Control
itemReleased
in interface Control
itemReleased
in class ControlAdapter
Control.itemReleased(prefuse.visual.VisualItem, java.awt.event.MouseEvent)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |