com.realtime.crossfire.jxclient.skin.factory
Class CheckBoxFactory

java.lang.Object
  extended by com.realtime.crossfire.jxclient.skin.factory.CheckBoxFactory

public class CheckBoxFactory
extends java.lang.Object

A factory class to create "checkbox" instances.


Field Summary
private  java.awt.image.BufferedImage checked
          The image for the "checked" state.
private  java.awt.Color color
          The text color.
private  java.awt.Font font
          The font to use.
private  java.awt.image.BufferedImage unchecked
          The image for the "unchecked" state.
 
Constructor Summary
CheckBoxFactory(java.awt.image.BufferedImage checked, java.awt.image.BufferedImage unchecked, java.awt.Font font, java.awt.Color color)
          Create a new instance.
 
Method Summary
 GUIElement newCheckBox(TooltipManager tooltipManager, GUIElementListener elementListener, java.lang.String name, Extent extent, CheckBoxOption option, java.lang.String text)
          Create a new checkbox.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

checked

@NotNull
private final java.awt.image.BufferedImage checked
The image for the "checked" state.


color

@NotNull
private final java.awt.Color color
The text color.


font

@NotNull
private final java.awt.Font font
The font to use.


unchecked

@NotNull
private final java.awt.image.BufferedImage unchecked
The image for the "unchecked" state.

Constructor Detail

CheckBoxFactory

public CheckBoxFactory(@NotNull
                       java.awt.image.BufferedImage checked,
                       @NotNull
                       java.awt.image.BufferedImage unchecked,
                       @NotNull
                       java.awt.Font font,
                       @NotNull
                       java.awt.Color color)
Create a new instance.

Parameters:
checked - The image for the "checked" state.
unchecked - The image for the "unchecked" state.
font - The font to use.
color - The text color.
Method Detail

newCheckBox

@NotNull
public GUIElement newCheckBox(@NotNull
                                      TooltipManager tooltipManager,
                                      @NotNull
                                      GUIElementListener elementListener,
                                      @NotNull
                                      java.lang.String name,
                                      @NotNull
                                      Extent extent,
                                      @NotNull
                                      CheckBoxOption option,
                                      @NotNull
                                      java.lang.String text)
Create a new checkbox.

Parameters:
tooltipManager - the tooltip manager to update
elementListener - the element listener to notify
name - The name of this element.
extent - the extent of this element
option - The option to affect.
text - The button text.
Returns:
The new checkbox.