Package civquest.util.swing

Examples of civquest.util.swing.Text


    this.pos = pos;
    repaint();
  }

  public void paintComponent(Graphics g) {
    Text text = new Text(g, 10, 0);
    if (pos == null) {
      text.writeAfterNewLine("No working field");
    } else {
      text.writeAfterNewLine("Information about working field ("
                   + pos.x + "," + pos.y + ")");
      text.verticalGap(5);

      drawHeightLevel(text, pos);
      drawVegetation(text, pos);
      drawTemperature(text, pos);
      drawHumidity(text, pos);
View Full Code Here


    Game game = Game.getGame();
    int turn = game.getTurn();
    Nation activeNation = game.getActiveNation();
    Nation currNation = (gameData == null ? null : gameData.getNation());

    Text text = new Text(g, 5, 15);
    text.write("Turn: " + turn + INFORMATION_SEPARATOR);

    if (activeNation == null) {
      text.write("No nation active.");
    } else {
      text.write("Nation ");

      Color activeNationColor  = session.getNationColor(activeNation.getID());
      text.write(activeNation.getName(), activeNationColor);
     
      text.write(" is active.");
    }
  }
View Full Code Here

TOP

Related Classes of civquest.util.swing.Text

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.