FlowLayout

Methods
7
Fields
5

Getting one

FlowLayout.new()

Methods

MethodReturnsDescription
getAlignment()numberThe alignment (LEFT, CENTER, ...).
setAlignment(number)()Sets the alignment, for every container using the layout at its next layout.
getHgap()numberThe gap between components and around the rows.
setHgap(number)()Sets the horizontal gap.
getVgap()numberThe gap between rows and around them.
setVgap(number)()Sets the vertical gap.
new()FlowLayout() -> FlowLayout: Centred rows, gaps of 5.
new(number)FlowLayout
new(number, number, number)FlowLayout

Fields

FieldTypeDescription
LEFTnumberRows start at the left.
CENTERnumberRows are centred.
LEADINGnumberRows start where lines begin.
TRAILINGnumberRows end where lines end.

Returned by

MethodReturnsDescription
FlowLayoutClass.newFlowLayout() -> FlowLayout: Centred rows, gaps of 5.

Method details

setAlignment

setAlignment: (FlowLayout, number) -> ()

Sets the alignment, for every container using the layout at its next layout.

getHgap

getHgap: (FlowLayout) -> number

The gap between components and around the rows.

new

new: (() -> FlowLayout) & ((number) -> FlowLayout) & ((number, number, number) -> FlowLayout)

() -> FlowLayout: Centred rows, gaps of 5.

(number) -> FlowLayout: Rows aligned as align, gaps of 5.

(number, number, number) -> FlowLayout: Rows aligned as align, with these gaps.