|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectgraphlab.plugins.main.core.CorePluginMethods
public class CorePluginMethods
Constructor Summary | |
---|---|
CorePluginMethods(BlackBoard blackboard)
|
Method Summary | |
---|---|
void |
addEdge(EdgeModel e)
adds e to current editing graph |
void |
addEdge(GraphModel g,
EdgeModel e)
adds e to g |
void |
addEdge(GraphModel g,
VertexModel v1,
VertexModel v2)
create and adds a new edge from v1, v2 to g |
void |
addEdge(VertexModel v1,
VertexModel v2)
|
void |
addTab()
|
void |
addTabNoGUI(boolean isdirected,
BlackBoard blackboard)
|
void |
addUndoData(UndoableActionOccuredData data)
puts data in the stack of undo/redo actions, so it will be regarded as an undoable action and will be undone by the rules of undo/redo. |
VertexModel |
addVertex()
add a new vertex to a random position of the current graph and returns it |
VertexModel |
addVertex(GraphModel g)
adds a new vertex to a random point of the graph and returns it |
VertexModel |
addVertex(GraphModel g,
int x,
int y)
adds a vertex to the given point of graph |
VertexModel |
addVertex(int x,
int y)
adds a vertex to the given point of current graph |
void |
clearGraph()
removes all edges and vertices of current graph |
void |
clearGraph(GraphModel g)
removes all edges and vertices of g |
void |
closeTab()
|
void |
copyToClipboard(SubGraph selection)
|
void |
cutToClipboard(SubGraph selection)
|
void |
deleteEdge(GraphModel g,
EdgeModel e)
|
void |
deleteVertex(GraphModel g,
VertexModel v)
deletes a vertex from it's coressponding graph |
static GraphModel |
getGraph(BlackBoard blackboard)
|
void |
pasteFromClipboard()
|
void |
redo()
|
void |
resetGraph()
|
void |
resetGraph(GraphModel g)
|
void |
showGraph(GraphModel g)
|
static void |
showPageInDialog(java.lang.String pageUrl,
java.lang.String title)
shows the givve page in a new dialog, Note that the used html viewer is GHTMLPageComponent, which is internally uses a JEditorPane, but the blackboard in dialog will be a new blackboard, (in the case of you want to use "bsh:" feature of GHTMLPageComponent, for this use showPageInDialog(URL, blackboard). |
void |
showQuickMessageInStatusbar(java.lang.String message)
|
void |
showStatusBarMessage(java.lang.String s)
|
void |
undo()
|
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public CorePluginMethods(BlackBoard blackboard)
Method Detail |
---|
public void addEdge(GraphModel g, EdgeModel e)
public void addEdge(EdgeModel e)
public void addEdge(GraphModel g, VertexModel v1, VertexModel v2)
public void addEdge(VertexModel v1, VertexModel v2)
public void deleteEdge(GraphModel g, EdgeModel e)
public void clearGraph(GraphModel g)
public void clearGraph()
public VertexModel addVertex(GraphModel g)
public VertexModel addVertex()
public VertexModel addVertex(GraphModel g, int x, int y)
public VertexModel addVertex(int x, int y)
public void deleteVertex(GraphModel g, VertexModel v)
public void undo()
UndoAction.undo(graphlab.platform.core.BlackBoard)
public void redo()
RedoAction.redo(graphlab.platform.core.BlackBoard)
public void addUndoData(UndoableActionOccuredData data)
public void addTab()
AddTab.addTab(graphlab.platform.core.BlackBoard)
public void addTabNoGUI(boolean isdirected, BlackBoard blackboard)
AddTab.addTabNoGUI(boolean, graphlab.platform.core.BlackBoard)
public void showGraph(GraphModel g)
AddTab.displayGraph(graphlab.graph.graph.GraphModel,graphlab.platform.core.BlackBoard)
public void closeTab()
CloseTab.dojob(graphlab.platform.core.BlackBoard)
public void resetGraph()
ResetGraph.ResetGraph(graphlab.platform.core.BlackBoard)
public void resetGraph(GraphModel g)
ResetGraph.ResetGraph(graphlab.platform.core.BlackBoard)
public void showStatusBarMessage(java.lang.String s)
StatusBarMessage.setMessage(graphlab.platform.core.BlackBoard,String)
public void showQuickMessageInStatusbar(java.lang.String message)
StatusBarMessage.showQuickMessage(graphlab.platform.core.BlackBoard,String)
public void copyToClipboard(SubGraph selection)
Copy.copy(graphlab.graph.graph.SubGraph)
public void pasteFromClipboard()
public void cutToClipboard(SubGraph selection)
public static GraphModel getGraph(BlackBoard blackboard)
public static void showPageInDialog(java.lang.String pageUrl, java.lang.String title)
|
GraphLab Project | |||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |