public class CheckBoxFactory
extends java.lang.Object
Constructor and Description |
---|
CheckBoxFactory(@NotNull java.awt.image.BufferedImage checked,
@NotNull java.awt.image.BufferedImage unchecked,
@NotNull java.awt.Font font,
@NotNull java.awt.Color color,
@NotNull GuiFactory guiFactory)
Creates a new instance.
|
Modifier and Type | Method and Description |
---|---|
@NotNull AbstractGUIElement |
newCheckBox(@NotNull TooltipManager tooltipManager,
@NotNull GUIElementListener elementListener,
@NotNull java.lang.String name,
@NotNull CheckBoxOption option,
@NotNull java.lang.String text)
Creates a new checkbox.
|
public CheckBoxFactory(@NotNull @NotNull java.awt.image.BufferedImage checked, @NotNull @NotNull java.awt.image.BufferedImage unchecked, @NotNull @NotNull java.awt.Font font, @NotNull @NotNull java.awt.Color color, @NotNull @NotNull GuiFactory guiFactory)
checked
- the image for the "checked" stateunchecked
- the image for the "unchecked" statefont
- the font to usecolor
- the text colorguiFactory
- the global GUI factory instance@NotNull public @NotNull AbstractGUIElement newCheckBox(@NotNull @NotNull TooltipManager tooltipManager, @NotNull @NotNull GUIElementListener elementListener, @NotNull @NotNull java.lang.String name, @NotNull @NotNull CheckBoxOption option, @NotNull @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