|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--cz.autel.dmi.HIGLayout
Layout manager based on idea of design grid. For description please see tutorial included in download bundle.
HIGConstraints
, Serialized FormConstructor Summary | |
HIGLayout(int[] widths,
int[] heights)
Construct a new layout object. |
Method Summary | |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
Adds the specified component to the layout, using the HIGConstraints constraint object. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Deprecated. replaced by addLayoutComponent(Component, Object) . Throws
UnsupportedOperationException. |
float |
getLayoutAlignmentX(java.awt.Container target)
Returns 0. |
float |
getLayoutAlignmentY(java.awt.Container target)
Returns 0. |
void |
invalidateLayout(java.awt.Container target)
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded. |
void |
layoutContainer(java.awt.Container target)
|
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Returns the maximum size of this component. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Calculates the preferred size dimensions for the specified container given the components in the specified parent container. |
void |
removeLayoutComponent(java.awt.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. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public HIGLayout(int[] widths, int[] heights)
widths
- array of column widths.heights
- array of row heights.Method Detail |
public void setColumnWidth(int col, int width)
public void setRowHeight(int row, int height)
public void setPreferredColumnWidth(int col, int width)
col
- index of column. Index must be > 0.width
- the width to use in pixelspublic void setPreferredRowHeight(int row, int height)
row
- index of row. Index must be > 0.height
- the height in pixelspublic void setColumnWeight(int col, int weight)
col
- index of column. Index must be > 0.public void setRowWeight(int row, int weight)
row
- index of row. Index must be > 0.public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent(Component, Object)
. Throws
UnsupportedOperationException.
addLayoutComponent
in interface java.awt.LayoutManager
public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
comp
- the component to be removedpublic java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize
in interface java.awt.LayoutManager
parent
- the component to be laid outminimumLayoutSize(java.awt.Container)
public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize
in interface java.awt.LayoutManager
public void layoutContainer(java.awt.Container target)
layoutContainer
in interface java.awt.LayoutManager
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constraints)
addLayoutComponent
in interface java.awt.LayoutManager2
comp
- the component to be addedHIGConstraints
- object determining where/how the component is added to the layout.HIGConstraints
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize
in interface java.awt.LayoutManager2
Component.getMinimumSize()
,
Component.getPreferredSize()
,
LayoutManager
public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX
in interface java.awt.LayoutManager2
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY
in interface java.awt.LayoutManager2
public void invalidateLayout(java.awt.Container target)
invalidateLayout
in interface java.awt.LayoutManager2
|
|||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |