Class GenericOptionsComponent

All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible
Direct Known Subclasses:
CustomOptionComponent, DefaultOptionComponent

public abstract class GenericOptionsComponent extends JPanel
See Also:
  • Constructor Details

  • Method Details

    • createOptionComponent

      public static GenericOptionsComponent createOptionComponent(EditorState state)
      A factory method to create new OptionComponents.
      Parameters:
      state - The state that will be used to create the correct OptionComponent
      Returns:
      the new OptionComponent.
    • alignLabels

      public static void alignLabels(List<GenericOptionsComponent> components)
      Creates and sets a preferred alignment based upon the given list of option components.
      Parameters:
      components - the list of options components from which to determine the alignment.
    • setEnabled

      public void setEnabled(boolean enabled)
      Overrides:
      setEnabled in class JComponent
    • setPreferredAlignmentSize

      protected void setPreferredAlignmentSize(Dimension dimension)
      Sets the alignment dimension on this component. This is used internally to align components.
      Parameters:
      dimension - The alignment dimension.
    • getPreferredAlignmentSize

      protected Dimension getPreferredAlignmentSize()
      Gets this components alignment dimension.
      Returns:
      the alignment dimension.