Top Fields Constructors Methods
sun.tools.jconsole

public Class VariableGridLayout

extends GridLayout
Class Inheritance
Annotations
@SuppressWarnings:serial
Imports
java.awt.*, javax.swing.*

Field Summary

Modifier and TypeField and Description
private boolean
private boolean

Constructor Summary

AccessConstructor and Description
public
VariableGridLayout(int rows, int cols, int hgap, int vgap, boolean fillRows, boolean fillColumns)

Method Summary

Modifier and TypeMethod and Description
public boolean
public boolean
public void
layoutContainer(Container
the container in which to do the layout
parent
)

Overrides java.awt.GridLayout.layoutContainer.

Implements java.awt.LayoutManager.layoutContainer.

Lays out the specified container using this layout.
public Dimension
preferredLayoutSize(Container
the container in which to do the layout
parent
)

Overrides java.awt.GridLayout.preferredLayoutSize.

Implements java.awt.LayoutManager.preferredLayoutSize.

Determines the preferred size of the container argument using this grid layout.
public void
setFillColumn(JComponent c, boolean b)

public void
setFillRow(JComponent c, boolean b)

Inherited from java.awt.GridLayout:
addLayoutComponentgetColumnsgetHgapgetRowsgetVgapminimumLayoutSizeremoveLayoutComponentsetColumnssetHgapsetRowssetVgaptoString

Field Detail

fillColumnsback to summary
private boolean fillColumns
fillRowsback to summary
private boolean fillRows

Constructor Detail

VariableGridLayoutback to summary
public VariableGridLayout(int rows, int cols, int hgap, int vgap, boolean fillRows, boolean fillColumns)

Method Detail

getFillColumnback to summary
public boolean getFillColumn(JComponent c)
getFillRowback to summary
public boolean getFillRow(JComponent c)
layoutContainerback to summary
public void layoutContainer(Container parent)

Overrides java.awt.GridLayout.layoutContainer.

Implements java.awt.LayoutManager.layoutContainer.

Doc from java.awt.GridLayout.layoutContainer.

Lays out the specified container using this layout.

This method reshapes the components in the specified target container in order to satisfy the constraints of the GridLayout object.

The grid layout manager determines the size of individual components by dividing the free space in the container into equal-sized portions according to the number of rows and columns in the layout. The container's free space equals the container's size minus any insets and any specified horizontal or vertical gap. All components in a grid layout are given the same size.

Parameters
parent:Container

the container in which to do the layout

preferredLayoutSizeback to summary
public Dimension preferredLayoutSize(Container parent)

Overrides java.awt.GridLayout.preferredLayoutSize.

Implements java.awt.LayoutManager.preferredLayoutSize.

Doc from java.awt.GridLayout.preferredLayoutSize.

Determines the preferred size of the container argument using this grid layout.

The preferred width of a grid layout is the largest preferred width of all of the components in the container times the number of columns, plus the horizontal padding times the number of columns minus one, plus the left and right insets of the target container.

The preferred height of a grid layout is the largest preferred height of all of the components in the container times the number of rows, plus the vertical padding times the number of rows minus one, plus the top and bottom insets of the target container.

Parameters
parent:Container

the container in which to do the layout

Returns:Dimension

the preferred dimensions to lay out the subcomponents of the specified container

setFillColumnback to summary
public void setFillColumn(JComponent c, boolean b)
setFillRowback to summary
public void setFillRow(JComponent c, boolean b)