Crossfire JXClient, Trunk
com.realtime.crossfire.jxclient.skin.factory.DialogFactory Class Reference

A factory class to create "textbutton" instances. More...

+ Collaboration diagram for com.realtime.crossfire.jxclient.skin.factory.DialogFactory:

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)
 Creates a new instance. More...
 
float getFrameAlpha ()
 Returns the alpha value for the frame background. More...
 
Iterable< AbstractGUIElementnewDialog (@NotNull final TooltipManager tooltipManager, @NotNull final JXCWindowRenderer windowRenderer, @NotNull final GUIElementListener elementListener, @NotNull final String title)
 Creates a new dialog. More...
 

Private Attributes

final float frameAlpha
 The alpha transparency for the dialog background, 1 is opaque and 0 is transparent. More...
 
final Image frameC
 The center frame picture. More...
 
final Image frameE
 The east frame picture. More...
 
final Image frameN
 The north frame picture. More...
 
final Image frameNE
 The north-east frame picture. More...
 
final Image frameNW
 The north-west frame picture. More...
 
final Image frameS
 The south frame picture. More...
 
final Image frameSE
 The south-east frame picture. More...
 
final Image frameSW
 The south-west frame picture. More...
 
final Image frameW
 The west frame picture. More...
 
final GuiFactory guiFactory
 The global GuiFactory instance. More...
 
final Color titleBackgroundColor
 The background color for the dialog title. More...
 
final Color titleColor
 The color for the dialog title. More...
 
final Font titleFont
 The font for the dialog title. More...
 

Detailed Description

A factory class to create "textbutton" instances.

Author
Andreas Kirschbaum

Definition at line 44 of file DialogFactory.java.

Constructor & Destructor Documentation

◆ DialogFactory()

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.

Parameters
frameNWthe north-west frame picture
frameNthe north frame picture
frameNEthe north-east frame picture
frameWthe west frame picture
frameCthe center frame picture
frameEthe east frame picture
frameSWthe south-west frame picture
frameSthe south frame picture
frameSEthe south-east frame picture
titleFontthe font for the dialog title
titleColorthe color for the dialog title
titleBackgroundColorthe background color for the dialog title
frameAlphathe alpha value for the dialog background except for the title
guiFactorythe 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.

Member Function Documentation

◆ getFrameAlpha()

float com.realtime.crossfire.jxclient.skin.factory.DialogFactory.getFrameAlpha ( )

Returns the alpha value for the frame background.

Returns
alpha value, 1 is opaque and 0 totally transparent

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().

+ Here is the caller graph for this function:

◆ newDialog()

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 
)

Member Data Documentation

◆ frameAlpha

final float com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameAlpha
private

◆ frameC

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameC
private

◆ frameE

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameE
private

◆ frameN

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameN
private

◆ frameNE

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameNE
private

◆ frameNW

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameNW
private

◆ frameS

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameS
private

◆ frameSE

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameSE
private

◆ frameSW

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameSW
private

◆ frameW

final Image com.realtime.crossfire.jxclient.skin.factory.DialogFactory.frameW
private

◆ guiFactory

final GuiFactory com.realtime.crossfire.jxclient.skin.factory.DialogFactory.guiFactory
private

◆ titleBackgroundColor

final Color com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleBackgroundColor
private

◆ titleColor

final Color com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleColor
private

◆ titleFont

final Font com.realtime.crossfire.jxclient.skin.factory.DialogFactory.titleFont
private

The documentation for this class was generated from the following file: