Spec-Zone .ru
спецификации, руководства, описания, API
JavaTM 2 Platform
Standard Edition

javax.swing.plaf.basic
Class BasicSplitPaneUI.BasicVerticalLayoutManager

java.lang.Object
  |
  +--javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager
        |
        +--javax.swing.plaf.basic.BasicSplitPaneUI.BasicVerticalLayoutManager
Enclosing class:
BasicSplitPaneUI

public class BasicSplitPaneUI.BasicVerticalLayoutManager
extends BasicSplitPaneUI.BasicHorizontalLayoutManager

LayoutManager used for JSplitPanes with an orientation of VERTICAL_SPLIT.

This inner class is marked "public" due to a compiler bug. This class should be treated as a "protected" inner class. Instantiate it only within subclasses of BasicSplitPaneUI.


Fields inherited from class javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager
components, sizes
 
Constructor Summary
BasicSplitPaneUI.BasicVerticalLayoutManager()
           
 
Method Summary
protected  int getAvailableSize(Dimension containerSize, Insets insets)
          Returns the available height based on the container size and Insets.
protected  int getInitialLocation(Insets insets)
          Returns the top inset, unless the Insets or null in which case 0 is returned.
protected  int getPreferredSizeOfComponent(Component c)
          Returns the height of the passed in Components preferred size.
protected  int getSizeOfComponent(Component c)
          Returns the height of the passed in component.
 Dimension minimumLayoutSize(Container container)
          Returns the minimum size needed to contain the children.
 Dimension preferredLayoutSize(Container container)
          Returns the preferred size needed to contain the children.
protected  void setComponentToSize(Component c, int size, int location, Insets insets, Dimension containerSize)
          Sets the height of the component c to be size, placing its x location to insets.left, y to location and width to the containersize.width less the left and right insets.
 
Methods inherited from class javax.swing.plaf.basic.BasicSplitPaneUI.BasicHorizontalLayoutManager
addLayoutComponent, addLayoutComponent, getLayoutAlignmentX, getLayoutAlignmentY, getSizes, invalidateLayout, layoutContainer, maximumLayoutSize, removeLayoutComponent, resetSizeAt, resetToPreferredSizes, setSizes, updateComponents
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

BasicSplitPaneUI.BasicVerticalLayoutManager

public BasicSplitPaneUI.BasicVerticalLayoutManager()
Method Detail

getPreferredSizeOfComponent

protected int getPreferredSizeOfComponent(Component c)
Returns the height of the passed in Components preferred size.
Overrides:
getPreferredSizeOfComponent in class BasicSplitPaneUI.BasicHorizontalLayoutManager

getSizeOfComponent

protected int getSizeOfComponent(Component c)
Returns the height of the passed in component.
Overrides:
getSizeOfComponent in class BasicSplitPaneUI.BasicHorizontalLayoutManager

getAvailableSize

protected int getAvailableSize(Dimension containerSize,
                               Insets insets)
Returns the available height based on the container size and Insets.
Overrides:
getAvailableSize in class BasicSplitPaneUI.BasicHorizontalLayoutManager

getInitialLocation

protected int getInitialLocation(Insets insets)
Returns the top inset, unless the Insets or null in which case 0 is returned.
Overrides:
getInitialLocation in class BasicSplitPaneUI.BasicHorizontalLayoutManager

setComponentToSize

protected void setComponentToSize(Component c,
                                  int size,
                                  int location,
                                  Insets insets,
                                  Dimension containerSize)
Sets the height of the component c to be size, placing its x location to insets.left, y to location and width to the containersize.width less the left and right insets.
Overrides:
setComponentToSize in class BasicSplitPaneUI.BasicHorizontalLayoutManager

minimumLayoutSize

public Dimension minimumLayoutSize(Container container)
Returns the minimum size needed to contain the children. The height is the sum of all the childrens min heights and the width is the largest of the childrens minimum widths.
Overrides:
minimumLayoutSize in class BasicSplitPaneUI.BasicHorizontalLayoutManager
Tags copied from interface: LayoutManager
Parameters:
parent - the component to be laid out
See Also:
LayoutManager.preferredLayoutSize(java.awt.Container)

preferredLayoutSize

public Dimension preferredLayoutSize(Container container)
Returns the preferred size needed to contain the children. The height is the sum of all the childrens preferred heights and the width is the largest of the childrens preferred widths.
Overrides:
preferredLayoutSize in class BasicSplitPaneUI.BasicHorizontalLayoutManager
Tags copied from interface: LayoutManager
Parameters:
parent - the component to be laid out
See Also:
LayoutManager.minimumLayoutSize(java.awt.Container)

JavaTM 2 Platform
Standard Edition

Submit a bug or feature
Java, Java 2D, and JDBC are a trademarks or registered trademarks of Sun Microsystems, Inc. in the US and other countries.
Copyright 1993-1999 Sun Microsystems, Inc. 901 San Antonio Road,
Palo Alto, California, 94303, U.S.A. All Rights Reserved.