本文介绍了什么是jgrapht库中的JGraphModelAdapter?为什么我们需要呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

任何人都可以解释jgraphx架构吗?

在JGraphModelAdapter和JGraphXAdapter之间的差异?

Can anyone explain jgraphx architecture?
diffrence between JGraphModelAdapter and JGraphXAdapter?

JGraphModelAdapter m_jgAdapter;
ListenableGraph g = new ListenableDirectedGraph( DefaultEdge.class );

// create a visualization using JGraph, via an adapter
m_jgAdapter = new JGraphModelAdapter( g );

JGraph jgraph = new JGraph( m_jgAdapter );

adjustDisplaySettings( jgraph );
getContentPane(  ).add( jgraph );
resize( DEFAULT_SIZE );

// add some sample data (graph manipulated via JGraphT)
g.addVertex( "v1" );
g.addVertex( "v2" );
g.addVertex( "v3" );

推荐答案

这篇关于什么是jgrapht库中的JGraphModelAdapter?为什么我们需要呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

07-31 06:54