org.tbee.swing
Class MigLayoutUtils

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

public class MigLayoutUtils
extends Object


Constructor Summary
MigLayoutUtils()
           
 
Method Summary
static JPanel createHorizontalFillingGrowingPanel(Component... components)
          Create a jpanel and add the components.
static JPanel createHorizontalYMaxedPanel(Component... components)
          Create a jpanel and add the components.
static JPanel createNotFillingHortizonalPanel(Component... c)
           
static JPanel createVerticalXMaxedPanel(Component... components)
          Create a jpanel and add the components.
static void debug(Container container)
          Activate debugging
static void debug(net.miginfocom.swing.MigLayout migLayout)
          Activate debugging
static net.miginfocom.layout.CC getCC(Component component)
          Get the CC of a component
static net.miginfocom.layout.CC getCC(Container container, 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 newLCDefaultNoGaps()
           
static net.miginfocom.layout.LC newLCDefaultNoOuterMargin()
           
static net.miginfocom.layout.LC newLCDefaultNoOuterMarginNoGaps()
           
static net.miginfocom.swing.MigLayout newMigLayout()
           
static net.miginfocom.swing.MigLayout newMigLayout(net.miginfocom.layout.LC lc)
           
static net.miginfocom.swing.MigLayout newMigLayout(String top, String left, String bottom, String right)
           
static net.miginfocom.swing.MigLayout newMigLayoutFill()
           
static net.miginfocom.swing.MigLayout newMigLayoutFill(String top, String left, String bottom, 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 newMigLayoutFillNoInnerGaps()
           
static net.miginfocom.swing.MigLayout newMigLayoutFillNoMargin()
           
static net.miginfocom.swing.MigLayout newMigLayoutFillVer()
           
static net.miginfocom.swing.MigLayout newMigLayoutNoGaps()
           
static net.miginfocom.swing.MigLayout newMigLayoutNoMargin()
           
static void setCC(Component component, net.miginfocom.layout.CC cc)
          Get the CC of a component
static void skip(Container container, int count)
          Append a wrap to the component constraints of the last component in the container.
static void wrap(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(Component component)
Get the CC of a component

Parameters:
container -

getCC

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

Parameters:
container -

setCC

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

Parameters:
container -

wrap

public static void wrap(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(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(Container container)
Activate debugging

Parameters:
container -

debug

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

Parameters:
container -

createHorizontalYMaxedPanel

public static JPanel createHorizontalYMaxedPanel(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 JPanel createVerticalXMaxedPanel(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 JPanel createHorizontalFillingGrowingPanel(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(net.miginfocom.layout.LC lc)

newMigLayout

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

newMigLayoutFill

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

newMigLayoutFill

public static net.miginfocom.swing.MigLayout newMigLayoutFill(String top,
                                                              String left,
                                                              String bottom,
                                                              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()

newMigLayoutNoMargin

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

newMigLayoutFillNoMargin

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

newMigLayoutFillNoGaps

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

newMigLayoutFillHorNoGaps

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

newMigLayoutFillNoInnerGaps

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

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()

newLCDefaultNoGaps

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

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 JPanel createNotFillingHortizonalPanel(Component... c)


Copyright © 2012 KnowledgePlaza. All Rights Reserved.