Package com.googlecode.jumpnevolve.graphics.gui.objects

Examples of com.googlecode.jumpnevolve.graphics.gui.objects.InterfaceLabel


  private void updateCon() {
    GridContainer con = new GridContainer(this.contents.size()
        + this.buttons.size(), 2);
    for (int i = 0; i < this.contents.size(); i++) {
      con.add(new InterfaceLabel(this.contents.get(i).name, 12), i, 0,
          GridContainer.MODUS_X_LEFT, GridContainer.MODUS_DEFAULT);
      con.add(this.contents.get(i).part, i, 1,
          GridContainer.MODUS_X_LEFT, GridContainer.MODUS_DEFAULT);
    }
    for (int i = 0; i < this.buttons.size() - 1; i++) {
View Full Code Here


  private void calculateDimensions() {
    float height = 0, width = 0;
    for (DialogPart part : this.contents) {
      width = Math.max(part.part.getNeededSize().getXRange(), width);
      width = Math.max(new InterfaceLabel(part.name, 12).getNeededSize()
          .getXRange(), width);
      height = Math.max(part.part.getNeededSize().getYRange(), height);
    }
    for (InterfaceTextButton button : this.buttons) {
      width = Math.max(button.getNeededSize().getXRange(), width);
View Full Code Here

TOP

Related Classes of com.googlecode.jumpnevolve.graphics.gui.objects.InterfaceLabel

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.