final class MacLayoutStyle extends LayoutStyle
LayoutStyle that aims to provide layout constants as defined by
Microsoft's Design Specifications and Guidelines - Visual Design.| Modifier and Type | Field and Description |
|---|---|
(package private) static MacLayoutStyle |
INSTANCE |
| Modifier and Type | Method and 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 |
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.
|
boolean |
isLeftToRightButtonOrder()
Checks and answers whether buttons are typically ordered from
left to right or from right to left.
|
getCurrent, setCurrentstatic final MacLayoutStyle INSTANCE
public Size getDefaultButtonWidth()
getDefaultButtonWidth in class LayoutStylegetDefaultButtonHeight()public Size getDefaultButtonHeight()
getDefaultButtonHeight in class LayoutStylegetDefaultButtonWidth()public ConstantSize getDialogMarginX()
getDialogMarginX in class LayoutStylegetDialogMarginY(),
getTabbedDialogMarginX()public ConstantSize getDialogMarginY()
getDialogMarginY in class LayoutStylegetDialogMarginX(),
getTabbedDialogMarginY()public ConstantSize getTabbedDialogMarginX()
getTabbedDialogMarginX in class LayoutStylegetTabbedDialogMarginY(),
getDialogMarginX()public ConstantSize getTabbedDialogMarginY()
getTabbedDialogMarginY in class LayoutStylegetTabbedDialogMarginX(),
getDialogMarginY()public ConstantSize getLabelComponentPadX()
getLabelComponentPadX in class LayoutStylegetRelatedComponentsPadX(),
getUnrelatedComponentsPadX()public ConstantSize getRelatedComponentsPadX()
getRelatedComponentsPadX in class LayoutStylegetLabelComponentPadX(),
getRelatedComponentsPadY(),
getUnrelatedComponentsPadX()public ConstantSize getRelatedComponentsPadY()
getRelatedComponentsPadY in class LayoutStylegetRelatedComponentsPadX(),
getUnrelatedComponentsPadY()public ConstantSize getUnrelatedComponentsPadX()
getUnrelatedComponentsPadX in class LayoutStylegetLabelComponentPadX(),
getUnrelatedComponentsPadY(),
getRelatedComponentsPadX()public ConstantSize getUnrelatedComponentsPadY()
getUnrelatedComponentsPadY in class LayoutStylegetUnrelatedComponentsPadX(),
getRelatedComponentsPadY()public ConstantSize getNarrowLinePad()
getNarrowLinePad in class LayoutStylegetLinePad(),
getParagraphPad()public ConstantSize getLinePad()
getLinePad in class LayoutStylegetNarrowLinePad(),
getParagraphPad()public ConstantSize getParagraphPad()
getParagraphPad in class LayoutStylegetNarrowLinePad(),
getLinePad()public ConstantSize getButtonBarPad()
getButtonBarPad in class LayoutStylegetRelatedComponentsPadY(),
getUnrelatedComponentsPadY()public boolean isLeftToRightButtonOrder()
For example the Windows style guide recommends to layout out OK, Cancel, Apply from left to right, where the Mac Aqua style guide recommends to layout out these buttons from right to left.
Although most button sequences shall honor this order some buttons require a left to right order. For example Back, Next or Move Left, Move Right.
isLeftToRightButtonOrder in class LayoutStyleButtonBarBuilder,
ButtonBarFactory