public class AbsoluteLayout extends Object implements LayoutManager2
| Modifier and Type | Field and Description |
|---|---|
protected Hashtable |
comptable
This hashtable maintains the association between a component and its
gridbag constraints.
|
protected AbsoluteConstraints |
defaultConstraints |
| Constructor and Description |
|---|
AbsoluteLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(Component comp,
Object constraints) |
void |
addLayoutComponent(String name,
Component comp) |
float |
getLayoutAlignmentX(Container target) |
float |
getLayoutAlignmentY(Container target) |
void |
invalidateLayout(Container target) |
void |
layoutContainer(Container parent) |
protected AbsoluteConstraints |
lookupConstraints(Component comp) |
Dimension |
maximumLayoutSize(Container target) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent) |
void |
removeLayoutComponent(Component comp) |
protected Hashtable comptable
comptable are the
components and the values are the instances of
GridBagConstraints.protected AbsoluteConstraints defaultConstraints
public void addLayoutComponent(Component comp, Object constraints)
addLayoutComponent in interface LayoutManager2public float getLayoutAlignmentX(Container target)
getLayoutAlignmentX in interface LayoutManager2public float getLayoutAlignmentY(Container target)
getLayoutAlignmentY in interface LayoutManager2public void invalidateLayout(Container target)
invalidateLayout in interface LayoutManager2public Dimension maximumLayoutSize(Container target)
maximumLayoutSize in interface LayoutManager2public void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagerpublic void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerprotected AbsoluteConstraints lookupConstraints(Component comp)
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerCopyright © 2016 Imatia Innovation S.L.. All rights reserved.