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

Public Member Functions

 CheckBoxFactory (@NotNull final BufferedImage checked, @NotNull final BufferedImage unchecked, @NotNull final Font font, @NotNull final Color color, @NotNull final GuiFactory guiFactory)
 
AbstractGUIElement newCheckBox (@NotNull final TooltipManager tooltipManager, @NotNull final GUIElementListener elementListener, @NotNull final String name, @NotNull final CheckBoxOption option, @NotNull final String text)
 

Private Attributes

final BufferedImage checked
 
final Color color
 
final Font font
 
final GuiFactory guiFactory
 
final BufferedImage unchecked
 

Detailed Description

A factory class to create "checkbox" instances.

Author
Andreas Kirschbaum

Definition at line 40 of file CheckBoxFactory.java.

Constructor & Destructor Documentation

◆ CheckBoxFactory()

com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.CheckBoxFactory ( @NotNull final BufferedImage  checked,
@NotNull final BufferedImage  unchecked,
@NotNull final Font  font,
@NotNull final Color  color,
@NotNull final GuiFactory  guiFactory 
)

Creates a new instance.

Parameters
checkedthe image for the "checked" state
uncheckedthe image for the "unchecked" state
fontthe font to use
colorthe text color
guiFactorythe global GUI factory instance

Definition at line 80 of file CheckBoxFactory.java.

References com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.checked, com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.color, com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.font, com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.guiFactory, and com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.unchecked.

Member Function Documentation

◆ newCheckBox()

AbstractGUIElement com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.newCheckBox ( @NotNull final TooltipManager  tooltipManager,
@NotNull final GUIElementListener  elementListener,
@NotNull final String  name,
@NotNull final CheckBoxOption  option,
@NotNull final String  text 
)

Creates a new checkbox.

Parameters
tooltipManagerthe tooltip manager to update
elementListenerthe element listener to notify
namethe name of this element
optionthe option to affect
textthe button text
Returns
the new checkbox

Definition at line 98 of file CheckBoxFactory.java.

References com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.checked, com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.color, com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.font, com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.guiFactory, and com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.unchecked.

Referenced by com.realtime.crossfire.jxclient.skin.io.JXCSkinLoader.parseCheckbox().

Here is the caller graph for this function:

Member Data Documentation

◆ checked

final BufferedImage com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.checked
private

◆ color

final Color com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.color
private

◆ font

final Font com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.font
private

◆ guiFactory

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

◆ unchecked

final BufferedImage com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory.unchecked
private

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