Crossfire JXClient, Trunk
Public Member Functions | Private Attributes | List of all members
com.realtime.crossfire.jxclient.skin.factory.DialogFactory Class Reference
Collaboration diagram for com.realtime.crossfire.jxclient.skin.factory.DialogFactory:
Collaboration graph

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< AbstractGUIElementnewDialog (@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
 

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: