|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.jgoodies.forms.util.LayoutStyle
public abstract class LayoutStyle
An abstract class that describes a layout and design style guide. It provides constants used to layout panels consistently.
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
.
Constructor Summary | |
---|---|
LayoutStyle()
|
Method Summary | |
---|---|
static LayoutStyle |
getCurrent()
Returns the current LayoutStyle . |
abstract Size |
getDefaultButtonHeight()
Answers the style's default button height. |
abstract Size |
getDefaultButtonWidth()
Answers the style's default button width. |
abstract ConstantSize |
getDialogMarginX()
Answers the style's horizontal dialog margin. |
abstract ConstantSize |
getDialogMarginY()
Answers the style's vertical dialog margin. |
abstract ConstantSize |
getLabelComponentPadX()
Answers a gap used to separate a label and associated control. |
abstract ConstantSize |
getLinePad()
Answers a narrow vertical pad used to separate lines. |
abstract ConstantSize |
getNarrowLinePad()
Answers a narrow vertical pad used to separate lines. |
abstract ConstantSize |
getParagraphPad()
Answers a pad used to paragraphs. |
abstract ConstantSize |
getRelatedComponentsPadX()
Answers a horizontal gap used to separate related controls. |
abstract ConstantSize |
getRelatedComponentsPadY()
Answers a vertical gap used to separate related controls. |
abstract ConstantSize |
getUnrelatedComponentsPadX()
Answers a horizontal gap used to separate unrelated controls. |
abstract ConstantSize |
getUnrelatedComponentsPadY()
Answers a vertical gap used to separate unrelated controls. |
static void |
setCurrent(LayoutStyle newLayoutStyle)
Set a new LayoutStyle |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public LayoutStyle()
Method Detail |
---|
public static LayoutStyle getCurrent()
LayoutStyle
.
LayoutStyle
public static void setCurrent(LayoutStyle newLayoutStyle)
LayoutStyle
public abstract Size getDefaultButtonWidth()
public abstract Size getDefaultButtonHeight()
public abstract ConstantSize getDialogMarginX()
public abstract ConstantSize getDialogMarginY()
public abstract ConstantSize getLabelComponentPadX()
public abstract ConstantSize getRelatedComponentsPadX()
public abstract ConstantSize getRelatedComponentsPadY()
public abstract ConstantSize getUnrelatedComponentsPadX()
public abstract ConstantSize getUnrelatedComponentsPadY()
public abstract ConstantSize getLinePad()
public abstract ConstantSize getNarrowLinePad()
public abstract ConstantSize getParagraphPad()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |