RADi Runtime Library v1.2.1

de.muntjak.newlayout
Class NLConstraint

java.lang.Object
  extended by de.muntjak.newlayout.NLConstraint

public class NLConstraint
extends Object

NLConstraint is the constraints object to be used with NewLayout. To obtain a NLConstraint object, use one of the static factory methods. None of the factory methods will throw an exception but when adding a component to NewLayout, parameters will be checked and might cause IllegalArgumentExceptions.


Method Summary
static NLConstraint rc(int row, int column)
          Create and return a new NLConstraint object.
static NLConstraint rc(int row, int column, String anchors)
          Create and return a new NLConstraint object.
static NLConstraint rcInsets(int row, int column, Insets insets)
          Create and return a new NLConstraint object.
static NLConstraint rcInsets(int row, int column, Insets insets, String anchors)
          Create and return a new NLConstraint object.
static NLConstraint rcInsets(int row, int column, int insetsTop, int insetsLeft, int insetsBottom, int insetsRight)
          Create and return a new NLConstraint object.
static NLConstraint rcInsets(int row, int column, int insetsTop, int insetsLeft, int insetsBottom, int insetsRight, String anchors)
          Create and return a new NLConstraint object.
static NLConstraint rcwh(int row, int column, int spanWidth, int spanHeight)
          Create and return a new NLConstraint object.
static NLConstraint rcwh(int row, int column, int spanWidth, int spanHeight, String anchors)
          Create and return a new NLConstraint object.
static NLConstraint rcwhInsets(int row, int column, int spanWidth, int spanHeight, Insets insets)
          Create and return a new NLConstraint object.
static NLConstraint rcwhInsets(int row, int column, int spanWidth, int spanHeight, Insets insets, String anchors)
          Create and return a new NLConstraint object.
static NLConstraint rcwhInsets(int row, int column, int spanWidth, int spanHeight, int insetsTop, int insetsLeft, int insetsBottom, int insetsRight)
          Create and return a new NLConstraint object.
static NLConstraint rcwhInsets(int row, int column, int spanWidth, int spanHeight, int insetsTop, int insetsLeft, int insetsBottom, int insetsRight, String anchors)
          Create and return a new NLConstraint object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

rc

public static NLConstraint rc(int row,
                              int column)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
Returns:
a newly created NLConstraint object

rcwh

public static NLConstraint rcwh(int row,
                                int column,
                                int spanWidth,
                                int spanHeight)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
spanWidth - the number of columns to span
spanHeight - the number of rows to span
Returns:
a newly created NLConstraint object

rcwh

public static NLConstraint rcwh(int row,
                                int column,
                                int spanWidth,
                                int spanHeight,
                                String anchors)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
spanWidth - the number of columns to span
spanHeight - the number of rows to span
anchors - any combination of 'l', 't', 'b', 'r' in any order
Returns:
a newly created NLConstraint object

rc

public static NLConstraint rc(int row,
                              int column,
                              String anchors)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
anchors - any combination of 'l', 't', 'b', 'r' in any order
Returns:
a newly created NLConstraint object

rcInsets

public static NLConstraint rcInsets(int row,
                                    int column,
                                    int insetsTop,
                                    int insetsLeft,
                                    int insetsBottom,
                                    int insetsRight,
                                    String anchors)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
insetsTop - top insets, may be positive or negative
insetsLeft - left insets, may be positive or negative
insetsBottom - bottom insets, may be positive or negative
insetsRight - right insets, may be positive or negative
anchors - any combination of 'l', 't', 'b', 'r' in any order
Returns:
a newly created NLConstraint object

rcInsets

public static NLConstraint rcInsets(int row,
                                    int column,
                                    int insetsTop,
                                    int insetsLeft,
                                    int insetsBottom,
                                    int insetsRight)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
insetsTop - top insets, may be positive or negative
insetsLeft - left insets, may be positive or negative
insetsBottom - bottom insets, may be positive or negative
insetsRight - right insets, may be positive or negative
Returns:
a newly created NLConstraint object

rcwhInsets

public static NLConstraint rcwhInsets(int row,
                                      int column,
                                      int spanWidth,
                                      int spanHeight,
                                      int insetsTop,
                                      int insetsLeft,
                                      int insetsBottom,
                                      int insetsRight,
                                      String anchors)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
spanWidth - the number of columns to span
spanHeight - the number of rows to span
insetsTop - top insets, may be positive or negative
insetsLeft - left insets, may be positive or negative
insetsBottom - bottom insets, may be positive or negative
insetsRight - right insets, may be positive or negative
anchors - any combination of 'l', 't', 'b', 'r' in any order
Returns:
a newly created NLConstraint object

rcwhInsets

public static NLConstraint rcwhInsets(int row,
                                      int column,
                                      int spanWidth,
                                      int spanHeight,
                                      int insetsTop,
                                      int insetsLeft,
                                      int insetsBottom,
                                      int insetsRight)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
spanWidth - the number of columns to span
spanHeight - the number of rows to span
insetsTop - top insets, may be positive or negative
insetsLeft - left insets, may be positive or negative
insetsBottom - bottom insets, may be positive or negative
insetsRight - right insets, may be positive or negative
Returns:
a newly created NLConstraint object

rcInsets

public static NLConstraint rcInsets(int row,
                                    int column,
                                    Insets insets,
                                    String anchors)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
insets - cell insets
anchors - any combination of 'l', 't', 'b', 'r' in any order
Returns:
a newly created NLConstraint object

rcInsets

public static NLConstraint rcInsets(int row,
                                    int column,
                                    Insets insets)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
insets - cell insets
Returns:
a newly created NLConstraint object

rcwhInsets

public static NLConstraint rcwhInsets(int row,
                                      int column,
                                      int spanWidth,
                                      int spanHeight,
                                      Insets insets,
                                      String anchors)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
spanWidth - the number of columns to span
spanHeight - the number of rows to span
insets - cell insets
anchors - any combination of 'l', 't', 'b', 'r' in any order
Returns:
a newly created NLConstraint object

rcwhInsets

public static NLConstraint rcwhInsets(int row,
                                      int column,
                                      int spanWidth,
                                      int spanHeight,
                                      Insets insets)
Create and return a new NLConstraint object.

Parameters:
row - a row index >= 0
column - a column index >= 0
spanWidth - the number of columns to span
spanHeight - the number of rows to span
insets - cell insets
Returns:
a newly created NLConstraint object

RADi Runtime Library v1.2.1