`
cuijunrong
  • 浏览: 9000 次
  • 性别: Icon_minigender_1
  • 来自: 上海
最近访客 更多访客>>
社区版块
存档分类
最新评论

jgraph 之 鹰眼导航

阅读更多
GraphNavigator navigator = null;
JGraph graph = null;
GraphLayoutCache view = null;
GraphModel model = null;

graph = new JGraph(model, view);
navigator = GraphNavigator.createInstance(new JGraph(model, view));
//当前要导航的graph
navigator.setCurrentGraph(graph);
//将导航放个容器里
JScrollPane navPanel = new JScrollPane();
navPanel.getViewport().add(navigator);
分享到:
评论

相关推荐

Global site tag (gtag.js) - Google Analytics