Package com.jgoodies.looks
Class MicroLayout
- java.lang.Object
-
- com.jgoodies.looks.MicroLayout
-
public final class MicroLayout extends java.lang.Object
Describes the insets and margins used by a Look&Feel or theme.- Since:
- 2.1
- Version:
- $Revision: 1.8 $
-
-
Field Summary
Fields Modifier and Type Field Description private java.awt.Insets
buttonBorderInsets
private javax.swing.plaf.InsetsUIResource
buttonMargin
private javax.swing.plaf.InsetsUIResource
checkBoxMargin
private int
comboBorderSize
private javax.swing.plaf.InsetsUIResource
comboBoxEditorInsets
private int
comboPopupBorderSize
private javax.swing.plaf.InsetsUIResource
commitButtonMargin
private javax.swing.plaf.InsetsUIResource
menuItemMargin
private javax.swing.plaf.InsetsUIResource
menuMargin
private javax.swing.plaf.InsetsUIResource
popupMenuSeparatorMargin
private javax.swing.plaf.InsetsUIResource
textInsets
private javax.swing.plaf.InsetsUIResource
wrappedTextInsets
-
Constructor Summary
Constructors Constructor Description MicroLayout(javax.swing.plaf.InsetsUIResource textInsets, javax.swing.plaf.InsetsUIResource wrappedTextInsets, javax.swing.plaf.InsetsUIResource comboBoxEditorInsets, int comboBorderSize, int comboPopupBorderSize, java.awt.Insets buttonBorderInsets, javax.swing.plaf.InsetsUIResource buttonMargin, javax.swing.plaf.InsetsUIResource commitButtonMargin, javax.swing.plaf.InsetsUIResource checkBoxMargin, javax.swing.plaf.InsetsUIResource menuItemMargin, javax.swing.plaf.InsetsUIResource menuMargin, javax.swing.plaf.InsetsUIResource popupMenuSeparatorMargin)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.awt.Insets
getButtonBorderInsets()
Returns the insets used for button borders.javax.swing.plaf.InsetsUIResource
getButtonMargin()
Returns the margin used for standard buttons.javax.swing.plaf.InsetsUIResource
getCheckBoxMargin()
int
getComboBorderSize()
javax.swing.plaf.InsetsUIResource
getComboBoxEditorInsets()
int
getComboPopupBorderSize()
javax.swing.plaf.InsetsUIResource
getCommitButtonMargin()
Returns the margin used for commit buttons in command areas.javax.swing.plaf.InsetsUIResource
getMenuItemMargin()
javax.swing.plaf.InsetsUIResource
getMenuMargin()
javax.swing.plaf.InsetsUIResource
getPopupMenuSeparatorMargin()
javax.swing.plaf.InsetsUIResource
getTextInsets()
javax.swing.plaf.InsetsUIResource
getWrappedTextInsets()
-
-
-
Field Detail
-
textInsets
private final javax.swing.plaf.InsetsUIResource textInsets
-
wrappedTextInsets
private final javax.swing.plaf.InsetsUIResource wrappedTextInsets
-
comboBoxEditorInsets
private final javax.swing.plaf.InsetsUIResource comboBoxEditorInsets
-
buttonBorderInsets
private final java.awt.Insets buttonBorderInsets
-
buttonMargin
private final javax.swing.plaf.InsetsUIResource buttonMargin
-
commitButtonMargin
private final javax.swing.plaf.InsetsUIResource commitButtonMargin
-
comboBorderSize
private final int comboBorderSize
-
comboPopupBorderSize
private final int comboPopupBorderSize
-
checkBoxMargin
private final javax.swing.plaf.InsetsUIResource checkBoxMargin
-
menuItemMargin
private final javax.swing.plaf.InsetsUIResource menuItemMargin
-
menuMargin
private final javax.swing.plaf.InsetsUIResource menuMargin
-
popupMenuSeparatorMargin
private final javax.swing.plaf.InsetsUIResource popupMenuSeparatorMargin
-
-
Constructor Detail
-
MicroLayout
public MicroLayout(javax.swing.plaf.InsetsUIResource textInsets, javax.swing.plaf.InsetsUIResource wrappedTextInsets, javax.swing.plaf.InsetsUIResource comboBoxEditorInsets, int comboBorderSize, int comboPopupBorderSize, java.awt.Insets buttonBorderInsets, javax.swing.plaf.InsetsUIResource buttonMargin, javax.swing.plaf.InsetsUIResource commitButtonMargin, javax.swing.plaf.InsetsUIResource checkBoxMargin, javax.swing.plaf.InsetsUIResource menuItemMargin, javax.swing.plaf.InsetsUIResource menuMargin, javax.swing.plaf.InsetsUIResource popupMenuSeparatorMargin)
-
-
Method Detail
-
getButtonBorderInsets
public java.awt.Insets getButtonBorderInsets()
Returns the insets used for button borders.- Returns:
- the insets used for button borders.
-
getButtonMargin
public javax.swing.plaf.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()
-
getCommitButtonMargin
public javax.swing.plaf.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:
getButtonMargin()
-
getComboBorderSize
public int getComboBorderSize()
-
getComboPopupBorderSize
public int getComboPopupBorderSize()
-
getComboBoxEditorInsets
public javax.swing.plaf.InsetsUIResource getComboBoxEditorInsets()
-
getCheckBoxMargin
public javax.swing.plaf.InsetsUIResource getCheckBoxMargin()
-
getMenuItemMargin
public javax.swing.plaf.InsetsUIResource getMenuItemMargin()
-
getMenuMargin
public javax.swing.plaf.InsetsUIResource getMenuMargin()
-
getPopupMenuSeparatorMargin
public javax.swing.plaf.InsetsUIResource getPopupMenuSeparatorMargin()
-
getTextInsets
public javax.swing.plaf.InsetsUIResource getTextInsets()
-
getWrappedTextInsets
public javax.swing.plaf.InsetsUIResource getWrappedTextInsets()
-
-