Package Summary  Overview Summary

class:LayoutManager2 [NONE]

method:addLayoutComponent(java.awt.Component,java.lang.Object) [NONE]

  • addLayoutComponent

    void addLayoutComponent​(Component comp,
                            Object constraints)
    Adds the specified component to the layout, using the specified constraint object.
    Parameters:
    comp - the component to be added
    constraints - where/how the component is added to the layout.

method:maximumLayoutSize(java.awt.Container) [NONE]

  • maximumLayoutSize

    Dimension maximumLayoutSize​(Container target)
    Calculates the maximum size dimensions for the specified container, given the components it contains.
    Parameters:
    target - the target container
    Returns:
    the maximum size of the container
    See Also:
    Component.getMaximumSize(), LayoutManager

method:getLayoutAlignmentX(java.awt.Container) [NONE]

  • getLayoutAlignmentX

    float getLayoutAlignmentX​(Container target)
    Returns the alignment along the x axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
    Parameters:
    target - the target container
    Returns:
    the x-axis alignment preference

method:getLayoutAlignmentY(java.awt.Container) [NONE]

  • getLayoutAlignmentY

    float getLayoutAlignmentY​(Container target)
    Returns the alignment along the y axis. This specifies how the component would like to be aligned relative to other components. The value should be a number between 0 and 1 where 0 represents alignment along the origin, 1 is aligned the furthest away from the origin, 0.5 is centered, etc.
    Parameters:
    target - the target container
    Returns:
    the y-axis alignment preference

method:invalidateLayout(java.awt.Container) [NONE]

  • invalidateLayout

    void invalidateLayout​(Container target)
    Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
    Parameters:
    target - the target container

© 2019 Oracle Corporation and/or its affiliates