getHgap
getHgap: (BorderLayout) -> numberThe horizontal gap between the regions.
BorderLayout.new()| Method | Returns | Description |
|---|---|---|
getHgap() | number | The horizontal gap between the regions. |
setHgap(number) | () | Sets the horizontal gap, for every container using the layout at its next layout. |
getVgap() | number | The vertical gap between the regions. |
setVgap(number) | () | Sets the vertical gap, for every container using the layout at its next layout. |
toString() | string | The text java.awt.BorderLayout[hgap=h,vgap=v]. |
new() | BorderLayout | () -> BorderLayout: A layout with no gaps. |
new(number, number) | BorderLayout |
| Field | Type | Description |
|---|---|---|
NORTH | string | The top region. |
SOUTH | string | The bottom region. |
EAST | string | The right region. |
WEST | string | The left region. |
CENTER | string | The middle region, which takes the space left. |
BEFORE_FIRST_LINE | string | PAGE_START's older name. |
AFTER_LAST_LINE | string | PAGE_END's older name. |
BEFORE_LINE_BEGINS | string | LINE_START's older name. |
AFTER_LINE_ENDS | string | LINE_END's older name. |
PAGE_START | string | Above everything else (left to right: the top). |
PAGE_END | string | Below everything else (left to right: the bottom). |
LINE_START | string | Where lines begin (left to right: the left). |
LINE_END | string | Where lines end (left to right: the right). |
| Method | Returns | Description |
|---|---|---|
BorderLayoutClass.new | BorderLayout | () -> BorderLayout: A layout with no gaps. |
getHgapgetHgap: (BorderLayout) -> numberThe horizontal gap between the regions.
setHgapsetHgap: (BorderLayout, number) -> ()Sets the horizontal gap, for every container using the layout at its next layout.
getVgapgetVgap: (BorderLayout) -> numberThe vertical gap between the regions.
setVgapsetVgap: (BorderLayout, number) -> ()Sets the vertical gap, for every container using the layout at its next layout.
toStringtoString: (BorderLayout) -> stringThe text java.awt.BorderLayout[hgap=h,vgap=v].
newnew: (() -> BorderLayout) & ((number, number) -> BorderLayout)() -> BorderLayout: A layout with no gaps.
(number, number) -> BorderLayout: A layout with these gaps between the regions (a fraction is truncated).