Click here to Skip to main content
15,893,487 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
Can anyone explain jgraphx architecture?
diffrence between JGraphModelAdapter and JGraphXAdapter?
Java
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" );
Posted
Updated 14-Mar-14 21:35pm
v2

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900