org.tbee.swing
Class MigLayoutUtils

java.lang.Object
  extended by org.tbee.swing.MigLayoutUtils

public class MigLayoutUtils
extends java.lang.Object


Constructor Summary
MigLayoutUtils()
           
 
Method Summary
static javax.swing.JPanel createHorizontalFillingGrowingPanel(java.awt.Component... components)
          Create a jpanel and add the components.
static javax.swing.JPanel createHorizontalYMaxedPanel(java.awt.Component... components)
          Create a jpanel and add the components.
static javax.swing.JPanel createNotFillingHortizonalPanel(java.awt.Component... c)
           
static javax.swing.JPanel createVerticalXMaxedPanel(java.awt.Component... components)
          Create a jpanel and add the components.
static void debug(java.awt.Container container)
          Activate debugging
static void debug(net.miginfocom.swing.MigLayout migLayout)
          Activate debugging
static net.miginfocom.layout.CC getCC(java.awt.Component component)
          Get the CC of a component
static net.miginfocom.layout.CC getCC(java.awt.Container container, java.awt.Component component)
          Get the CC of a component
static net.miginfocom.layout.AC newACColumn()
           
static net.miginfocom.layout.AC newACColumnNoGaps()
           
static net.miginfocom.layout.AC newACRow()
           
static net.miginfocom.layout.AC newACRowNoGaps()
           
static net.miginfocom.layout.CC newCC()
           
static net.miginfocom.layout.CC newCCField()
           
static net.miginfocom.layout.CC newCCFieldTop()
           
static net.miginfocom.layout.CC newCCLabel()
           
static net.miginfocom.layout.CC newCCLabelTop()
           
static net.miginfocom.layout.LC newLC()
           
static net.miginfocom.layout.LC newLCDefault()
           
static net.miginfocom.layout.LC newLCDefaultNoOuterMargin()
           
static net.miginfocom.layout.LC newLCDefaultNoOuterMarginNoGaps()
           
static net.miginfocom.swing.MigLayout newMigLayout()
           
static net.miginfocom.swing.MigLayout newMigLayout(java.lang.String top, java.lang.String left, java.lang.String bottom, java.lang.String right)
           
static net.miginfocom.swing.MigLayout newMigLayoutFill()
           
static net.miginfocom.swing.MigLayout newMigLayoutFill(java.lang.String top, java.lang.String left, java.lang.String bottom, java.lang.String right)
           
static net.miginfocom.swing.MigLayout newMigLayoutFillHor()
           
static net.miginfocom.swing.MigLayout newMigLayoutFillHorNoGaps()
           
static net.miginfocom.swing.MigLayout newMigLayoutFillNoGaps()
           
static net.miginfocom.swing.MigLayout newMigLayoutFillNoMargin()
           
static net.miginfocom.swing.MigLayout newMigLayoutFillVer()
           
static net.miginfocom.swing.MigLayout newMigLayoutNoGaps()
           
static void setCC(java.awt.Component component, net.miginfocom.layout.CC cc)
          Get the CC of a component
static void skip(java.awt.Container container, int count)
          Append a wrap to the component constraints of the last component in the container.
static void wrap(java.awt.Container container)
          Append a wrap to the component constraints of the last component in the container.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MigLayoutUtils

public MigLayoutUtils()
Method Detail

getCC

public static net.miginfocom.layout.CC getCC(java.awt.Component component)
Get the CC of a component

Parameters:
container -

getCC

public static net.miginfocom.layout.CC getCC(java.awt.Container container,
                                             java.awt.Component component)
Get the CC of a component

Parameters:
container -

setCC

public static void setCC(java.awt.Component component,
                         net.miginfocom.layout.CC cc)
Get the CC of a component

Parameters:
container -

wrap

public static void wrap(java.awt.Container container)
Append a wrap to the component constraints of the last component in the container. The container naturally must used MigLayout.

Parameters:
container -

skip

public static void skip(java.awt.Container container,
                        int count)
Append a wrap to the component constraints of the last component in the container. The container naturally must used MigLayout.

Parameters:
container -

debug

public static void debug(java.awt.Container container)
Activate debugging

Parameters:
container -

debug

public static void debug(net.miginfocom.swing.MigLayout migLayout)
Activate debugging

Parameters:
container -

createHorizontalYMaxedPanel

public static javax.swing.JPanel createHorizontalYMaxedPanel(java.awt.Component... components)
Create a jpanel and add the components. The components are laid out horizontally, but are sized to fit the container vertically

Parameters:
components -
Returns:

createVerticalXMaxedPanel

public static javax.swing.JPanel createVerticalXMaxedPanel(java.awt.Component... components)
Create a jpanel and add the components. The components are laid out vertically, but are sized to fit the container horizontally

Parameters:
components -
Returns:

createHorizontalFillingGrowingPanel

public static javax.swing.JPanel createHorizontalFillingGrowingPanel(java.awt.Component... components)
Create a jpanel and add the components. The components are laid out horizontally, no gaps, the panel fills its space horizontally, the components fill the panel. Intended to fill up and align below another component, e.g. a number of buttons below a jlist.

Parameters:
components -
Returns:

newMigLayout

public static net.miginfocom.swing.MigLayout newMigLayout()

newMigLayout

public static net.miginfocom.swing.MigLayout newMigLayout(java.lang.String top,
                                                          java.lang.String left,
                                                          java.lang.String bottom,
                                                          java.lang.String right)

newMigLayoutFill

public static net.miginfocom.swing.MigLayout newMigLayoutFill()

newMigLayoutFill

public static net.miginfocom.swing.MigLayout newMigLayoutFill(java.lang.String top,
                                                              java.lang.String left,
                                                              java.lang.String bottom,
                                                              java.lang.String right)

newMigLayoutFillHor

public static net.miginfocom.swing.MigLayout newMigLayoutFillHor()

newMigLayoutFillVer

public static net.miginfocom.swing.MigLayout newMigLayoutFillVer()

newMigLayoutNoGaps

public static net.miginfocom.swing.MigLayout newMigLayoutNoGaps()

newMigLayoutFillNoMargin

public static net.miginfocom.swing.MigLayout newMigLayoutFillNoMargin()

newMigLayoutFillNoGaps

public static net.miginfocom.swing.MigLayout newMigLayoutFillNoGaps()

newMigLayoutFillHorNoGaps

public static net.miginfocom.swing.MigLayout newMigLayoutFillHorNoGaps()

newLC

public static net.miginfocom.layout.LC newLC()

newLCDefault

public static net.miginfocom.layout.LC newLCDefault()

newLCDefaultNoOuterMargin

public static net.miginfocom.layout.LC newLCDefaultNoOuterMargin()

newLCDefaultNoOuterMarginNoGaps

public static net.miginfocom.layout.LC newLCDefaultNoOuterMarginNoGaps()

newACColumn

public static net.miginfocom.layout.AC newACColumn()

newACColumnNoGaps

public static net.miginfocom.layout.AC newACColumnNoGaps()

newACRow

public static net.miginfocom.layout.AC newACRow()

newACRowNoGaps

public static net.miginfocom.layout.AC newACRowNoGaps()

newCC

public static net.miginfocom.layout.CC newCC()

newCCLabel

public static net.miginfocom.layout.CC newCCLabel()

newCCLabelTop

public static net.miginfocom.layout.CC newCCLabelTop()

newCCField

public static net.miginfocom.layout.CC newCCField()

newCCFieldTop

public static net.miginfocom.layout.CC newCCFieldTop()

createNotFillingHortizonalPanel

public static javax.swing.JPanel createNotFillingHortizonalPanel(java.awt.Component... c)


Copyright © 2010. All Rights Reserved.