当前位置: 首页>>代码示例>>Java>>正文


Java ProjectController.getCurrentWorkspace方法代码示例

本文整理汇总了Java中org.gephi.project.api.ProjectController.getCurrentWorkspace方法的典型用法代码示例。如果您正苦于以下问题:Java ProjectController.getCurrentWorkspace方法的具体用法?Java ProjectController.getCurrentWorkspace怎么用?Java ProjectController.getCurrentWorkspace使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在org.gephi.project.api.ProjectController的用法示例。


在下文中一共展示了ProjectController.getCurrentWorkspace方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: initProject

import org.gephi.project.api.ProjectController; //导入方法依赖的package包/类
/**
 * Initialize a Gephi Toolkit project.
 */
private static void initProject() {
	ProjectController pc = Lookup.getDefault().lookup(
			ProjectController.class);
	pc.newProject();
	pc.getCurrentWorkspace();
}
 
开发者ID:dev-cuttlefish,项目名称:cuttlefish,代码行数:10,代码来源:Cuttlefish.java

示例2: bootstrapGephi

import org.gephi.project.api.ProjectController; //导入方法依赖的package包/类
private GraphModel bootstrapGephi() {
	// boostrap gephi
	Lookup lookup = Lookup.getDefault();
	ProjectController pc = lookup.lookup(ProjectController.class);
	pc.newProject();
	@SuppressWarnings("unused")
	Workspace workspace = pc.getCurrentWorkspace();
	GraphModel graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();
	return graphModel;
}
 
开发者ID:ServiceCutter,项目名称:ServiceCutter,代码行数:11,代码来源:GephiSolver.java

示例3: GephiProcessing

import org.gephi.project.api.ProjectController; //导入方法依赖的package包/类
public GephiProcessing(final String filePath, final double reportingIntervalCount) {
    betweennessAverages = new ArrayList<>();
    closenessAverages = new ArrayList<>();
    eccentricityAverages = new ArrayList<>();

    clusteringCoefficientAverages = new ArrayList<>();

    topicDiameterAverages = new ArrayList<>();

    degreeAverages = new ArrayList<>();
    inDegreeAverages = new ArrayList<>();
    outDegreeAverages = new ArrayList<>();

    controlMsgsSentAvg = new ArrayList<>();
    controlMsgsRcvdAvg = new ArrayList<>();
    controlKbSentAvg = new ArrayList<>();
    controlKbRcvdAvg = new ArrayList<>();

    ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
    pc.newProject();
    workspace = pc.getCurrentWorkspace();

    this.filePath = filePath;
    open();

    graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();
    this.reportingIntervalCount = reportingIntervalCount;
}
 
开发者ID:vizpub,项目名称:vizpub,代码行数:29,代码来源:GephiProcessing.java

示例4: GephiController

import org.gephi.project.api.ProjectController; //导入方法依赖的package包/类
public GephiController(DataController dc) {
	ProjectController projectController = Lookup.getDefault().lookup(ProjectController.class);
	workspace = projectController.getCurrentWorkspace();
	projectController.newProject();

	this.dataController = dc;
	ipMap = dc.getMongoController().getIpToNodeMap();
	GraphMouseListener gml = Lookup.getDefault().lookup(GraphMouseListener.class);
	gml.setGephiController(this);

	// By now the JPanel on which to draw on is not known, so we cannot set up the RenderTarget.
	// This is done in setGraphPanel(...)
}
 
开发者ID:nullbox,项目名称:Data-and-Information-Visualization-Project,代码行数:14,代码来源:GephiController.java

示例5: convert

import org.gephi.project.api.ProjectController; //导入方法依赖的package包/类
/**
    * 
    * @param srcpath
    * @throws IOException
    */
   public void convert(String srcpath) throws IOException {
File graphmlFile = new File(srcpath);

// Init a project - and therefore a workspace
ProjectController pc = Lookup.getDefault().lookup(ProjectController.class);
pc.newProject();
Workspace workspace = pc.getCurrentWorkspace();

// get import controller
ImportController importController = Lookup.getDefault().lookup(ImportController.class);

// Import file
Container container = importController.importFile(graphmlFile);


// Append imported data to GraphAPI
importController.process(container, new DefaultProcessor(), workspace);

graphModel = Lookup.getDefault().lookup(GraphController.class).getModel();

   }
 
开发者ID:learning-layers,项目名称:Expert-Identification-Service,代码行数:27,代码来源:GraphMl2GEXFConverter.java


注:本文中的org.gephi.project.api.ProjectController.getCurrentWorkspace方法示例由纯净天空整理自Github/MSDocs等开源代码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。