|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Object | +--gov.nist.antd.java.awt.XYLayout
This Layout provides directly positioning of gui's in a container.
This software was produced by the National Institute of Standards and
Technology (NIST), an agency of the U.S. government, and by statute
is not subject to copyright in the United States. RECIPIENTS OF THIS
SOFTWARE ASSUME ALL RESPONSIBILITY ASSOCIATED WITH ITS OPERATION,
MODIFICATION, MAINTENANCE, AND SUBSEQUENT RE-DISTRIBUTION.
| Constructor Summary | |
XYLayout()
Constructs a new XY Layout. |
|
| Method Summary | |
void |
addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
This method sets the preffered size of the components. |
void |
addLayoutComponent(java.lang.String name,
java.awt.Component comp)
This method calls addLayoutComponent (comp, null) |
float |
getLayoutAlignmentX(java.awt.Container target)
Not used by this class. |
float |
getLayoutAlignmentY(java.awt.Container target)
Not used by this class. |
void |
invalidateLayout(java.awt.Container target)
Not used by this class. |
void |
layoutContainer(java.awt.Container target)
Lays out the container. |
java.awt.Dimension |
maximumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container. |
java.awt.Dimension |
minimumLayoutSize(java.awt.Container target)
Returns the minimum dimensions needed to layout the components contained in the specified target container. |
java.awt.Dimension |
preferredLayoutSize(java.awt.Container target)
Returns the preferred dimensions for this layout calculated by the dimension of all components in the specified target container. |
void |
removeLayoutComponent(java.awt.Component comp)
Not used by this class. |
java.lang.String |
toString()
Returns a string representation of this XYLayout
object and its values. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
public XYLayout()
| Method Detail |
public void addLayoutComponent(java.lang.String name,
java.awt.Component comp)
addLayoutComponent in interface java.awt.LayoutManagername - the name of the componentcomp - the component to be addedaddLayoutComponent(Component,Object)public void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent in interface java.awt.LayoutManagercomp - the component to removeContainer.removeAll()public java.awt.Dimension preferredLayoutSize(java.awt.Container target)
preferredLayoutSize in interface java.awt.LayoutManagertarget - the component which needs to be laid out
Container,
minimumLayoutSize(java.awt.Container),
Container.getPreferredSize()public java.awt.Dimension minimumLayoutSize(java.awt.Container target)
minimumLayoutSize in interface java.awt.LayoutManagertarget - the component which needs to be laid out
preferredLayoutSize(java.awt.Container),
Container,
Container.doLayout()public void layoutContainer(java.awt.Container target)
layoutContainer in interface java.awt.LayoutManagertarget - the specified component being laid out.Container,
Container.doLayout()public java.lang.String toString()
XYLayout
object and its values.
toString in class java.lang.Object
public void addLayoutComponent(java.awt.Component comp,
java.lang.Object constraints)
addLayoutComponent in interface java.awt.LayoutManager2comp - the component to be addedconstraints - the constraint must be a Rectanglepublic java.awt.Dimension maximumLayoutSize(java.awt.Container target)
maximumLayoutSize in interface java.awt.LayoutManager2target - the component which needs to be laid out
preferredLayoutSize(java.awt.Container),
Container,
Container.doLayout()public float getLayoutAlignmentX(java.awt.Container target)
getLayoutAlignmentX in interface java.awt.LayoutManager2target - some container.
public float getLayoutAlignmentY(java.awt.Container target)
getLayoutAlignmentY in interface java.awt.LayoutManager2target - some container.
public void invalidateLayout(java.awt.Container target)
invalidateLayout in interface java.awt.LayoutManager2target - some container.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||