CODE:
Table table = Lookup.getDefault().lookup(Table.class);table = graphModel.getNodeTable();table.addColumn("latitude", Double.class);table.addColumn("longitude", Double.class);..............Node v1 = graphModel.factory().newNode(source);v1.setLabel(source);v1.setAttribute("latitude", 34.56);v1.setAttribute("longitude", 22.34);
Statistics:Posted by gsthakur — 01 Jun 2016 20:56
Statistics:Posted by eduramiba — 31 May 2016 08:12
CODE:
// Init a project - and therefore a workspaceProjectController pc = Lookup.getDefault().lookup(ProjectController.class);pc.newProject();Workspace workspace = pc.getCurrentWorkspace();// Get a graph model - it exists because we have a workspaceGraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getGraphModel(); Node v1 = graphModel.factory().newNode(source); v1.setLabel(source);
Statistics:Posted by gsthakur — 31 May 2016 02:15