API Overview API Index Package Overview Direct link to this page
JDK 1.6
  javax.swing.plaf.basic. DefaultMenuLayout View Source
Author(s)
Georges Saab
Since
Version
1.13 12/15/06
Serial
Hierarchy
 Object
      BoxLayout
          DefaultMenuLayout
Implements
 UIResource
Subclasses
Description
public class DefaultMenuLayout
  The default layout manager for Popup menus and menubars.
See also:   
Constructors
public DefaultMenuLayout (Container target, int axis)
Methods
Hide/Show inherited methods
public void addLayoutComponent (Component comp, Object constraints) [Inherited From BoxLayout]
  Not used by this class.
public void addLayoutComponent (String name, Component comp) [Inherited From BoxLayout]
  Not used by this class.
publicfinal int getAxis () [Inherited From BoxLayout]
  Returns the axis that was used to lay out components.
publicsynchronized float getLayoutAlignmentX (Container target) [Inherited From BoxLayout]
  Returns the alignment along the X axis for the container.
publicsynchronized float getLayoutAlignmentY (Container target) [Inherited From BoxLayout]
  Returns the alignment along the Y axis for the container.
publicfinal Container getTarget () [Inherited From BoxLayout]
  Returns the container that uses this layout manager.
publicsynchronized void invalidateLayout (Container target) [Inherited From BoxLayout]
  Indicates that a child has changed its layout related information, and thus any cached calculations should be flushed.
public void layoutContainer (Container target) [Inherited From BoxLayout]
  Called by the AWT when the specified container needs to be laid out.
public Dimension maximumLayoutSize (Container target) [Inherited From BoxLayout]
  Returns the maximum dimensions the target container can use to lay out the components it contains.
public Dimension minimumLayoutSize (Container target) [Inherited From BoxLayout]
  Returns the minimum dimensions needed to lay out the components contained in the specified target container.
public Dimension preferredLayoutSize (Container target) [Overrides BoxLayout]
public void removeLayoutComponent (Component comp) [Inherited From BoxLayout]
  Not used by this class.
Fields
Hide/Show inherited fields
publicfinalstatic int LINE_AXIS = "2" [Inherited From BoxLayout]
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" [Inherited From BoxLayout]
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" [Inherited From BoxLayout]
Specifies that components should be laid out left to right.
publicfinalstatic int Y_AXIS = "1" [Inherited From BoxLayout]
Specifies that components should be laid out top to bottom.
Nested Classes
Generated By: JavaOnTracks Doclet 0.1.4     ©Thibaut Colar