Package com.jgoodies.forms.util
Class MacLayoutStyle
- java.lang.Object
-
- com.jgoodies.forms.util.LayoutStyle
-
- com.jgoodies.forms.util.MacLayoutStyle
-
public final class MacLayoutStyle extends LayoutStyle
ALayoutStyle
that aims to provide layout constants as defined by Microsoft's User Experience Guidelines.- Version:
- $Revision: 1.12 $
-
-
Field Summary
Fields Modifier and Type Field Description private static ConstantSize
BUTTON_BAR_PAD
private static Size
BUTTON_HEIGHT
private static Size
BUTTON_WIDTH
private static ConstantSize
DIALOG_MARGIN_X
private static ConstantSize
DIALOG_MARGIN_Y
(package private) static MacLayoutStyle
INSTANCE
private static ConstantSize
LABEL_COMPONENT_PADX
private static ConstantSize
LABEL_COMPONENT_PADY
private static ConstantSize
LINE_PAD
private static ConstantSize
NARROW_LINE_PAD
private static ConstantSize
PARAGRAPH_PAD
private static ConstantSize
RELATED_COMPONENTS_PADX
private static ConstantSize
RELATED_COMPONENTS_PADY
private static ConstantSize
TABBED_DIALOG_MARGIN_X
private static ConstantSize
TABBED_DIALOG_MARGIN_Y
private static ConstantSize
UNRELATED_COMPONENTS_PADX
private static ConstantSize
UNRELATED_COMPONENTS_PADY
-
Constructor Summary
Constructors Modifier Constructor Description private
MacLayoutStyle()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ConstantSize
getButtonBarPad()
Returns a pad used to separate a button bar from a component.Size
getDefaultButtonHeight()
Returns this style's default button height.Size
getDefaultButtonWidth()
Returns this style's default button width.ConstantSize
getDialogMarginX()
Returns this style's horizontal margin for general dialogs.ConstantSize
getDialogMarginY()
Returns this style's vertical margin for general dialogs.ConstantSize
getLabelComponentPadX()
Returns a gap used to separate a label and associated control.ConstantSize
getLabelComponentPadY()
Returns a gap used to separate a label and associated control.ConstantSize
getLinePad()
Returns a narrow vertical pad used to separate lines.ConstantSize
getNarrowLinePad()
Returns a narrow vertical pad used to separate lines.ConstantSize
getParagraphPad()
Returns a pad used to separate paragraphs.ConstantSize
getRelatedComponentsPadX()
Returns a horizontal gap used to separate related controls.ConstantSize
getRelatedComponentsPadY()
Returns a vertical gap used to separate related controls.ConstantSize
getTabbedDialogMarginX()
Returns this style's horizontal margin for dialogs that consist of a tabbed pane.ConstantSize
getTabbedDialogMarginY()
Returns this style's vertical margin for dialogs that consist of a tabbed pane.ConstantSize
getUnrelatedComponentsPadX()
Returns a horizontal gap used to separate unrelated controls.ConstantSize
getUnrelatedComponentsPadY()
Returns a vertical gap used to separate unrelated controls.-
Methods inherited from class com.jgoodies.forms.util.LayoutStyle
getCurrent, setCurrent
-
-
-
-
Field Detail
-
INSTANCE
static final MacLayoutStyle INSTANCE
-
BUTTON_WIDTH
private static final Size BUTTON_WIDTH
-
BUTTON_HEIGHT
private static final Size BUTTON_HEIGHT
-
DIALOG_MARGIN_X
private static final ConstantSize DIALOG_MARGIN_X
-
DIALOG_MARGIN_Y
private static final ConstantSize DIALOG_MARGIN_Y
-
TABBED_DIALOG_MARGIN_X
private static final ConstantSize TABBED_DIALOG_MARGIN_X
-
TABBED_DIALOG_MARGIN_Y
private static final ConstantSize TABBED_DIALOG_MARGIN_Y
-
LABEL_COMPONENT_PADX
private static final ConstantSize LABEL_COMPONENT_PADX
-
RELATED_COMPONENTS_PADX
private static final ConstantSize RELATED_COMPONENTS_PADX
-
UNRELATED_COMPONENTS_PADX
private static final ConstantSize UNRELATED_COMPONENTS_PADX
-
LABEL_COMPONENT_PADY
private static final ConstantSize LABEL_COMPONENT_PADY
-
RELATED_COMPONENTS_PADY
private static final ConstantSize RELATED_COMPONENTS_PADY
-
UNRELATED_COMPONENTS_PADY
private static final ConstantSize UNRELATED_COMPONENTS_PADY
-
NARROW_LINE_PAD
private static final ConstantSize NARROW_LINE_PAD
-
LINE_PAD
private static final ConstantSize LINE_PAD
-
PARAGRAPH_PAD
private static final ConstantSize PARAGRAPH_PAD
-
BUTTON_BAR_PAD
private static final ConstantSize BUTTON_BAR_PAD
-
-
Method Detail
-
getDefaultButtonWidth
public Size getDefaultButtonWidth()
Description copied from class:LayoutStyle
Returns this style's default button width.- Specified by:
getDefaultButtonWidth
in classLayoutStyle
- Returns:
- the default button width
- See Also:
LayoutStyle.getDefaultButtonHeight()
-
getDefaultButtonHeight
public Size getDefaultButtonHeight()
Description copied from class:LayoutStyle
Returns this style's default button height.- Specified by:
getDefaultButtonHeight
in classLayoutStyle
- Returns:
- the default button height
- See Also:
LayoutStyle.getDefaultButtonWidth()
-
getDialogMarginX
public ConstantSize getDialogMarginX()
Description copied from class:LayoutStyle
Returns this style's horizontal margin for general dialogs.- Specified by:
getDialogMarginX
in classLayoutStyle
- Returns:
- the horizontal margin for general dialogs
- See Also:
LayoutStyle.getDialogMarginY()
,LayoutStyle.getTabbedDialogMarginX()
-
getDialogMarginY
public ConstantSize getDialogMarginY()
Description copied from class:LayoutStyle
Returns this style's vertical margin for general dialogs.- Specified by:
getDialogMarginY
in classLayoutStyle
- Returns:
- the vertical margin for general dialogs
- See Also:
LayoutStyle.getDialogMarginX()
,LayoutStyle.getTabbedDialogMarginY()
-
getTabbedDialogMarginX
public ConstantSize getTabbedDialogMarginX()
Description copied from class:LayoutStyle
Returns this style's horizontal margin for dialogs that consist of a tabbed pane.- Specified by:
getTabbedDialogMarginX
in classLayoutStyle
- Returns:
- the horizontal margin for dialogs that consist of a tabbed pane
- See Also:
LayoutStyle.getTabbedDialogMarginY()
,LayoutStyle.getDialogMarginX()
-
getTabbedDialogMarginY
public ConstantSize getTabbedDialogMarginY()
Description copied from class:LayoutStyle
Returns this style's vertical margin for dialogs that consist of a tabbed pane.- Specified by:
getTabbedDialogMarginY
in classLayoutStyle
- Returns:
- the vertical margin for dialogs that consist of a tabbed pane
- See Also:
LayoutStyle.getTabbedDialogMarginX()
,LayoutStyle.getDialogMarginY()
-
getLabelComponentPadX
public ConstantSize getLabelComponentPadX()
Description copied from class:LayoutStyle
Returns a gap used to separate a label and associated control.- Specified by:
getLabelComponentPadX
in classLayoutStyle
- Returns:
- a gap between label and associated control
- See Also:
LayoutStyle.getRelatedComponentsPadX()
,LayoutStyle.getUnrelatedComponentsPadX()
-
getLabelComponentPadY
public ConstantSize getLabelComponentPadY()
Description copied from class:LayoutStyle
Returns a gap used to separate a label and associated control.- Specified by:
getLabelComponentPadY
in classLayoutStyle
- Returns:
- a gap between label and associated control
- See Also:
LayoutStyle.getRelatedComponentsPadY()
,LayoutStyle.getUnrelatedComponentsPadY()
-
getRelatedComponentsPadX
public ConstantSize getRelatedComponentsPadX()
Description copied from class:LayoutStyle
Returns a horizontal gap used to separate related controls.- Specified by:
getRelatedComponentsPadX
in classLayoutStyle
- Returns:
- a horizontal gap between related controls
- See Also:
LayoutStyle.getLabelComponentPadX()
,LayoutStyle.getRelatedComponentsPadY()
,LayoutStyle.getUnrelatedComponentsPadX()
-
getRelatedComponentsPadY
public ConstantSize getRelatedComponentsPadY()
Description copied from class:LayoutStyle
Returns a vertical gap used to separate related controls.- Specified by:
getRelatedComponentsPadY
in classLayoutStyle
- Returns:
- a vertical gap between related controls
- See Also:
LayoutStyle.getRelatedComponentsPadX()
,LayoutStyle.getUnrelatedComponentsPadY()
-
getUnrelatedComponentsPadX
public ConstantSize getUnrelatedComponentsPadX()
Description copied from class:LayoutStyle
Returns a horizontal gap used to separate unrelated controls.- Specified by:
getUnrelatedComponentsPadX
in classLayoutStyle
- Returns:
- a horizontal gap between unrelated controls
- See Also:
LayoutStyle.getLabelComponentPadX()
,LayoutStyle.getUnrelatedComponentsPadY()
,LayoutStyle.getRelatedComponentsPadX()
-
getUnrelatedComponentsPadY
public ConstantSize getUnrelatedComponentsPadY()
Description copied from class:LayoutStyle
Returns a vertical gap used to separate unrelated controls.- Specified by:
getUnrelatedComponentsPadY
in classLayoutStyle
- Returns:
- a vertical gap between unrelated controls
- See Also:
LayoutStyle.getUnrelatedComponentsPadX()
,LayoutStyle.getRelatedComponentsPadY()
-
getNarrowLinePad
public ConstantSize getNarrowLinePad()
Description copied from class:LayoutStyle
Returns a narrow vertical pad used to separate lines.- Specified by:
getNarrowLinePad
in classLayoutStyle
- Returns:
- a narrow vertical pad used to separate lines
- See Also:
LayoutStyle.getLinePad()
,LayoutStyle.getParagraphPad()
-
getLinePad
public ConstantSize getLinePad()
Description copied from class:LayoutStyle
Returns a narrow vertical pad used to separate lines.- Specified by:
getLinePad
in classLayoutStyle
- Returns:
- a vertical pad used to separate lines
- See Also:
LayoutStyle.getNarrowLinePad()
,LayoutStyle.getParagraphPad()
-
getParagraphPad
public ConstantSize getParagraphPad()
Description copied from class:LayoutStyle
Returns a pad used to separate paragraphs.- Specified by:
getParagraphPad
in classLayoutStyle
- Returns:
- a vertical pad used to separate paragraphs
- See Also:
LayoutStyle.getNarrowLinePad()
,LayoutStyle.getLinePad()
-
getButtonBarPad
public ConstantSize getButtonBarPad()
Description copied from class:LayoutStyle
Returns a pad used to separate a button bar from a component.- Specified by:
getButtonBarPad
in classLayoutStyle
- Returns:
- a vertical pad used to separate paragraphs
- See Also:
LayoutStyle.getRelatedComponentsPadY()
,LayoutStyle.getUnrelatedComponentsPadY()
-
-