final class WindowsLayoutStyle 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 WindowsLayoutStyle |
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, setCurrent
static final WindowsLayoutStyle INSTANCE
public Size getDefaultButtonWidth()
getDefaultButtonWidth
in class LayoutStyle
getDefaultButtonHeight()
public Size getDefaultButtonHeight()
getDefaultButtonHeight
in class LayoutStyle
getDefaultButtonWidth()
public ConstantSize getDialogMarginX()
getDialogMarginX
in class LayoutStyle
getDialogMarginY()
,
getTabbedDialogMarginX()
public ConstantSize getDialogMarginY()
getDialogMarginY
in class LayoutStyle
getDialogMarginX()
,
getTabbedDialogMarginY()
public ConstantSize getTabbedDialogMarginX()
getTabbedDialogMarginX
in class LayoutStyle
getTabbedDialogMarginY()
,
getDialogMarginX()
public ConstantSize getTabbedDialogMarginY()
getTabbedDialogMarginY
in class LayoutStyle
getTabbedDialogMarginX()
,
getDialogMarginY()
public ConstantSize getLabelComponentPadX()
getLabelComponentPadX
in class LayoutStyle
getRelatedComponentsPadX()
,
getUnrelatedComponentsPadX()
public ConstantSize getRelatedComponentsPadX()
getRelatedComponentsPadX
in class LayoutStyle
getLabelComponentPadX()
,
getRelatedComponentsPadY()
,
getUnrelatedComponentsPadX()
public ConstantSize getRelatedComponentsPadY()
getRelatedComponentsPadY
in class LayoutStyle
getRelatedComponentsPadX()
,
getUnrelatedComponentsPadY()
public ConstantSize getUnrelatedComponentsPadX()
getUnrelatedComponentsPadX
in class LayoutStyle
getLabelComponentPadX()
,
getUnrelatedComponentsPadY()
,
getRelatedComponentsPadX()
public ConstantSize getUnrelatedComponentsPadY()
getUnrelatedComponentsPadY
in class LayoutStyle
getUnrelatedComponentsPadX()
,
getRelatedComponentsPadY()
public ConstantSize getNarrowLinePad()
getNarrowLinePad
in class LayoutStyle
getLinePad()
,
getParagraphPad()
public ConstantSize getLinePad()
getLinePad
in class LayoutStyle
getNarrowLinePad()
,
getParagraphPad()
public ConstantSize getParagraphPad()
getParagraphPad
in class LayoutStyle
getNarrowLinePad()
,
getLinePad()
public ConstantSize getButtonBarPad()
getButtonBarPad
in class LayoutStyle
getRelatedComponentsPadY()
,
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 LayoutStyle
ButtonBarBuilder
,
ButtonBarFactory