Class MouseListenerTranslator<V,E>
java.lang.Object
java.awt.event.MouseAdapter
edu.uci.ics.jung.visualization.control.MouseListenerTranslator<V,E>
- All Implemented Interfaces:
MouseListener
,MouseMotionListener
,MouseWheelListener
,EventListener
This class translates mouse clicks into vertex clicks
-
Field Summary
Fields -
Constructor Summary
ConstructorsConstructorDescriptionMouseListenerTranslator
(GraphMouseListener<V> gel, VisualizationViewer<V, E> vv) -
Method Summary
Modifier and TypeMethodDescriptionprivate V
Transform the point to the coordinate system in the VisualizationViewer, then use either PickSuuport (if available) or Layout to find a Vertexvoid
void
void
Methods inherited from class java.awt.event.MouseAdapter
mouseDragged, mouseEntered, mouseExited, mouseMoved, mouseWheelMoved
-
Field Details
-
vv
-
gel
-
-
Constructor Details
-
MouseListenerTranslator
- Parameters:
gel
- listens for mouse eventsvv
- the viewer used for visualization
-
-
Method Details
-
getVertex
Transform the point to the coordinate system in the VisualizationViewer, then use either PickSuuport (if available) or Layout to find a Vertex- Parameters:
point
-- Returns:
-
mouseClicked
- Specified by:
mouseClicked
in interfaceMouseListener
- Overrides:
mouseClicked
in classMouseAdapter
- See Also:
-
mousePressed
- Specified by:
mousePressed
in interfaceMouseListener
- Overrides:
mousePressed
in classMouseAdapter
- See Also:
-
mouseReleased
- Specified by:
mouseReleased
in interfaceMouseListener
- Overrides:
mouseReleased
in classMouseAdapter
- See Also:
-