com.jgoodies.forms.util
public abstract class LayoutStyle extends Object
This class is work in progress and the API may change without notice.
Therefore it is recommended to not write custom subclasses
for production code.
A future version of this class will likely collaborate with a class
LogicalSize
or StyledSize
.
Version: $Revision: 1.4 $
See Also: MacLayoutStyle WindowsLayoutStyle FormFactory Borders
Method Summary | |
---|---|
abstract ConstantSize | getButtonBarPad()
Returns a pad used to separate a button bar from a component.
|
static LayoutStyle | getCurrent()
Returns the current LayoutStyle .
|
abstract Size | getDefaultButtonHeight()
Returns this style's default button height.
|
abstract Size | getDefaultButtonWidth()
Returns this style's default button width.
|
abstract ConstantSize | getDialogMarginX()
Returns this style's horizontal margin for general dialogs.
|
abstract ConstantSize | getDialogMarginY()
Returns this style's vertical margin for general dialogs.
|
abstract ConstantSize | getLabelComponentPadX()
Returns a gap used to separate a label and associated control.
|
abstract ConstantSize | getLinePad()
Returns a narrow vertical pad used to separate lines.
|
abstract ConstantSize | getNarrowLinePad()
Returns a narrow vertical pad used to separate lines.
|
abstract ConstantSize | getParagraphPad()
Returns a pad used to separate paragraphs.
|
abstract ConstantSize | getRelatedComponentsPadX()
Returns a horizontal gap used to separate related controls.
|
abstract ConstantSize | getRelatedComponentsPadY()
Returns a vertical gap used to separate related controls.
|
abstract ConstantSize | getTabbedDialogMarginX()
Returns this style's horizontal margin for dialogs that consist of
a tabbed pane.
|
abstract ConstantSize | getTabbedDialogMarginY()
Returns this style's vertical margin for dialogs that consist of
a tabbed pane.
|
abstract ConstantSize | getUnrelatedComponentsPadX()
Returns a horizontal gap used to separate unrelated controls.
|
abstract ConstantSize | getUnrelatedComponentsPadY()
Returns a vertical gap used to separate unrelated controls.
|
abstract boolean | isLeftToRightButtonOrder()
Checks and answers whether buttons are typically ordered from
left to right or from right to left. |
static void | setCurrent(LayoutStyle newLayoutStyle)
Set a new LayoutStyle .
|
Returns: a vertical pad used to separate paragraphs
Since: 1.0.3
See Also: getRelatedComponentsPadY getUnrelatedComponentsPadY
LayoutStyle
.
Returns: the current LayoutStyle
Returns: the default button height
See Also: getDefaultButtonWidth
Returns: the default button width
See Also: getDefaultButtonHeight
Returns: the horizontal margin for general dialogs
See Also: getDialogMarginY getTabbedDialogMarginX
Returns: the vertical margin for general dialogs
See Also: getDialogMarginX getTabbedDialogMarginY
Returns: a gap between label and associated control
See Also: getRelatedComponentsPadX getUnrelatedComponentsPadX
Returns: a vertical pad used to separate lines
See Also: getNarrowLinePad getParagraphPad
Returns: a narrow vertical pad used to separate lines
See Also: getLinePad getParagraphPad
Returns: a vertical pad used to separate paragraphs
See Also: getNarrowLinePad getLinePad
Returns: a horizontal gap between related controls
See Also: getLabelComponentPadX getRelatedComponentsPadY getUnrelatedComponentsPadX
Returns: a vertical gap between related controls
See Also: getRelatedComponentsPadX getUnrelatedComponentsPadY
Returns: the horizontal margin for dialogs that consist of a tabbed pane
Since: 1.0.3
See Also: getTabbedDialogMarginY getDialogMarginX
Returns: the vertical margin for dialogs that consist of a tabbed pane
Since: 1.0.3
See Also: getTabbedDialogMarginX getDialogMarginY
Returns: a horizontal gap between unrelated controls
See Also: getLabelComponentPadX getUnrelatedComponentsPadY getRelatedComponentsPadX
Returns: a vertical gap between unrelated controls
See Also: getUnrelatedComponentsPadX getRelatedComponentsPadY
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.
Returns: true if buttons are typically ordered from left to right
Since: 1.0.3
See Also: ButtonBarBuilder ButtonBarFactory
LayoutStyle
.
Parameters: newLayoutStyle the style to be set