O1Library Docs
Fall 2023
Docs API

# o1.gui.layout

package o1.gui.layout

## Members list

### Type members

#### Classlikes

trait EasyLayout extends LayoutContainer

The methods on this trait make it easier to place elements in a Swing container.

The methods on this trait make it easier to place elements in a Swing container.

NOTE TO STUDENTS: In this course, you don’t need to understand how this trait works or can be used.

## Attributes

Supertypes
  trait LayoutContainer
  trait Wrapper
  trait Container
  trait UIElement
  trait Publisher
  trait Reactor
  trait Proxy
  class Object
  trait Matchable
  class Any
  Show all
Known subtypes
  trait EasyPanel

trait EasyPanel extends GridBagPanel, EasyLayout

The methods on this trait make it easier to place elements in a scala.swing.GridBagPanel.

The methods on this trait make it easier to place elements in a scala.swing.GridBagPanel.

NOTE TO STUDENTS: In this course, you don’t need to understand how this trait works or can be used.

## Attributes

Supertypes
  trait EasyLayout
  class GridBagPanel
  trait LayoutContainer
  class Panel
  trait Wrapper
  trait Container
  class Component
  trait UIElement
  trait Publisher
  trait Reactor
  trait Proxy
  class Object
  trait Matchable
  class Any
  Show all

#### Types

type Anchor = scala.swing.GridBagPanel.Anchor
type Fill = (Fill, Int, Int)

### Value members

#### Concrete methods

def FillBoth(xWeight: Int, yWeight: Int): Fill
def FillHorizontal(weight: Int): Fill
def FillVertical(weight: Int): Fill
def NoFill(xWeight: Int, yWeight: Int): Fill

#### Concrete fields

val NoBorder: (Int, Int, Int, Int)
val OneSlot: (Int, Int)
val Slight: Fill
val ThreeHigh: (Int, Int)
val ThreeWide: (Int, Int)
val TwoHigh: (Int, Int)
val TwoWide: (Int, Int)