コード例 #1
0
  private void commonConstructor() {
    System.err.println("Render Navigator View ...");
    this.startTimeMSecs = System.currentTimeMillis();
    // isDebugPrint = true;
    isDebugPrint = false;
    // timelineColorMap = createTimelineColorMap();
    highlightPathNodesList = null;
    this.setName(navigatorFrame.getTitle());
    viewName = ViewConstants.NAVIGATOR_VIEW;

    navLinkMap = new HashMap();
    entityNavNodeMap = new HashMap();

    setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));

    jGoView = new NavigatorJGoView(this);
    jGoView.addViewListener(createViewListener());
    jGoView.setBackground(ViewConstants.VIEW_BACKGROUND_COLOR);
    add(jGoView, BorderLayout.NORTH);
    jGoView.validate();
    jGoView.setVisible(true);
    this.setVisible(true);
    // SwingUtilities.invokeLater( runInit);
    final SwingWorker worker =
        new SwingWorker() {
          public Object construct() {
            init();
            return null;
          }
        };
    worker.start();
  } // end commonConstructor