Package de.matthiasmann.twl

Examples of de.matthiasmann.twl.Label


  public void bindTo(RootPane pane) {
    pane.add(title);
  }

  private void createTitle() {
    title = new Label();
    title.setTheme("toolTipFont");
  }
View Full Code Here


  /**
   * Initialize the label with a centered style for text rendering
   */
  private void createLabel() {
    label = new Label();
    label.setTheme(THEME_ENABLED);
  }
View Full Code Here

    this.colony = colony;
    this.setHeight(HEIGHT);
    this.setWidth(WIDTH);
    this.labels = new HashMap<Resource, Label>();
    for (Resource r : Resource.values()) {
      Label l = new Label();
      l.setTheme("resourceLabel");
      l.setSize(80, 15);
      twlRootPane.add(l);
      this.labels.put(r, l);
    }

    this.researchPB = new ProgressBar();
View Full Code Here

      UIHelper.drawDarkBox(g, x, y += 3, 24, 20);
      img = ImageManager.getGfx(r.getGfxBase() + "-small");
      img.draw(x + 3, y, r.getColor());

      String value = resourceMap.get(r).toString();
      Label lbl = this.labels.get(r);

      final int zoneHeight = 15;
      UIHelper.drawDarkBox(g, x + 24, y, lbl.getWidth() + 4, zoneHeight);
      lbl.setPosition(x + 24, y);
      lbl.setText(value);
      lbl.setVisible(true);

      y += 20;
    }

  }
View Full Code Here

    this.researchProgress.setY(80);

    storeLabels = new HashMap<Resource, Label>();
    costLabels = new HashMap<Resource, Label>();
    for (Resource r : Resource.values()) {
      Label ls = new Label();
      ls.setTheme("resourceLabel");
      ls.setSize(80, 15);
      add(ls);
      storeLabels.put(r, ls);

      Label lc = new Label();
      lc.setTheme("resourceLabel");
      lc.setSize(80, 15);
      add(lc);
      costLabels.put(r, lc);
    }

    technologyDescription = new MultilineLabel("");
View Full Code Here

TOP

Related Classes of de.matthiasmann.twl.Label

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.