API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing. BoxLayout View Source
Author(s)
Timothy Prinzing
Since
Version
1.37 04/10/06
Serial
Hierarchy
 Object
      BoxLayout
Implements
 LayoutManager2
 Serializable
Subclasses
Description
public class BoxLayout
  A layout manager that allows multiple components to be laid out either vertically or horizontally.
Constructors
public BoxLayout (Container target, int axis)
  Creates a layout manager that will lay out components along the given axis.
pack-private BoxLayout (Container target, int axis, PrintStream dbg)
  Constructs a BoxLayout that produces debugging messages.
Methods
Hide/Show inherited methods
public void addLayoutComponent (Component comp, Object constraints) [Specified in LayoutManager2]
  Not used by this class.
public void addLayoutComponent (String name, Component comp)
  Not used by this class.
pack-private void checkContainer (Container target)
pack-private void checkRequests ()
publicfinal int getAxis ()
  Returns the axis that was used to lay out components.
publicsynchronized float getLayoutAlignmentX (Container target) [Specified in LayoutManager2]
  Returns the alignment along the X axis for the container.
publicsynchronized float getLayoutAlignmentY (Container target) [Specified in LayoutManager2]
  Returns the alignment along the Y axis for the container.
publicfinal Container getTarget ()
  Returns the container that uses this layout manager.
publicsynchronized void invalidateLayout (Container target) [Specified in LayoutManager2]
  Indicates that a child has changed its layout related information, and thus any cached calculations should be flushed.
public void layoutContainer (Container target)
  Called by the AWT when the specified container needs to be laid out.
public Dimension maximumLayoutSize (Container target) [Specified in LayoutManager2]
  Returns the maximum dimensions the target container can use to lay out the components it contains.
public Dimension minimumLayoutSize (Container target)
  Returns the minimum dimensions needed to lay out the components contained in the specified target container.
public Dimension preferredLayoutSize (Container target)
  Returns the preferred dimensions for this layout, given the components in the specified target container.
public void removeLayoutComponent (Component comp)
  Not used by this class.
Fields
Hide/Show inherited fields
publicfinalstatic int LINE_AXIS = "2"
Specifies that components should be laid out in the direction of a line of text as determined by the target container's ComponentOrientation property.
publicfinalstatic int PAGE_AXIS = "3"
Specifies that components should be laid out in the direction that lines flow across a page as determined by the target container's ComponentOrientation property.
publicfinalstatic int X_AXIS = "0"
Specifies that components should be laid out left to right.
publicfinalstatic int Y_AXIS = "1"
Specifies that components should be laid out top to bottom.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar