|
|||||||||
| Home >> All >> org >> netbeans >> lib >> [ awtextra overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.netbeans.lib.awtextra
Class AbsoluteLayout

java.lang.Objectorg.netbeans.lib.awtextra.AbsoluteLayout
- All Implemented Interfaces:
- java.awt.LayoutManager, java.awt.LayoutManager2, java.io.Serializable
- public class AbsoluteLayout
- extends java.lang.Object
- implements java.awt.LayoutManager2, java.io.Serializable
- extends java.lang.Object
AbsoluteLayout is a LayoutManager that works as a replacement for "null" layout to allow placement of components in absolute positions.
- Version:
- 1.01, Aug 19, 1998
| Field Summary | |
protected java.util.Hashtable |
constraints
A mapping |
(package private) static long |
serialVersionUID
generated Serialized Version UID |
| Constructor Summary | |
AbsoluteLayout()
|
|
| Method Summary | |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constr)
Adds the specified component to the layout, using the specified constraint object. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
Adds the specified component with the specified name to the layout. |
float |
getLayoutAlignmentX(java.awt.Container target)
Returns the alignment along the x axis. |
float |
getLayoutAlignmentY(java.awt.Container target)
Returns the alignment along the y axis. |
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 parent)
Lays out the container in the specified panel. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Returns the maximum size of this component. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container parent)
Calculates the minimum dimension for the specified panel given the components in the specified parent container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Calculates the preferred dimension for the specified panel given the components in the specified parent container. |
void |
removeLayoutComponent(java.awt.Component comp)
Removes the specified component from the layout. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
serialVersionUID
static final long serialVersionUID
- generated Serialized Version UID
- See Also:
- Constant Field Values
constraints
protected java.util.Hashtable constraints
- A mapping
| Constructor Detail |
AbsoluteLayout
public AbsoluteLayout()
| Method Detail |
addLayoutComponent
public void addLayoutComponent(java.lang.String name, java.awt.Component comp)
- Adds the specified component with the specified name to
the layout.
- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component comp)
- Removes the specified component from the layout.
- Specified by:
removeLayoutComponentin interfacejava.awt.LayoutManager
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
- Calculates the preferred dimension for the specified
panel given the components in the specified parent container.
- Specified by:
preferredLayoutSizein interfacejava.awt.LayoutManager
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container parent)
- Calculates the minimum dimension for the specified
panel given the components in the specified parent container.
- Specified by:
minimumLayoutSizein interfacejava.awt.LayoutManager
layoutContainer
public void layoutContainer(java.awt.Container parent)
- Lays out the container in the specified panel.
- Specified by:
layoutContainerin interfacejava.awt.LayoutManager
addLayoutComponent
public void addLayoutComponent(java.awt.Component comp, java.lang.Object constr)
- Adds the specified component to the layout, using the specified
constraint object.
- Specified by:
addLayoutComponentin interfacejava.awt.LayoutManager2
maximumLayoutSize
public java.awt.Dimension maximumLayoutSize(java.awt.Container target)
- Returns the maximum size of this component.
- Specified by:
maximumLayoutSizein interfacejava.awt.LayoutManager2
getLayoutAlignmentX
public float getLayoutAlignmentX(java.awt.Container target)
- Returns the alignment along the x axis. This specifies how
the component would like to be aligned relative to other
components. The value should be a number between 0 and 1
where 0 represents alignment along the origin, 1 is aligned
the furthest away from the origin, 0.5 is centered, etc.
- Specified by:
getLayoutAlignmentXin interfacejava.awt.LayoutManager2
getLayoutAlignmentY
public float getLayoutAlignmentY(java.awt.Container target)
- Returns the alignment along the y axis. This specifies how
the component would like to be aligned relative to other
components. The value should be a number between 0 and 1
where 0 represents alignment along the origin, 1 is aligned
the furthest away from the origin, 0.5 is centered, etc.
- Specified by:
getLayoutAlignmentYin interfacejava.awt.LayoutManager2
invalidateLayout
public void invalidateLayout(java.awt.Container target)
- Invalidates the layout, indicating that if the layout manager
has cached information it should be discarded.
- Specified by:
invalidateLayoutin interfacejava.awt.LayoutManager2
|
|||||||||
| Home >> All >> org >> netbeans >> lib >> [ awtextra overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC
org.netbeans.lib.awtextra.AbsoluteLayout