Package org.newdawn.slick

Examples of org.newdawn.slick.Font.drawString()


    font.drawString(this.getOX() + 10, y, this.name);

    y += 20;
    font.drawString(x + 100, y, I18n.getFirstToUpper("resource.price"));
    font.drawString(x + 200, y, I18n.getFirstToUpper("resource.income"));
    font.drawString(x + 300, y, I18n.getFirstToUpper("resource.store"));

    y += 20;
    g.drawLine(x, y, this.getOX() + 400, y);
    final int pitch = 20;
    Resource[] resources = Resource.values();
View Full Code Here


    y += 20;
    g.drawLine(x, y, this.getOX() + 400, y);
    final int pitch = 20;
    Resource[] resources = Resource.values();
    for (Resource r : resources) {
      font.drawString(x, y, FontHelper.firstToUpper(r.getI18n()));

      font.drawString(x + 100, y, this.cost.get(r).toString() + " U");
      font.drawString(x + 200, y, this.prod.get(r).toString() + " UPM");
      font.drawString(x + 300, y, this.store.get(r).toString() + " U");
      y += pitch;
View Full Code Here

    final int pitch = 20;
    Resource[] resources = Resource.values();
    for (Resource r : resources) {
      font.drawString(x, y, FontHelper.firstToUpper(r.getI18n()));

      font.drawString(x + 100, y, this.cost.get(r).toString() + " U");
      font.drawString(x + 200, y, this.prod.get(r).toString() + " UPM");
      font.drawString(x + 300, y, this.store.get(r).toString() + " U");
      y += pitch;
    }
  }
View Full Code Here

    Resource[] resources = Resource.values();
    for (Resource r : resources) {
      font.drawString(x, y, FontHelper.firstToUpper(r.getI18n()));

      font.drawString(x + 100, y, this.cost.get(r).toString() + " U");
      font.drawString(x + 200, y, this.prod.get(r).toString() + " UPM");
      font.drawString(x + 300, y, this.store.get(r).toString() + " U");
      y += pitch;
    }
  }
View Full Code Here

    for (Resource r : resources) {
      font.drawString(x, y, FontHelper.firstToUpper(r.getI18n()));

      font.drawString(x + 100, y, this.cost.get(r).toString() + " U");
      font.drawString(x + 200, y, this.prod.get(r).toString() + " UPM");
      font.drawString(x + 300, y, this.store.get(r).toString() + " U");
      y += pitch;
    }
  }

  @Override
View Full Code Here

      UIHelper.drawWindow(g, x, y, w, h, 5);

      // The info label
      Font font = FontHelper.getFont(FontHelper.HEMI_HEAD, Color.white,
          16);
      font.drawString(x + 15, y + 15,
          FontHelper.firstToUpper(I18n.get("colony.create_label"))
              + " :");

      this.cancelColonyButton.setPosition(x + 10, y + 65);
      this.createColonyButton.setPosition(x + w - 10
View Full Code Here

    // Horizontal lines
    dx = this.ox;
    dy = this.oy;
    g.drawLine(dx, dy, dx + this.width, dy);
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource"));

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.price"));

    dx += this.columnWidth;
View Full Code Here

    dy = this.oy;
    g.drawLine(dx, dy, dx + this.width, dy);
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource"));

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.price"));

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.income"));

    dx += this.columnWidth;
View Full Code Here

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.price"));

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.income"));

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.store"));

    dx = this.ox;
View Full Code Here

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.income"));

    dx += this.columnWidth;
    font.drawString(dx + cellPadding, dy, I18n.getFirstToUpper("resource.store"));

    dx = this.ox;
    dy += fontSize;
    String temp;
    for (Resource r : resources) {
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. 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.