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


Java Graph类代码示例

本文整理汇总了Java中edu.mit.csail.sdg.alloy4graph.Graph的典型用法代码示例。如果您正苦于以下问题:Java Graph类的具体用法?Java Graph怎么用?Java Graph使用的例子?那么, 这里精选的类代码示例或许可以为您提供帮助。


Graph类属于edu.mit.csail.sdg.alloy4graph包,在下文中一共展示了Graph类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。

示例1: produceGraph

import edu.mit.csail.sdg.alloy4graph.Graph; //导入依赖的package包/类
/**
 * Produces a single Graph from the given Instance and View and choice of
 * Projection
 */
public static JPanel produceGraph(AlloyInstance instance, VizState view, AlloyProjection proj) throws ErrorFatal {
	view = new VizState(view);
	if (proj == null)
		proj = new AlloyProjection();
	Graph graph = new Graph(view.getFontSize() / 12.0D);
	new StaticGraphMaker(graph, instance, view, proj);
	if (graph.nodes.size() == 0)
		new GraphNode(graph, "", "Due to your theme settings, every atom is hidden.",
				"Please click Theme and adjust your settings.");
	return new GraphViewer(graph);
}
 
开发者ID:AlloyTools,项目名称:org.alloytools.alloy,代码行数:16,代码来源:StaticGraphMaker.java

示例2: produceGraph

import edu.mit.csail.sdg.alloy4graph.Graph; //导入依赖的package包/类
/** Produces a single Graph from the given Instance and View and choice of Projection */
public static JPanel produceGraph(AlloyInstance instance, VizState view, AlloyProjection proj) throws ErrorFatal {
   view = new VizState(view);
   if (proj == null) proj = new AlloyProjection();
   Graph graph = new Graph(view.getFontSize() / 12.0D);
   new StaticGraphMaker(graph, instance, view, proj);
   if (graph.nodes.size()==0) new GraphNode(graph, "", "Due to your theme settings, every atom is hidden.", "Please click Theme and adjust your settings.");
   return new GraphViewer(graph);
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:10,代码来源:StaticGraphMaker.java

示例3: produceGraph

import edu.mit.csail.sdg.alloy4graph.Graph; //导入依赖的package包/类
public static JPanel produceGraph(Universe universe) throws ErrorFatal {
  view = new State(universe);
  // if (proj == null) proj = new AlloyProjection();
  Graph graph = new Graph(view.getFontSize() / 12.0D);
  new GraphMaker(graph, universe);
  if (graph.nodes.size() == 0)
    new GraphNode(graph, "", "Due to your theme settings, every atom is hidden.",
        "Please click Theme and adjust your settings.");
  return new GraphViewer(graph);
}
 
开发者ID:ModelWriter,项目名称:Tarski,代码行数:11,代码来源:GraphMaker.java


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