Package com.golden.gamedev.gui

Examples of com.golden.gamedev.gui.TLabel


   
    return ui;
  }
 
  public void processUI(TComponent component, BufferedImage[] ui) {
    TLabel label = (TLabel) component;
   
    String[] color = new String[] {
            "Text Color", "Text Disabled Color"
    };
    String[] font = new String[] {
            "Text Font", "Text Disabled Font"
    };
   
    String[] document = GraphicsUtil.parseString(label.getText());
    for (int i = 0; i < 2; i++) {
      Graphics2D g = ui[i].createGraphics();
      GraphicsUtil.drawString(g, document, label.getWidth(), label
              .getHeight(), (GameFont) this.get(font[i], component),
              (Color) this.get(color[i], component), (Integer) this.get(
                      "Text Horizontal Alignment Integer", component),
              (Integer) this.get("Text Vertical Alignment Integer",
                      component), (Insets) this.get("Text Insets",
View Full Code Here


      g.dispose();
    }
  }
 
  public void renderUI(Graphics2D g, int x, int y, TComponent component, BufferedImage[] ui) {
    TLabel label = (TLabel) component;
   
    if (!label.isEnabled()) {
      g.drawImage(ui[1], x, y, null);
    }
    else {
      g.drawImage(ui[0], x, y, null);
    }
View Full Code Here

TOP

Related Classes of com.golden.gamedev.gui.TLabel

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.