Skip to content

Commit

Permalink
Added additional RPC methods.
Browse files Browse the repository at this point in the history
Added methods for changing the node type, setting node attributes,
and changing the node type.
  • Loading branch information
chebee7i committed Apr 19, 2012
1 parent 55481be commit e4cdd02
Show file tree
Hide file tree
Showing 4 changed files with 144 additions and 67 deletions.
6 changes: 5 additions & 1 deletion src/rpcserver.cpp
Expand Up @@ -36,16 +36,20 @@ void* RpcServer::run()
r.addMethod("center", new Center(app));
r.addMethod("delete_edge", new DeleteEdge(app));
r.addMethod("delete_node", new DeleteNode(app));
r.addMethod("draw", new Draw(app));
r.addMethod("layout", new Layout(app));
r.addMethod("add_edge", new AddEdge(app));
r.addMethod("add_node", new AddNode(app));
r.addMethod("open_file", new OpenFile(app));
r.addMethod("set_callback", new SetCallback(app, this));
r.addMethod("set_edge_label", new SetEdgeLabel(app));
r.addMethod("set_edge_weight", new SetEdgeWeight(app));
r.addMethod("set_layout_type", new SetLayoutType(app));
r.addMethod("set_node_attribute", new SetNodeAttribute(app));
r.addMethod("set_node_color", new SetNodeColor(app));
r.addMethod("set_node_label", new SetNodeLabel(app));
r.addMethod("set_node_size", new SetNodeSize(app));
r.addMethod("set_node_type", new SetNodeType(app));
r.addMethod("set_status", new SetStatus(app));
r.addMethod("start_layout", new StartLayout(app));
r.addMethod("stop_layout", new StopLayout(app));
Expand All @@ -71,4 +75,4 @@ void RpcServer::setCallback(const string& url, const string& method)
{
callbackUrl = url;
callbackMethod = method;
}
}

0 comments on commit e4cdd02

Please sign in to comment.