public class CheckBoxFactory
extends java.lang.Object
Modifier and Type | Field and Description |
---|---|
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 and Description |
---|
CheckBoxFactory(java.awt.image.BufferedImage checked,
java.awt.image.BufferedImage unchecked,
java.awt.Font font,
java.awt.Color color)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
AbstractGUIElement |
newCheckBox(TooltipManager tooltipManager,
GUIElementListener elementListener,
java.lang.String name,
CheckBoxOption option,
java.lang.String text)
Creates a new checkbox.
|
@NotNull private final java.awt.image.BufferedImage checked
@NotNull private final java.awt.Color color
@NotNull private final java.awt.Font font
@NotNull private final java.awt.image.BufferedImage unchecked
public CheckBoxFactory(@NotNull java.awt.image.BufferedImage checked, @NotNull java.awt.image.BufferedImage unchecked, @NotNull java.awt.Font font, @NotNull java.awt.Color color)
checked
- the image for the "checked" stateunchecked
- the image for the "unchecked" statefont
- the font to usecolor
- the text color@NotNull public AbstractGUIElement newCheckBox(@NotNull TooltipManager tooltipManager, @NotNull GUIElementListener elementListener, @NotNull java.lang.String name, @NotNull CheckBoxOption option, @NotNull java.lang.String text)
tooltipManager
- the tooltip manager to updateelementListener
- the element listener to notifyname
- the name of this elementoption
- the option to affecttext
- the button text