| Package | Description |
|---|---|
| salvo.jesus.graph.visual |
| Modifier and Type | Class and Description |
|---|---|
class |
GraphPanelEdgeState
State object that represents the edge mode in a GraphPanel.
|
class |
GraphPanelNormalState
State object that represents the normal mode in a GraphPanel.
|
class |
GraphPanelVertexState
State object that represents the vertex mode in a GraphPanel.
|
| Modifier and Type | Method and Description |
|---|---|
GraphPanelState |
ChangeStateEvent.getRequestedState()
Returns the requested state to change to
|
GraphPanelState |
GraphPanelState.keyPressed(KeyEvent e) |
GraphPanelState |
GraphPanelState.keyReleased(KeyEvent e) |
GraphPanelState |
GraphPanelState.keyTyped(KeyEvent e) |
GraphPanelState |
GraphPanelState.mouseClicked(MouseEvent e)
GraphPanel delegates all MouseEvents to its current state.
|
GraphPanelState |
GraphPanelState.mouseDragged(MouseEvent e)
GraphPanel delegates all MouseEvents to its current state.
|
GraphPanelState |
GraphPanelNormalState.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 |
GraphPanelEdgeState.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 |
GraphPanelState.mouseEntered(MouseEvent e)
GraphPanel delegates all MouseEvents to its current state.
|
GraphPanelState |
GraphPanelState.mouseExited(MouseEvent e)
GraphPanel delegates all MouseEvents to its current state.
|
GraphPanelState |
GraphPanelState.mouseMoved(MouseEvent e)
GraphPanel delegates all MouseEvents to its current state.
|
GraphPanelState |
GraphPanelNormalState.mouseMoved(MouseEvent e)
This method sets the cursor to a MOVE_CURSOR whenever the cursor
enters a VisualVertex object.
|
GraphPanelState |
GraphPanelEdgeState.mouseMoved(MouseEvent e)
This method sets the cursor to a crosshair whenever the cursor
enters a VisualVertex object.
|
GraphPanelState |
GraphPanelVertexState.mousePressed(MouseEvent e)
Creates a new vertex on the specified coordinate.
|
GraphPanelState |
GraphPanelState.mousePressed(MouseEvent e)
GraphPanel delegates all MouseEvents to its current state.
|
GraphPanelState |
GraphPanelNormalState.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 |
GraphPanelEdgeState.mousePressed(MouseEvent e)
Identifies the source vertex of a new Edge being created.
|
GraphPanelState |
GraphPanelState.mouseReleased(MouseEvent e)
GraphPanel delegates all MouseEvents to its current state.
|
GraphPanelState |
GraphPanelNormalState.mouseReleased(MouseEvent e)
Shows a popup menu if there was a VisualGraphComponent during the
mousePressed() event.
|
GraphPanelState |
GraphPanelEdgeState.mouseReleased(MouseEvent e)
Signifies the end of a drag.
|
GraphPanelState |
GraphScrollPane.processChangeStateEvent(ChangeStateEvent cse)
This is simply a wrapper method around GraphPanel's
processChangeStateEvent() method.
|
GraphPanelState |
GraphPanel.processChangeStateEvent(ChangeStateEvent cse)
Processes the ChangeStateEvent by delegating the event to the
recommendState() method of the current state, possibly
returning a new state.
|
GraphPanelState |
GraphEditor.processChangeStateEvent(ChangeStateEvent cse)
This is simply a wrapper method around GraphScrollPane's
processChangeStateEvent() method.
|
GraphPanelState |
GraphPanelState.recommendState(ChangeStateEvent cse)
Returns a state depending on the ChangeStateEvent.
|
| Constructor and Description |
|---|
ChangeStateEvent(Object source,
GraphPanelState requestedState) |
GraphEditor(GraphPanelState gps)
Creates a GraphEditor without a specified GraphScrollPane but with
a given initial GraphPanelState, the GraphPanel property of GraphPanelState will be set.
|
GraphEditor(GraphPanelState gps,
Graph g)
Creates a GraphEditor object with a given Graph and a given state,
the GraphPanel property of GraphPanelState will be set.
|
GraphEditor(GraphPanelState gps,
VisualGraph vgraph)
Creates a GraphEditor object with a given VisualGraph and a given state,
the GraphPanel property of GraphPanelState will be set.
|
GraphScrollPane(GraphPanelState gps)
calls GraphScrollPane(gps, new VisualGraph()) with the given GraphPanelState and sets the given graph.
|
GraphScrollPane(GraphPanelState gps,
VisualGraph vgraph)
Creates a GraphScrollPane object with the given GraphPanelState and initializes the scrollbars and the
GraphPanelSizeable which it encapsulates.
|
Copyright © 2019 JULIE Lab, Germany. All rights reserved.