Documentation of 'kcl.waterloo.swing.layout.SpringGridLayout' Java class
SpringGridLayout
kcl.waterloo.swing.layout

Class SpringGridLayout

  • All Implemented Interfaces:
    java.awt.LayoutManager, java.awt.LayoutManager2


    public class SpringGridLayout
    extends javax.swing.SpringLayout
    SpringGridLayout provides a simple grid layout that resizes automatically when the host container is revalidated. Create a SpringGridLayout supplying the number of rows and columns for the grid. Components will be displayed in the grid in row-major order, i.e. left-to-right, wrapping to a new row as required. Components are drawn in the layout in the order maintained in the parent component: i.e. the component returned by getComponent(0) will be drawn at 0,0; that returned getComponent(1) at 0,1 (assuming the number of columns >=2. Components at indices >= m*n will not be visible. Components can span more than 1 element of the grid in either or both the x-direction and y-direction. To set the span to a value other than 1, use setSpan, setSpanX or setSpanY. Elements of the grid that are to the right and/or below a component with a span>1 will share screen-space with that component. They should have their Visible property set to false (unless they are intended to be drawn above the component). The dimensions of the grid can be altered by calling setGrid after it is initiated and populated.
    • Nested Class Summary

      • Nested classes/interfaces inherited from class javax.swing.SpringLayout

        javax.swing.SpringLayout.Constraints
    • Field Summary

      • Fields inherited from class javax.swing.SpringLayout

        BASELINE, EAST, HEIGHT, HORIZONTAL_CENTER, NORTH, SOUTH, VERTICAL_CENTER, WEST, WIDTH
    • Constructor Summary

      Constructors 
      Constructor and Description
      SpringGridLayout() 
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method and Description
      void layoutContainer(java.awt.Container parent)
      Layouts out the parent container according to the current layout.
      • Methods inherited from class javax.swing.SpringLayout

        addLayoutComponent, addLayoutComponent, getConstraint, getConstraints, getLayoutAlignmentX, getLayoutAlignmentY, invalidateLayout, maximumLayoutSize, minimumLayoutSize, preferredLayoutSize, putConstraint, putConstraint, removeLayoutComponent
      • Methods inherited from class java.lang.Object

        equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • SpringGridLayout

        public SpringGridLayout()
    • Method Detail

      • layoutContainer

        public final void layoutContainer(java.awt.Container parent)
        Layouts out the parent container according to the current layout. Constraints will be updated when layoutContainer is called - typically from its Component ancestor.
        Specified by:
        layoutContainer in interface java.awt.LayoutManager
        Overrides:
        layoutContainer in class javax.swing.SpringLayout
        Parameters:
        parent - the container managed by this layout manager.

DMelt 3.0 © DataMelt by jWork.ORG

You see the box below because you did not login.