Class FlexibleConstraints

java.lang.Object
  |
  +--FlexibleConstraints

public class FlexibleConstraints
extends java.lang.Object
implements FlexibleConstants

Specifies the location, the size and the layout policy of the components that are laid out using the FlexibleLayout class.

See Also:
FlexibleConstants, FlexibleLayout

Fields inherited from interface FlexibleConstants
BOTTOM_MASK, BOTTOMCENTER, BOTTOMCENTER_RELATIVE, BOTTOMLEFT, BOTTOMLEFT_RELATIVE, BOTTOMRIGHT, BOTTOMRIGHT_RELATIVE, CENTER, CENTER_RELATIVE, CENTERLEFT, CENTERLEFT_RELATIVE, CENTERRIGHT, CENTERRIGHT_RELATIVE, HEIGHT_RELATIVE, HORIZONTALCENTER_MASK, LEFT_MASK, RELATIVE, RIGHT_MASK, SCALABLE, SCALABLE_HEIGHT, SCALABLE_WIDTH, SIZE_RELATIVE, TOP_MASK, TOPCENTER, TOPCENTER_RELATIVE, TOPLEFT, TOPLEFT_RELATIVE, TOPRIGHT, TOPRIGHT_RELATIVE, VERTICALCENTER_MASK, WIDTH_RELATIVE
 
Constructor Summary
FlexibleConstraints(int x, int y)
          Creates new FlexibleConstraints constraints with the specified component location and the default layout policy.
FlexibleConstraints(int x, int y, int relative)
          Creates new FlexibleConstraints constraints with the specified component location and the specified layout policy.
FlexibleConstraints(int x, int y, int width, int height)
          Creates new FlexibleConstraints constraints with the specified component bounds and the default layout policy.
FlexibleConstraints(int x, int y, int width, int height, java.awt.Insets insets)
          Creates new FlexibleConstraints constraints with the specified component bounds and the default layout policy.
FlexibleConstraints(int x, int y, int width, int height, java.awt.Insets insets, int relative)
          Creates new FlexibleConstraints constraints with the specified component bounds, the specified insets and the specified layout policy.
FlexibleConstraints(int x, int y, int width, int height, int relative)
          Creates new FlexibleConstraints constraints with the specified component bounds and the specified layout policy.
FlexibleConstraints(java.awt.Point location)
          Creates new FlexibleConstraints constraints with the specified component location and the default layout policy.
FlexibleConstraints(java.awt.Point location, int relative)
          Creates new FlexibleConstraints constraints with the specified component location and the specified layout policy.
FlexibleConstraints(java.awt.Rectangle bounds)
          Creates new FlexibleConstraints constraints with the specified component bounds and default layout policy.
FlexibleConstraints(java.awt.Rectangle bounds, java.awt.Insets insets)
          Creates new FlexibleConstraints constraints with the specified component bounds and default layout policy.
FlexibleConstraints(java.awt.Rectangle bounds, java.awt.Insets insets, int relative)
          Creates new FlexibleConstraints constraints with the specified component bounds, the specified insets and the specified layout policy.
FlexibleConstraints(java.awt.Rectangle bounds, int relative)
          Creates new FlexibleConstraints constraints with the specified component bounds and the specified layout policy.
 
Method Summary
 java.awt.Rectangle getBounds()
           
 java.awt.Insets getInsets()
           
 java.awt.Point getLocation()
           
 int getRelative()
           
 java.awt.Dimension getSize()
           
 void setBounds(int x, int y, int width, int height)
           
 void setBounds(java.awt.Rectangle bounds)
           
 void setInsets(java.awt.Insets insets)
           
 void setInsets(int top, int left, int bottom, int right)
           
 void setLocation(int x, int y)
           
 void setLocation(java.awt.Point location)
           
 void setRelative(int relative)
           
 void setSize(java.awt.Dimension size)
           
 void setSize(int width, int height)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

FlexibleConstraints

public FlexibleConstraints(java.awt.Rectangle bounds,
                           int relative)
Creates new FlexibleConstraints constraints with the specified component bounds and the specified layout policy.
Parameters:
bounds - the required bounds where to lay out.
relative - the layout policy to use for laying out, using FlexibleConstants values.
See Also:
setBounds(java.awt.Rectangle), FlexibleConstants, FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(int x,
                           int y,
                           int width,
                           int height,
                           int relative)
Creates new FlexibleConstraints constraints with the specified component bounds and the specified layout policy.
Parameters:
x - the required x where to lay out.
y - the required y where to lay out.
width - the width to use for laying out.
height - the height to use for laying out.
relative - the layout policy to use for laying out, using FlexibleConstants values.
See Also:
setBounds(java.awt.Rectangle), FlexibleConstants, FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(java.awt.Rectangle bounds,
                           java.awt.Insets insets,
                           int relative)
Creates new FlexibleConstraints constraints with the specified component bounds, the specified insets and the specified layout policy.
Parameters:
bounds - the required bounds where to lay out.
insets - the insets to dispose around the component.
relative - the layout policy to use for laying out, using FlexibleConstants values.
See Also:
setBounds(java.awt.Rectangle), setInsets(java.awt.Insets), FlexibleConstants, FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(int x,
                           int y,
                           int width,
                           int height,
                           java.awt.Insets insets,
                           int relative)
Creates new FlexibleConstraints constraints with the specified component bounds, the specified insets and the specified layout policy.
Parameters:
x - the required x where to lay out.
y - the required y where to lay out.
width - the width to use for laying out.
height - the height to use for laying out.
insets - the insets to dispose around the component.
relative - the layout policy to use for laying out, using FlexibleConstants values.
See Also:
setBounds(java.awt.Rectangle), setInsets(java.awt.Insets), FlexibleConstants, FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(java.awt.Point location,
                           int relative)
Creates new FlexibleConstraints constraints with the specified component location and the specified layout policy.
Parameters:
location - the required location where to lay out.
relative - the layout policy to use for laying out, using FlexibleConstants values.
See Also:
setLocation(java.awt.Point), FlexibleConstants, FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(int x,
                           int y,
                           int relative)
Creates new FlexibleConstraints constraints with the specified component location and the specified layout policy.
Parameters:
x - the required x where to lay out.
y - the required y where to lay out.
relative - the layout policy to use for laying out, using FlexibleConstants values.
See Also:
setLocation(java.awt.Point), FlexibleConstants, FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(java.awt.Rectangle bounds)
Creates new FlexibleConstraints constraints with the specified component bounds and default layout policy.
Parameters:
bounds - the required bounds where to lay out.
See Also:
setBounds(java.awt.Rectangle), FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(int x,
                           int y,
                           int width,
                           int height)
Creates new FlexibleConstraints constraints with the specified component bounds and the default layout policy.
Parameters:
x - the required x where to lay out.
y - the required y where to lay out.
width - the width to use for laying out.
height - the height to use for laying out.
See Also:
setBounds(java.awt.Rectangle), FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(java.awt.Rectangle bounds,
                           java.awt.Insets insets)
Creates new FlexibleConstraints constraints with the specified component bounds and default layout policy.
Parameters:
bounds - the required bounds where to lay out.
insets - the insets to dispose around the component.
See Also:
setBounds(java.awt.Rectangle), setInsets(java.awt.Insets), FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(int x,
                           int y,
                           int width,
                           int height,
                           java.awt.Insets insets)
Creates new FlexibleConstraints constraints with the specified component bounds and the default layout policy.
Parameters:
x - the required x where to lay out.
y - the required y where to lay out.
width - the width to use for laying out.
height - the height to use for laying out.
insets - the insets to dispose around the component.
See Also:
setBounds(java.awt.Rectangle), setInsets(java.awt.Insets), FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(java.awt.Point location)
Creates new FlexibleConstraints constraints with the specified component location and the default layout policy.
Parameters:
location - the required location where to lay out.
See Also:
setLocation(java.awt.Point), FlexibleLayout

FlexibleConstraints

public FlexibleConstraints(int x,
                           int y)
Creates new FlexibleConstraints constraints with the specified component location and the default layout policy.
Parameters:
x - the required x where to lay out.
y - the required y where to lay out.
See Also:
setLocation(java.awt.Point), FlexibleLayout
Method Detail

setBounds

public void setBounds(java.awt.Rectangle bounds)

setBounds

public void setBounds(int x,
                      int y,
                      int width,
                      int height)

setLocation

public void setLocation(java.awt.Point location)

setLocation

public void setLocation(int x,
                        int y)

setSize

public void setSize(java.awt.Dimension size)

setSize

public void setSize(int width,
                    int height)

setInsets

public void setInsets(java.awt.Insets insets)

setInsets

public void setInsets(int top,
                      int left,
                      int bottom,
                      int right)

setRelative

public void setRelative(int relative)

getBounds

public java.awt.Rectangle getBounds()

getLocation

public java.awt.Point getLocation()

getSize

public java.awt.Dimension getSize()

getInsets

public java.awt.Insets getInsets()

getRelative

public int getRelative()