|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.jgoodies.forms.util.LayoutStyle
com.jgoodies.forms.util.MacLayoutStyle
final class MacLayoutStyle
A LayoutStyle that aims to provide layout constants as defined by
Microsoft's Design Specifications and Guidelines - Visual Design.
| Field Summary | |
|---|---|
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 |
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 | |
|---|---|
private |
MacLayoutStyle()
|
| Method Summary | |
|---|---|
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. |
| Methods inherited from class com.jgoodies.forms.util.LayoutStyle |
|---|
getCurrent, setCurrent |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
static final MacLayoutStyle INSTANCE
private static final Size BUTTON_WIDTH
private static final Size BUTTON_HEIGHT
private static final ConstantSize DIALOG_MARGIN_X
private static final ConstantSize DIALOG_MARGIN_Y
private static final ConstantSize TABBED_DIALOG_MARGIN_X
private static final ConstantSize TABBED_DIALOG_MARGIN_Y
private static final ConstantSize LABEL_COMPONENT_PADX
private static final ConstantSize RELATED_COMPONENTS_PADX
private static final ConstantSize UNRELATED_COMPONENTS_PADX
private static final ConstantSize RELATED_COMPONENTS_PADY
private static final ConstantSize UNRELATED_COMPONENTS_PADY
private static final ConstantSize NARROW_LINE_PAD
private static final ConstantSize LINE_PAD
private static final ConstantSize PARAGRAPH_PAD
private static final ConstantSize BUTTON_BAR_PAD
| Constructor Detail |
|---|
private MacLayoutStyle()
| Method Detail |
|---|
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
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||