}
return ui;
}
public void processUI(TComponent component, BufferedImage[] ui) {
TButton button = (TButton) component;
String[] color = new String[] {
"Text Color", "Text Over Color",
"Text Pressed Color", "Text Disabled Color"
};
String[] font = new String[] {
"Text Font", "Text Over Font",
"Text Pressed Font", "Text Disabled Font"
};
String[] document = GraphicsUtil.parseString(button.getText());
for (int i=0;i < 4;i++) {
Graphics2D g = ui[i].createGraphics();
g.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
RenderingHints.VALUE_ANTIALIAS_ON);
GraphicsUtil.drawString(g, document,
button.getWidth(), button.getHeight(),
(GameFont) get(font[i], component),
(Color) get(color[i], component),
(Integer) get("Text Horizontal Alignment Integer", component),
(Integer) get("Text Vertical Alignment Integer", component),
(Insets) get("Text Insets", component),