Package rinde.sim.ui.renderers

Examples of rinde.sim.ui.renderers.PanelRenderer


    int prefSize = 0;
    for (final PanelRenderer p : panels) {
      prefSize = Math.max(p.preferredSize(), prefSize);
    }
    if (panels.size() == 1) {
      final PanelRenderer p = panels.iterator().next();
      final Group g = new Group(parent, SWT.SHADOW_NONE);
      p.initializePanel(g);
    } else {
      final TabFolder tab = new TabFolder(parent, SWT.NONE);

      for (final PanelRenderer p : panels) {
        final TabItem ti = new TabItem(tab, SWT.NONE);
        ti.setText(p.getName());
        final Composite comp = new Composite(tab, SWT.NONE);
        ti.setControl(comp);
        p.initializePanel(comp);
      }
    }
    return prefSize;
  }
View Full Code Here

TOP

Related Classes of rinde.sim.ui.renderers.PanelRenderer

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.