Crossfire JXClient, Trunk
|
Public Member Functions | |
DialogFactory (@NotNull final Image frameNW, @NotNull final Image frameN, @NotNull final Image frameNE, @NotNull final Image frameW, @NotNull final Image frameC, @NotNull final Image frameE, @NotNull final Image frameSW, @NotNull final Image frameS, @NotNull final Image frameSE, @NotNull final Font titleFont, @NotNull final Color titleColor, @NotNull final Color titleBackgroundColor, final float frameAlpha, @NotNull final GuiFactory guiFactory) | |
float | getFrameAlpha () |
Iterable< AbstractGUIElement > | newDialog (@NotNull final TooltipManager tooltipManager, @NotNull final JXCWindowRenderer windowRenderer, @NotNull final GUIElementListener elementListener, @NotNull final String title) |
Private Attributes | |
final float | frameAlpha |
final Image | frameC |
final Image | frameE |
final Image | frameN |
final Image | frameNE |
final Image | frameNW |
final Image | frameS |
final Image | frameSE |
final Image | frameSW |
final Image | frameW |
final GuiFactory | guiFactory |
final Color | titleBackgroundColor |
final Color | titleColor |
final Font | titleFont |
A factory class to create "textbutton" instances.
Definition at line 44 of file DialogFactory.java.
com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory | ( | @NotNull final Image | frameNW, |
@NotNull final Image | frameN, | ||
@NotNull final Image | frameNE, | ||
@NotNull final Image | frameW, | ||
@NotNull final Image | frameC, | ||
@NotNull final Image | frameE, | ||
@NotNull final Image | frameSW, | ||
@NotNull final Image | frameS, | ||
@NotNull final Image | frameSE, | ||
@NotNull final Font | titleFont, | ||
@NotNull final Color | titleColor, | ||
@NotNull final Color | titleBackgroundColor, | ||
final float | frameAlpha, | ||
@NotNull final GuiFactory | guiFactory | ||
) |
Creates a new instance. The border images must have matching sizes.
frameNW | the north-west frame picture |
frameN | the north frame picture |
frameNE | the north-east frame picture |
frameW | the west frame picture |
frameC | the center frame picture |
frameE | the east frame picture |
frameSW | the south-west frame picture |
frameS | the south frame picture |
frameSE | the south-east frame picture |
titleFont | the font for the dialog title |
titleColor | the color for the dialog title |
titleBackgroundColor | the background color for the dialog title |
frameAlpha | the alpha value for the dialog background except for the title |
guiFactory | the global GUI factory instance |
Definition at line 146 of file DialogFactory.java.
References com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameAlpha, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameC, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameE, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameN, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameNE, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameNW, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameS, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameSE, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameSW, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameW, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.guiFactory, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleBackgroundColor, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleColor, and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleFont.
float com.realtime.crossfire.jxclient.skin.factory.DialogFactory.getFrameAlpha | ( | ) |
Returns the alpha value for the frame background.
Definition at line 233 of file DialogFactory.java.
References com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameAlpha.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseGauge(), and com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseTextGauge().
Iterable<AbstractGUIElement> com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog | ( | @NotNull final TooltipManager | tooltipManager, |
@NotNull final JXCWindowRenderer | windowRenderer, | ||
@NotNull final GUIElementListener | elementListener, | ||
@NotNull final String | title | ||
) |
Creates a new dialog.
tooltipManager | the tooltip manager to update |
windowRenderer | the window renderer the dialog belongs to |
elementListener | the element listener to notify |
title | the dialog's title, or an empty string for no title |
Definition at line 218 of file DialogFactory.java.
References com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameAlpha, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameC, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameE, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameN, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameNE, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameNW, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameS, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameSE, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameSW, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameW, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.guiFactory, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleBackgroundColor, com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleColor, and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleFont.
Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseDialog().
|
private |
The alpha transparency for the dialog background, 1 is opaque and 0 is transparent.
Definition at line 120 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), com.realtime.crossfire.jxclient.skin.factory.DialogFactory.getFrameAlpha(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The center frame picture.
Definition at line 74 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The east frame picture.
Definition at line 80 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The north frame picture.
Definition at line 56 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The north-east frame picture.
Definition at line 62 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The north-west frame picture.
Definition at line 50 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The south frame picture.
Definition at line 92 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The south-east frame picture.
Definition at line 98 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The south-west frame picture.
Definition at line 86 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The west frame picture.
Definition at line 68 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The global GuiFactory instance.
Definition at line 126 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The background color for the dialog title.
Definition at line 114 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The color for the dialog title.
Definition at line 108 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().
|
private |
The font for the dialog title.
Definition at line 103 of file DialogFactory.java.
Referenced by com.realtime.crossfire.jxclient.skin.factory.DialogFactory.DialogFactory(), and com.realtime.crossfire.jxclient.skin.factory.DialogFactory.newDialog().