cz.autel.dmi
public class HIGLayout extends Object implements LayoutManager2, Serializable
See Also: HIGConstraints
Constructor Summary | |
---|---|
HIGLayout(int[] widths, int[] heights)
Construct a new layout object. |
Method Summary | |
---|---|
void | addLayoutComponent(String name, Component comp) |
void | addLayoutComponent(Component comp, Object constraints)
Adds the specified component to the layout, using the HIGConstraints
constraint object. |
float | getLayoutAlignmentX(Container target)
Returns 0. |
float | getLayoutAlignmentY(Container target)
Returns 0. |
void | invalidateLayout(Container target)
Invalidates the layout, indicating that if the layout manager
has cached information it should be discarded. |
void | layoutContainer(Container target) |
Dimension | maximumLayoutSize(Container target)
Returns the maximum size of this component. |
Dimension | minimumLayoutSize(Container target) |
Dimension | preferredLayoutSize(Container target)
Calculates the preferred size dimensions for the specified
container given the components in the specified parent container. |
void | removeLayoutComponent(Component comp)
Removes the specified component from the layout. |
void | setColumnWeight(int col, int weight)
Sets weight of specified column. |
void | setColumnWidth(int col, int width)
Sets column width, realloc arrays if there is need. |
void | setPreferredColumnWidth(int col, int width)
Sets preferred width of specified column. |
void | setPreferredRowHeight(int row, int height)
Sets preferred height of specified row.
of difference when resizing. |
void | setRowHeight(int row, int height)
Sets row height, realloc arrays if there is need. |
void | setRowWeight(int row, int weight)
Sets weight of specified row. |
Parameters: widths array of column widths. heights array of row heights.
Deprecated: replaced by addLayoutComponent(Component, Object)
. Throws
UnsupportedOperationException.
Parameters: comp the component to be added HIGConstraints object determining where/how the component is added to the layout.
See Also: HIGConstraints
See Also: java.awt.Component#getMinimumSize() java.awt.Component#getPreferredSize() LayoutManager
Parameters: parent the component to be laid out
See Also: HIGLayout
Parameters: comp the component to be removed
Parameters: col index of column. Index must be > 0.
Since: 0.97
Parameters: col index of column. Index must be > 0. width the width to use in pixels
Since: 1.0
Parameters: row index of row. Index must be > 0. height the height in pixels
Since: 1.0
Since: 0.97
Parameters: row index of row. Index must be > 0.