Flow

class Flow(val alignment: Int = FlowLayout.CENTER, val hgap: Int = 5, val vgap: Int = 5) : PanelLayout<PanelScope>

Lays the children out in a row, each at the size it prefers, and starts a new row with the child that no longer fits the panel's width.

See also

Constructors

Link copied to clipboard
constructor(alignment: Int = FlowLayout.CENTER, hgap: Int = 5, vgap: Int = 5)

Properties

Link copied to clipboard

the horizontal alignment of components within each row (a FlowAlignment FlowLayout value); the default CENTER centers each row across the panel's width

Link copied to clipboard

the scope the container's content is composed in

Link copied to clipboard
val hgap: Int

the horizontal gap held between two adjacent components and at the panel's left and right edges; 5, FlowLayout's own default

Link copied to clipboard
val vgap: Int

the vertical gap held between two rows and at the panel's top and bottom edges; 5, FlowLayout's own default

Functions

Link copied to clipboard
open operator override fun equals(other: Any?): Boolean
Link copied to clipboard
open override fun hashCode(): Int
Link copied to clipboard
open override fun <C : Container> installOn(updater: SwingNodeUpdater<C>)

Lays the container out under this layout. An implementation makes one write on updater through installManager.