com.jgoodies.looks
Class MicroLayout

java.lang.Object
  extended by 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.7 $
Author:
Karsten Lentzsch

Constructor Summary
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
 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()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

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()


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