Class MicroLayout

java.lang.Object
com.jgoodies.looks.MicroLayout

public final class MicroLayout extends Object
Describes the insets and margins used by a Look&Feel or theme.
Since:
2.1
Version:
$Revision: 1.8 $
  • Field Details

    • textInsets

      private final InsetsUIResource textInsets
    • wrappedTextInsets

      private final InsetsUIResource wrappedTextInsets
    • comboBoxEditorInsets

      private final InsetsUIResource comboBoxEditorInsets
    • buttonBorderInsets

      private final Insets buttonBorderInsets
    • buttonMargin

      private final InsetsUIResource buttonMargin
    • commitButtonMargin

      private final InsetsUIResource commitButtonMargin
    • comboBorderSize

      private final int comboBorderSize
    • comboPopupBorderSize

      private final int comboPopupBorderSize
    • checkBoxMargin

      private final InsetsUIResource checkBoxMargin
    • popupMenuSeparatorMargin

      private final InsetsUIResource popupMenuSeparatorMargin
  • Constructor Details

  • Method Details

    • getButtonBorderInsets

      public Insets getButtonBorderInsets()
      Returns the insets used for button borders.
      Returns:
      the insets used for button borders.
    • getButtonMargin

      public InsetsUIResource getButtonMargin()
      Returns the margin used for standard buttons. These insets describe buttons that are arranged with other components in a row of a form. The standard button height will often be the same for text fields, combo boxes, and other components that are arranged in a row.

      Toolbar buttons may have a different height, as well as commit buttons that are placed in a special command bar area, for example OK, Cancel, Apply.

      Returns:
      the margin for standard buttons.
      See Also:
    • getCommitButtonMargin

      public InsetsUIResource getCommitButtonMargin()
      Returns the margin used for commit buttons in command areas. Such command areas are often at the bottom or side of a dialog or pane; frequently used labels are OK, Cancel, Apply, Yes, No, Retry. The height of a commit button may differ from the height used for buttons that are arranged in a row with other components in a form.
      Returns:
      the margin for commit buttons in command areas.
      See Also:
    • getComboBorderSize

      public int getComboBorderSize()
    • getComboPopupBorderSize

      public int getComboPopupBorderSize()
    • getComboBoxEditorInsets

      public InsetsUIResource getComboBoxEditorInsets()
    • getCheckBoxMargin

      public InsetsUIResource getCheckBoxMargin()
    • getMenuItemMargin

      public InsetsUIResource getMenuItemMargin()
    • getMenuMargin

      public InsetsUIResource getMenuMargin()
    • getPopupMenuSeparatorMargin

      public InsetsUIResource getPopupMenuSeparatorMargin()
    • getTextInsets

      public InsetsUIResource getTextInsets()
    • getWrappedTextInsets

      public InsetsUIResource getWrappedTextInsets()