|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
public interface AlignmentSupport
A general interface for alignment support. All JIDE components will implement this method if it has the following methods. In standard Swing package, AbstractButton, JLabel, JTextField etc should implement this too.
| Method Summary | |
|---|---|
int |
getHorizontalAlignment()
Returns the horizontal alignment of the content. |
int |
getVerticalAlignment()
Returns the vertical alignment of the content. |
void |
setHorizontalAlignment(int alignment)
Sets the horizontal alignment of the content. |
void |
setVerticalAlignment(int alignment)
Sets the vertical alignment of the content. |
| Method Detail |
|---|
int getHorizontalAlignment()
AbstractButton's default is SwingConstants.CENTER,
but subclasses such as JCheckBox may use a different default.
horizontalAlignment property,
one of the following values:
SwingConstants.RIGHT
SwingConstants.LEFT
SwingConstants.CENTER
SwingConstants.LEADING
SwingConstants.TRAILING
void setHorizontalAlignment(int alignment)
AbstractButton's default is SwingConstants.CENTER,
but subclasses such as JCheckBox may use a different default.
alignment - the alignment value, one of the following values:
SwingConstants.RIGHT
SwingConstants.LEFT
SwingConstants.CENTER
SwingConstants.LEADING
SwingConstants.TRAILING
IllegalArgumentException - if the alignment is not one of the
valid valuesint getVerticalAlignment()
verticalAlignment property, one of the
following values:
SwingConstants.CENTER (the default)
SwingConstants.TOP
SwingConstants.BOTTOM
void setVerticalAlignment(int alignment)
alignment - one of the following values:
SwingConstants.CENTER (the default)
SwingConstants.TOP
SwingConstants.BOTTOM
IllegalArgumentException - if the alignment is not one of the legal
values listed above
|
JIDE 3.5.15 | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||