public class GraphPanelNormalState extends GraphPanelState
| Constructor and Description |
|---|
GraphPanelNormalState() |
GraphPanelNormalState(GraphPanel gpanel)
Creates a GraphPanelNormalState object for the specified GraphPanel object.
|
| Modifier and Type | Method and Description |
|---|---|
GraphPanelState |
mouseDragged(MouseEvent e)
If there was a VisualVertex object selected during the mousePressed() method,
then drag the VisualVertex object to the new location specfied by the
MouseEvent e.
|
GraphPanelState |
mouseMoved(MouseEvent e)
This method sets the cursor to a MOVE_CURSOR whenever the cursor
enters a VisualVertex object.
|
GraphPanelState |
mousePressed(MouseEvent e)
If there is a VisualGraphComponent at the coordinate specified
in the MouseEvent e, then a JPopupMenu will be shown
by calling the popup() method whose context is the selected
VisualGraphComponent.
|
GraphPanelState |
mouseReleased(MouseEvent e)
Shows a popup menu if there was a VisualGraphComponent during the
mousePressed() event.
|
void |
paint(Graphics2D g2d)
Call VisualGraph.paint() method, passing the Graphics2D context
and the targetvertex
|
informTargetVisualGraphComponentOfKeyEvent, informTargetVisualGraphComponentOfMouseEvent, keyPressed, keyReleased, keyTyped, mouseClicked, mouseEntered, mouseExited, recommendState, setGraphPanelpublic GraphPanelNormalState(GraphPanel gpanel)
public GraphPanelNormalState()
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.