Class CheckBoxFactory


  • public class CheckBoxFactory
    extends java.lang.Object
    A factory class to create "checkbox" instances.
    • Constructor Summary

      Constructors 
      Constructor 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.
    • Constructor Detail

      • CheckBoxFactory

        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)
        Creates 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
        guiFactory - the global GUI factory instance
    • Method Detail

      • newCheckBox

        @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)
        Creates a new checkbox.
        Parameters:
        tooltipManager - the tooltip manager to update
        elementListener - the element listener to notify
        name - the name of this element
        option - the option to affect
        text - the button text
        Returns:
        the new checkbox