API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. SpringLayout.Constraints View Source
Author(s)
Since
1.4
Version
Serial
Hierarchy
 Object
      SpringLayout.Constraints
Implements
Subclasses
Description
publicstatic class SpringLayout.Constraints
  A Constraints object holds the constraints that govern the way a component's size and position change in a container controlled by a SpringLayout.
See also:   
Constructors
public SpringLayout.Constraints ()
Creates an empty Constraints object.
public SpringLayout.Constraints (Component c)
  Creates a Constraints object with suitable x, y, width and height springs for component, c.
public SpringLayout.Constraints (Spring x, Spring y)
  Creates a Constraints object with the specified values for its x and y properties.
public SpringLayout.Constraints (Spring x, Spring y, Spring width, Spring height)
  Creates a Constraints object with the specified values for its x, y, width, and height properties.
Methods
Hide/Show inherited methods
public Spring getConstraint (String edgeName)
  Returns the value of the specified edge, which may be a derived value, or even null.
public Spring getHeight ()
  Returns the value of the height property.
public Spring getWidth ()
  Returns the value of the width property.
public Spring getX ()
  Returns the value of the x property.
public Spring getY ()
  Returns the value of the y property.
pack-private void reset ()
public void setConstraint (String edgeName, Spring s)
  Sets the spring controlling the specified edge.
public void setHeight (Spring height)
  Sets the height property, which controls the height of a component.
public void setWidth (Spring width)
  Sets the width property, which controls the width of a component.
public void setX (Spring x)
  Sets the x property, which controls the x value of a component's location.
public void setY (Spring y)
  Sets the y property, which controls the y value of a component's location.
Fields
Hide/Show inherited fields
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar