com.jgoodies.looks

Class MicroLayout


public final class MicroLayout
extends java.lang.Object

Describes the insets and margins used by a Look&Feel or theme.
Version:
$Revision: 1.6 $
Author:
Karsten Lentzsch
Since:
2.1

Constructor Summary

MicroLayout(InsetsUIResource textInsets, InsetsUIResource wrappedTextInsets, InsetsUIResource comboBoxEditorInsets, int comboBorderSize, int comboPopupBorderSize, Insets buttonBorderInsets, InsetsUIResource buttonMargin, InsetsUIResource commitButtonMargin, InsetsUIResource checkBoxMargin, InsetsUIResource menuItemMargin, InsetsUIResource menuMargin, InsetsUIResource popupMenuSeparatorMargin)

Method Summary

Insets
getButtonBorderInsets()
Returns the insets used for button borders.
InsetsUIResource
getButtonMargin()
Returns the margin used for standard buttons.
InsetsUIResource
getCheckBoxMargin()
int
getComboBorderSize()
InsetsUIResource
getComboBoxEditorInsets()
int
getComboPopupBorderSize()
InsetsUIResource
getCommitButtonMargin()
Returns the margin used for commit buttons in command areas.
InsetsUIResource
getMenuItemMargin()
InsetsUIResource
getMenuMargin()
InsetsUIResource
getPopupMenuSeparatorMargin()
InsetsUIResource
getTextInsets()
InsetsUIResource
getWrappedTextInsets()

Constructor Details

MicroLayout

public MicroLayout(InsetsUIResource textInsets,
                   InsetsUIResource wrappedTextInsets,
                   InsetsUIResource comboBoxEditorInsets,
                   int comboBorderSize,
                   int comboPopupBorderSize,
                   Insets buttonBorderInsets,
                   InsetsUIResource buttonMargin,
                   InsetsUIResource commitButtonMargin,
                   InsetsUIResource checkBoxMargin,
                   InsetsUIResource menuItemMargin,
                   InsetsUIResource menuMargin,
                   InsetsUIResource popupMenuSeparatorMargin)

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.

getCheckBoxMargin

public InsetsUIResource getCheckBoxMargin()

getComboBorderSize

public int getComboBorderSize()

getComboBoxEditorInsets

public InsetsUIResource getComboBoxEditorInsets()

getComboPopupBorderSize

public int getComboPopupBorderSize()

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.

getMenuItemMargin

public InsetsUIResource getMenuItemMargin()

getMenuMargin

public InsetsUIResource getMenuMargin()

getPopupMenuSeparatorMargin

public InsetsUIResource getPopupMenuSeparatorMargin()

getTextInsets

public InsetsUIResource getTextInsets()

getWrappedTextInsets

public InsetsUIResource getWrappedTextInsets()

Copyright © 2001-2008 JGoodies Karsten Lentzsch. All Rights Reserved.