API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. SizeRequirements View Source
Author(s)
Timothy Prinzing
Since
Version
1.34 04/07/06
Serial
Hierarchy
 Object
      SizeRequirements
Implements
 Serializable
Subclasses
Description
public class SizeRequirements
  For the convenience of layout managers, calculates information about the size and position of components.
Constructors
public SizeRequirements ()
Creates a SizeRequirements object with the minimum, preferred, and maximum sizes set to zero and an alignment value of 0.5 (centered).
public SizeRequirements (int min, int pref, int max, float a)
  Creates a SizeRequirements object with the specified minimum, preferred, and maximum sizes and the specified alignment.
Methods
Hide/Show inherited methods
publicstatic int adjustSizes (int delta, SizeRequirements children)
  Adjust a specified array of sizes by a given amount.
publicstatic void calculateAlignedPositions (int allocated, SizeRequirements total, SizeRequirements children, int[] offsets, int[] spans)
  Creates a bunch of offset/span pairs specifying how to lay out a set of components with the specified alignments.
publicstatic void calculateAlignedPositions (int allocated, SizeRequirements total, SizeRequirements children, int[] offsets, int[] spans, boolean normal)
  Creates a set of offset/span pairs specifying how to lay out a set of components with the specified alignments.
publicstatic void calculateTiledPositions (int allocated, SizeRequirements total, SizeRequirements children, int[] offsets, int[] spans)
  Creates a set of offset/span pairs representing how to lay out a set of components end-to-end.
publicstatic void calculateTiledPositions (int allocated, SizeRequirements total, SizeRequirements children, int[] offsets, int[] spans, boolean forward)
  Creates a set of offset/span pairs representing how to lay out a set of components end-to-end.
publicstatic SizeRequirements getAlignedSizeRequirements (SizeRequirements children)
  Determines the total space necessary to align a set of components.
publicstatic SizeRequirements getTiledSizeRequirements (SizeRequirements children)
  Determines the total space necessary to place a set of components end-to-end.
public String toString ()
  Returns a string describing the minimum, preferred, and maximum size requirements, along with the alignment.
Fields
Hide/Show inherited fields
public float alignment
  The alignment, specified as a value between 0.0 and 1.0, inclusive.
public int maximum
  The maximum size allowed.
public int minimum
  The minimum size required.
public int preferred
  The preferred (natural) size.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar