# Package com.codename1.ui.layouts.mig

package com.codename1.ui.layouts.mig

Codename One port of the MiG Layout manager.

`MigLayout` is a grid-based layout driven by string constraints (`LC`, `AC`, `CC`, `DimConstraint`, `BoundSize`, `UnitValue`, ...) parsed through `ConstraintParser`. The wrapper classes (`CodenameOneMiGComponentWrapper`, `CodenameOneMiGContainerWrapper`) adapt the original MiG core to the Codename One component model.

##### Deprecated

This is an experimental integration with known bugs -- do not rely on it for production. Use the layouts in `com.codename1.ui.layouts` instead.

- Related Packages
  Package
  Description
  com.codename1.ui.layouts
  Layout managers allow a `com.codename1.ui.Container` to arrange its components by a set of rules that adapt to specific densities (ppi - pixels per inch).
- Class
  Description
  AC
  A constraint that holds the column or row constraints for the grid.
  BoundSize
  A size that contains minimum, preferred and maximum size of type `UnitValue`.
  CC
  A simple value holder for one component's constraint.
  ComponentWrapper
  A class that wraps the important parts of a Component.
  ConstraintParser
  Parses string constraints.
  ContainerWrapper
  A class that wraps a container that contains components.
  DimConstraint
  A simple value holder for a constraint for one dimension.
  Grid
  Holds components in a grid.
  InCellGapProvider
  An interface to implement if you want to decide the gaps between two types of components within the same cell.
  LayoutCallback
  A class to extend if you want to provide more control over where a component is placed or the size of it.
  LayoutUtil
  A utility class that has only static helper methods.
  LC
  Contains the constraints for an instance of the `LC` layout manager.
  LinkHandler
  MigLayout
  A very flexible layout manager.
  PlatformDefaults
  Currently handles Windows, Mac OS X, and GNOME spacing.
  UnitConverter
  UnitValue