uk.co.ist.mwt
Class PanedWindowConstraints

java.lang.Object
  |
  +--uk.co.ist.mwt.PanedWindowConstraints

public class PanedWindowConstraints
extends java.lang.Object
implements java.lang.Cloneable

The constraints which can be put on a child component within a PanedWindowLayout.


Field Summary
static int kAnySize
          Constant to specify that a child's current size is undefined, or that its minimum/maximum size is undefined.
static int kLastPosition
          Constant to allow users to specify 'last in the child list' when specifying a position in this list for a child
 int paneMaximum
          The maximum size to which this child may be sized; if less than the paneMaximum, results are undefined.
 int paneMinimum
          The minimum size to which this child may be sized; if greater than the paneMaximum, results are undefined.
 int positionIndex
          The position of the child within the PanedWindowLayout - a child is moved to this position when its constraints are set, so if another child already occupies this position, it is 'shifted up' a position, as are all children in 'higher' positions.
 
Constructor Summary
PanedWindowConstraints()
          Constructs a constraints object with sensible default values
PanedWindowConstraints(int pos)
          Constructs a constraints object with a particular position in the list of the paned window's children
PanedWindowConstraints(int minSize, int maxSize)
          Constructs a constraints object with a particular minimum and maximum size
PanedWindowConstraints(int minSize, int maxSize, int pos)
          Constructs a constraints object with a particular minimum and maximum size and a particular position in the list of the paned window's children
 
Method Summary
 java.lang.Object clone()
          Clones these constraints
 int getPaneMaximum()
          Gets the maximum size of the component whose constraints this object is.
 int getPaneMinimum()
          Gets the minimum size of the component whose constraints this object is.
 int getPositionIndex()
          Gets the index of the component whose constraints this object is in the paned window's list of children.
 void setPaneMaximum(int maxSize)
          Sets the maximum size of the component whose constraints this object is.
 void setPaneMinimum(int minSize)
          Sets the minimum size of the component whose constraints this object is.
 void setPositionIndex(int pos)
          Sets the index of the component whose constraints this object is in the paned window's list of children.
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

kLastPosition

public static final int kLastPosition
Constant to allow users to specify 'last in the child list' when specifying a position in this list for a child

kAnySize

public static final int kAnySize
Constant to specify that a child's current size is undefined, or that its minimum/maximum size is undefined.

paneMinimum

public int paneMinimum
The minimum size to which this child may be sized; if greater than the paneMaximum, results are undefined.

paneMaximum

public int paneMaximum
The maximum size to which this child may be sized; if less than the paneMaximum, results are undefined.

positionIndex

public int positionIndex
The position of the child within the PanedWindowLayout - a child is moved to this position when its constraints are set, so if another child already occupies this position, it is 'shifted up' a position, as are all children in 'higher' positions.
Constructor Detail

PanedWindowConstraints

public PanedWindowConstraints(int minSize,
                              int maxSize,
                              int pos)
Constructs a constraints object with a particular minimum and maximum size and a particular position in the list of the paned window's children

PanedWindowConstraints

public PanedWindowConstraints(int minSize,
                              int maxSize)
Constructs a constraints object with a particular minimum and maximum size

PanedWindowConstraints

public PanedWindowConstraints(int pos)
Constructs a constraints object with a particular position in the list of the paned window's children

PanedWindowConstraints

public PanedWindowConstraints()
Constructs a constraints object with sensible default values
Method Detail

clone

public java.lang.Object clone()
                       throws java.lang.CloneNotSupportedException
Clones these constraints
Overrides:
clone in class java.lang.Object

setPaneMaximum

public void setPaneMaximum(int maxSize)
Sets the maximum size of the component whose constraints this object is.

getPaneMaximum

public int getPaneMaximum()
Gets the maximum size of the component whose constraints this object is.

setPaneMinimum

public void setPaneMinimum(int minSize)
Sets the minimum size of the component whose constraints this object is.

getPaneMinimum

public int getPaneMinimum()
Gets the minimum size of the component whose constraints this object is.

setPositionIndex

public void setPositionIndex(int pos)
Sets the index of the component whose constraints this object is in the paned window's list of children.

getPositionIndex

public int getPositionIndex()
Gets the index of the component whose constraints this object is in the paned window's list of children.