|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GraphAction
Graph actions transform graphs some way. It can also change the related objects, such as the current selection of vertices and edges, and the position of the vertices and edges. They are shown in the menu "Transform", and on the right click on the graph.
A graph action should first provide the name and the description. Additionally, it should provide a method that tells is the graph action enabled on the current graph. Finally, if should provide a method that changes the graph. Actions could be parametrized.
Parametrizable
Method Summary | |
---|---|
void |
action(Graph graph,
boolean ctrl,
boolean shift)
The method should perform the desired action on the graph. |
java.lang.String |
getDescription()
Retrieves the description of the action. |
java.lang.String |
getName()
Retrieves the name of the action. |
boolean |
isEnabled(GraphData graph)
This method should tell is the action enabled for execution, depending on the current state of the graph. |
Method Detail |
---|
java.lang.String getName()
java.lang.String getDescription()
boolean isEnabled(GraphData graph)
graph
- The graph data.
void action(Graph graph, boolean ctrl, boolean shift)
graph
- The graph that could be modified.ctrl
- Indicates whether the CTRL button was pressed when the action
was invoked.shift
- Indicates whether the SHIFT button was pressed when the
action was invoked.
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |