GraphLab Project

graphlab.plugins.main.core
Class CorePluginMethods

java.lang.Object
  extended by graphlab.plugins.main.core.CorePluginMethods
All Implemented Interfaces:
PluginMethods

public class CorePluginMethods
extends java.lang.Object
implements PluginMethods

Author:
azin azadi

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

CorePluginMethods

public CorePluginMethods(BlackBoard blackboard)
Method Detail

addEdge

public void addEdge(GraphModel g,
                    EdgeModel e)
adds e to g


addEdge

public void addEdge(EdgeModel e)
adds e to current editing graph


addEdge

public void addEdge(GraphModel g,
                    VertexModel v1,
                    VertexModel v2)
create and adds a new edge from v1, v2 to g


addEdge

public void addEdge(VertexModel v1,
                    VertexModel v2)

deleteEdge

public void deleteEdge(GraphModel g,
                       EdgeModel e)

clearGraph

public void clearGraph(GraphModel g)
removes all edges and vertices of g


clearGraph

public void clearGraph()
removes all edges and vertices of current graph


addVertex

public VertexModel addVertex(GraphModel g)
adds a new vertex to a random point of the graph and returns it


addVertex

public VertexModel addVertex()
add a new vertex to a random position of the current graph and returns it


addVertex

public VertexModel addVertex(GraphModel g,
                             int x,
                             int y)
adds a vertex to the given point of graph


addVertex

public VertexModel addVertex(int x,
                             int y)
adds a vertex to the given point of current graph


deleteVertex

public void deleteVertex(GraphModel g,
                         VertexModel v)
deletes a vertex from it's coressponding graph


undo

public void undo()
See Also:
UndoAction.undo(graphlab.platform.core.BlackBoard)

redo

public void redo()
See Also:
RedoAction.redo(graphlab.platform.core.BlackBoard)

addUndoData

public 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.


addTab

public void addTab()
See Also:
AddTab.addTab(graphlab.platform.core.BlackBoard)

addTabNoGUI

public void addTabNoGUI(boolean isdirected,
                        BlackBoard blackboard)
See Also:
AddTab.addTabNoGUI(boolean, graphlab.platform.core.BlackBoard)

showGraph

public void showGraph(GraphModel g)
See Also:
AddTab.displayGraph(graphlab.graph.graph.GraphModel,graphlab.platform.core.BlackBoard)

closeTab

public void closeTab()
See Also:
CloseTab.dojob(graphlab.platform.core.BlackBoard)

resetGraph

public void resetGraph()
See Also:
ResetGraph.ResetGraph(graphlab.platform.core.BlackBoard)

resetGraph

public void resetGraph(GraphModel g)
See Also:
ResetGraph.ResetGraph(graphlab.platform.core.BlackBoard)

showStatusBarMessage

public void showStatusBarMessage(java.lang.String s)
See Also:
StatusBarMessage.setMessage(graphlab.platform.core.BlackBoard,String)

showQuickMessageInStatusbar

public void showQuickMessageInStatusbar(java.lang.String message)
See Also:
StatusBarMessage.showQuickMessage(graphlab.platform.core.BlackBoard,String)

copyToClipboard

public void copyToClipboard(SubGraph selection)
See Also:
Copy.copy(graphlab.graph.graph.SubGraph)

pasteFromClipboard

public void pasteFromClipboard()

cutToClipboard

public void cutToClipboard(SubGraph selection)

getGraph

public static GraphModel getGraph(BlackBoard blackboard)

showPageInDialog

public 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).


GraphLab Project