本文整理汇总了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);
}
示例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);
}
示例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);
}