java.lang.Object com.realtime.crossfire.jxclient.skin.factory.DialogFactory
public class DialogFactory
A factory class to create "textbutton" instances.
Field Summary | |
---|---|
private float |
alpha
y The alpha value for the dialog background except for the title. |
private java.awt.image.BufferedImage |
frameC
The center frame picture. |
private java.awt.image.BufferedImage |
frameE
The east frame picture. |
private java.awt.image.BufferedImage |
frameN
The north frame picture. |
private java.awt.image.BufferedImage |
frameNE
The north-east frame picture. |
private java.awt.image.BufferedImage |
frameNW
The north-west frame picture. |
private java.awt.image.BufferedImage |
frameS
The south frame picture. |
private java.awt.image.BufferedImage |
frameSE
The south-east frame picture. |
private java.awt.image.BufferedImage |
frameSW
The south-west frame picture. |
private java.awt.image.BufferedImage |
frameW
The west frame picture. |
private int |
sizeE
The size of the east border in pixels. |
private int |
sizeN
The size of the north border in pixels. |
private int |
sizeS
The size of the south border in pixels. |
private int |
sizeW
The size of the west border in pixels. |
private java.awt.Color |
titleBackgroundColor
The background color for the dialog title. |
private java.awt.Color |
titleColor
The color for the dialog title. |
private java.awt.Font |
titleFont
The font for the dialog title. |
Constructor Summary | |
---|---|
DialogFactory(java.awt.image.BufferedImage frameNW,
java.awt.image.BufferedImage frameN,
java.awt.image.BufferedImage frameNE,
java.awt.image.BufferedImage frameW,
java.awt.image.BufferedImage frameC,
java.awt.image.BufferedImage frameE,
java.awt.image.BufferedImage frameSW,
java.awt.image.BufferedImage frameS,
java.awt.image.BufferedImage frameSE,
java.awt.Font titleFont,
java.awt.Color titleColor,
java.awt.Color titleBackgroundColor,
float alpha)
Create a new instance. |
Method Summary | |
---|---|
java.lang.Iterable<GUIElement> |
newDialog(TooltipManager tooltipManager,
JXCWindowRenderer windowRenderer,
GUIElementListener elementListener,
java.lang.String name,
Expression w,
Expression h,
java.lang.String title)
Create a new dialog. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
private final float alpha
@NotNull private final java.awt.image.BufferedImage frameC
@NotNull private final java.awt.image.BufferedImage frameE
@NotNull private final java.awt.image.BufferedImage frameN
@NotNull private final java.awt.image.BufferedImage frameNE
@NotNull private final java.awt.image.BufferedImage frameNW
@NotNull private final java.awt.image.BufferedImage frameS
@NotNull private final java.awt.image.BufferedImage frameSE
@NotNull private final java.awt.image.BufferedImage frameSW
@NotNull private final java.awt.image.BufferedImage frameW
private final int sizeE
private final int sizeN
private final int sizeS
private final int sizeW
private final java.awt.Color titleBackgroundColor
private final java.awt.Color titleColor
private final java.awt.Font titleFont
Constructor Detail |
---|
public DialogFactory(@NotNull java.awt.image.BufferedImage frameNW, @NotNull java.awt.image.BufferedImage frameN, @NotNull java.awt.image.BufferedImage frameNE, @NotNull java.awt.image.BufferedImage frameW, @NotNull java.awt.image.BufferedImage frameC, @NotNull java.awt.image.BufferedImage frameE, @NotNull java.awt.image.BufferedImage frameSW, @NotNull java.awt.image.BufferedImage frameS, @NotNull java.awt.image.BufferedImage frameSE, @NotNull java.awt.Font titleFont, @NotNull java.awt.Color titleColor, @NotNull java.awt.Color titleBackgroundColor, float alpha)
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.alpha
- The alpha value for the dialog background except for the
title.Method Detail |
---|
@NotNull public java.lang.Iterable<GUIElement> newDialog(@NotNull TooltipManager tooltipManager, @NotNull JXCWindowRenderer windowRenderer, @NotNull GUIElementListener elementListener, @NotNull java.lang.String name, @NotNull Expression w, @NotNull Expression h, @NotNull java.lang.String title)
tooltipManager
- the tooltip manager to updatewindowRenderer
- the window renderer the dialog belongs toelementListener
- the element listener to notifyname
- The base name of the dialog's gui elements.w
- The width of the dialog, including the frames.h
- The height of the dialog, including the frames.title
- The dialog's title, or an empty string for no title.