Examples of TComponent


Examples of com.golden.gamedev.gui.toolkit.TComponent

      "ToolTip"
    };
  }
 
  public BufferedImage[] createUI(TComponent component, int w, int h) {
    TComponent tooltip = ((TToolTip) component).getToolTipComponent();
    if (tooltip == null) {
      return null;
    }
   
    String tipText = tooltip.getToolTipText();
    String[] document = GraphicsUtil.parseString(tipText);
   
    GameFont font = (GameFont) this.get("Text Font", component);
    Insets inset = (Insets) this.get("Text Insets", component);
    int space = ((Integer) this.get("Text Vertical Space Integer",
View Full Code Here

Examples of com.golden.gamedev.gui.toolkit.TComponent

   
    return ui;
  }
 
  public void processUI(TComponent component, BufferedImage[] ui) {
    TComponent tooltip = ((TToolTip) component).getToolTipComponent();
    if (tooltip == null) {
      return;
    }
   
    String tipText = tooltip.getToolTipText();
   
    Graphics2D g = ui[0].createGraphics();
    GraphicsUtil.drawString(g, GraphicsUtil.parseString(tipText), ui[0]
            .getWidth(), ui[0].getHeight(), (GameFont) this.get(
            "Text Font", component), (Color) this.get("Text Color",
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.