public class GraphPanelEdgeState extends GraphPanelState
| Constructor and Description |
|---|
GraphPanelEdgeState(GraphPanel gpanel)
Creates a GraphPanelEdgeState object for the specified GraphPanel object.
|
| Modifier and Type | Method and Description |
|---|---|
GraphPanelState |
mouseDragged(MouseEvent e)
If there was a vertex clicked during the start of the drag
(during the mousePressed() event), draw a line from the
source vertex to the current coordinate.
|
GraphPanelState |
mouseMoved(MouseEvent e)
This method sets the cursor to a crosshair whenever the cursor
enters a VisualVertex object.
|
GraphPanelState |
mousePressed(MouseEvent e)
Identifies the source vertex of a new Edge being created.
|
GraphPanelState |
mouseReleased(MouseEvent e)
Signifies the end of a drag.
|
void |
paint(Graphics2D g2d)
Call VisualGraph.paint() method, passing the Graphics2D context
and the probable edge line to be drawn
|
informTargetVisualGraphComponentOfKeyEvent, informTargetVisualGraphComponentOfMouseEvent, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, recommendState, setGraphPanelpublic GraphPanelEdgeState(GraphPanel gpanel)
public GraphPanelState mousePressed(MouseEvent e)
mousePressed in class GraphPanelStatee - the MouseEvent, as it was received by the GraphPanel.public GraphPanelState mouseReleased(MouseEvent e)
mouseReleased in class GraphPanelStatee - the MouseEvent, as it was received by the GraphPanel.public GraphPanelState mouseDragged(MouseEvent e)
mouseDragged in class GraphPanelStatee - the MouseEvent, as it was received by the GraphPanel.public GraphPanelState mouseMoved(MouseEvent e)
mouseMoved in class GraphPanelStatee - the MouseEvent, as it was received by the GraphPanel.public void paint(Graphics2D g2d)
paint in class GraphPanelStateCopyright © 2019 JULIE Lab, Germany. All rights reserved.