/**
* This method initializes this
*/
private void initialize() {
// --- Set appearance -----------------------------
this.setVisible(true);
this.setSize(300, 300);
this.setLayout(new BorderLayout());
this.setDoubleBuffered(true);
// --- Add components -----------------------------
this.add(this.getJPanelToolBars(), BorderLayout.WEST);
this.add(this.getGraphZoomScrollPane(), BorderLayout.CENTER);
this.addContainerListener(new ContainerAdapter() {
boolean doneAdded = false;
@Override
public void componentAdded(ContainerEvent ce) {
if (doneAdded==false) {
validate();
zoomSetInitialScalingAndMovement(getVisualizationViewer());
doneAdded=true;
}
}
});
}
BasicGraphGui.java 文件源码
java
阅读 33
收藏 0
点赞 0
评论 0
项目:AgentWorkbench
作者:
评论列表
文章目录