Class HudWidgetFactory

java.lang.Object
com.explodingpixels.macwidgets.HudWidgetFactory

public class HudWidgetFactory extends Object
A factory for creating HUD style widgets. These widgets should be added to a HudWindow.
  • Method Details

    • createHudLabel

      public static JLabel createHudLabel(String labelText)
      Creates a Heads Up Display (HUD) style label, similar to that seen in various iApps (e.g. iPhoto).

      Parameters:
      labelText - the text of the label.
      Returns:
      the HUD style label.
      See Also:
    • createHudButton

      public static JButton createHudButton(String buttonText)
      Creates a Heads Up Display (HUD) style button, similar to that seen in various iApps (e.g. iPhoto).

      Parameters:
      buttonText - the text of the button.
      Returns:
      the HUD style button.
      See Also:
    • createHudCheckBox

      public static JCheckBox createHudCheckBox(String checkBoxText)
      Creates a Heads Up Display (HUD) style check box, similar to that seen in various iApps (e.g. iPhoto).

      Parameters:
      checkBoxText - the text of the check box.
      Returns:
      the HUD style check box.
      See Also:
    • createHudComboBox

      public static JComboBox createHudComboBox(ComboBoxModel model)
      Creates a Heads Up Display (HUD) style combo box, similar to that seen in various iApps (e.g. iPhoto).

      Parameters:
      model - the model containing the combo box items.
      Returns:
      the HUD style combo box.
      See Also:
    • createHudTextField

      public static JTextField createHudTextField(String text)
      Creates a Heads Up Display (HUD) style text field, similar to that seen in various iApps (e.g. iPhoto).

      Parameters:
      text - the initial text in the text field.
      Returns:
      the HUD style text field.
      See Also:
    • createHudPasswordField

      public static JPasswordField createHudPasswordField(String text)
      Creates a Heads Up Display (HUD) style password field, similar to that seen in various iApps (e.g. iPhoto).

      Parameters:
      text - the initial text in the password field.
      Returns:
      the HUD style password field.
      See Also:
    • createHudRadioButton

      public static JRadioButton createHudRadioButton(String text)
      Creates a Heads Up Display (HUD) style radio button, similar to that seen in various iApps (e.g. iPhoto).

      Parameters:
      text - the text of the radio button.
      Returns:
      the HUD style radio button.
      See Also:
    • createHudSlider

      public static JSlider createHudSlider()
      Creates a Heads Up Display (HUD) style slider, similar to that seen in various iApps (e.g. iPhoto).


      Returns:
      the HUD style slider.
      See Also: