public class DialogFactory
extends java.lang.Object
Constructor and Description |
---|
DialogFactory(@NotNull java.awt.Image frameNW,
@NotNull java.awt.Image frameN,
@NotNull java.awt.Image frameNE,
@NotNull java.awt.Image frameW,
@NotNull java.awt.Image frameC,
@NotNull java.awt.Image frameE,
@NotNull java.awt.Image frameSW,
@NotNull java.awt.Image frameS,
@NotNull java.awt.Image frameSE,
@NotNull java.awt.Font titleFont,
@NotNull java.awt.Color titleColor,
@NotNull java.awt.Color titleBackgroundColor,
float frameAlpha,
@NotNull GuiFactory guiFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
float |
getFrameAlpha()
Returns the alpha value for the frame background.
|
@NotNull java.lang.Iterable<AbstractGUIElement> |
newDialog(@NotNull TooltipManager tooltipManager,
@NotNull JXCWindowRenderer windowRenderer,
@NotNull GUIElementListener elementListener,
@NotNull java.lang.String title)
Creates a new dialog.
|
public DialogFactory(@NotNull @NotNull java.awt.Image frameNW, @NotNull @NotNull java.awt.Image frameN, @NotNull @NotNull java.awt.Image frameNE, @NotNull @NotNull java.awt.Image frameW, @NotNull @NotNull java.awt.Image frameC, @NotNull @NotNull java.awt.Image frameE, @NotNull @NotNull java.awt.Image frameSW, @NotNull @NotNull java.awt.Image frameS, @NotNull @NotNull java.awt.Image frameSE, @NotNull @NotNull java.awt.Font titleFont, @NotNull @NotNull java.awt.Color titleColor, @NotNull @NotNull java.awt.Color titleBackgroundColor, float frameAlpha, @NotNull @NotNull GuiFactory guiFactory)
frameNW
- the north-west frame pictureframeN
- the north frame pictureframeNE
- the north-east frame pictureframeW
- the west frame pictureframeC
- the center frame pictureframeE
- the east frame pictureframeSW
- the south-west frame pictureframeS
- the south frame pictureframeSE
- the south-east frame picturetitleFont
- the font for the dialog titletitleColor
- the color for the dialog titletitleBackgroundColor
- the background color for the dialog titleframeAlpha
- the alpha value for the dialog background except for
the titleguiFactory
- the global GUI factory instance@NotNull public @NotNull java.lang.Iterable<AbstractGUIElement> newDialog(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull JXCWindowRenderer windowRenderer, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull java.lang.String title)
tooltipManager
- the tooltip manager to updatewindowRenderer
- the window renderer the dialog belongs toelementListener
- the element listener to notifytitle
- the dialog's title, or an empty string for no titlepublic float getFrameAlpha()