コード例 #1
0
  public ProjectTreeWindow(MesquiteModule ownerModule, BrowseHierarchy drawTask) {
    super(ownerModule, false);
    setWindowSize(300, 300);
    setWindowLocation(4, 4, false);
    this.ownerModule = ownerModule;
    setFont(new Font("SanSerif", Font.PLAIN, 10));

    //		getGraphicsArea().setLayout(new BorderLayout());
    // getGraphicsArea().setBackground(Color.cyan);
    if (drawTask != null) {
      browser = drawTask.makeHierarchyPanel();
      browser.setTitle(null);
      addToWindow(browser);

      browser.setSize(getWidth(), getHeight() - searchHeight);
      browser.setLocation(0, 0);
      browser.showTypes(true);
      browser.setBackground(Color.white);
      // browser.setBackground(ColorDistribution.projectLight[getColorScheme()]);
      // checking for memory leaks
      browser.setRootNode(MesquiteTrunk.mesquiteTrunk.getProjectList());
      searchStrip = new HelpSearchStrip(this, false);
      addToWindow(searchStrip);
      searchStrip.setBounds(4, getHeight() - searchHeight, getWidth() - 4, searchHeight);
      searchStrip.setVisible(true);
      browser.setVisible(true);
      setShowAnnotation(true);
      incrementAnnotationArea();
      setShowExplanation(true);
      incrementExplanationArea();
      setExplanation(
          "Configuration of modules loaded: " + MesquiteTrunk.mesquiteTrunk.getConfiguration());
    }
    resetTitle();
  }
コード例 #2
0
 /*.................................................................................................................*/
 public void windowResized() {
   super.windowResized();
   if (MesquiteWindow.checkDoomed(this)) return;
   setExplanation(
       "Configuration of modules loaded: " + MesquiteTrunk.mesquiteTrunk.getConfiguration());
   if (browser != null) {
     browser.setSize(getWidth(), getHeight() - searchHeight);
     browser.setLocation(0, 0);
   }
   if (searchStrip != null) {
     searchStrip.setLocation(4, getHeight() - searchHeight);
     searchStrip.setSize(getWidth() - 4, searchHeight);
   }
   MesquiteWindow.uncheckDoomed(this);
 }
コード例 #3
0
 public void repaintSearchStrip() {
   searchStrip.repaint();
 }