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);

你可能感兴趣的:(jgraph)