PATH |
EOViewLayout
- Inherits from:
- Object
- Implements:
- java.awt.LayoutManager2
- java.io.Serializable
- Package:
- com.webobjects.eointerface.swing
Class Description
EOViewLayout is an AWT LayoutManager for use in Java Client applications. It implements the geometry options available in Interface Builder's Size inspector. The size of a Component embedded in a Container using this layout will be a function of both its autosizing mask and its initial size (see setAutosizingMask for details).
Constants
EOViewLayout defines the following int
constants:
For more information on what these constants are and how they're used, see the method description for setAutosizingMask.
Interfaces Implemented
- java.awt.LayoutManager2
- addLayoutComponent
- getLayoutAlignmentX
- getLayoutAlignmentY
- invalidateLayout
- maximumLayoutSize
- java.io.Serializable
Method Types
- All methods
- EOViewLayout
- autosizingMask
- lastKnownSize
- layoutContainer
- minimumLayoutSize
- preferredLayoutSize
- removeLayoutComponent
- setAutosizingMask
- setLastKnownSize
Constructors
EOViewLayout
public EOViewLayout()
Instance Methods
addLayoutComponent
public void addLayoutComponent( String name, java.awt.Component aComponent)
addLayoutComponent
public void addLayoutComponent( java.awt.Component aComponent, Object constraints)
autosizingMask
public int autosizingMask(java.awt.Component aComponent)
getLayoutAlignmentX
public float getLayoutAlignmentX(java.awt.Container aContainer)
getLayoutAlignmentY
public float getLayoutAlignmentY(java.awt.Container aContainer)
invalidateLayout
public void invalidateLayout(java.awt.Container aContainer)
lastKnownSize
public java.awt.Dimension lastKnownSize(java.awt.Component aComponent)
layoutContainer
public void layoutContainer(java.awt.Container aContainer)
maximumLayoutSize
public java.awt.Dimension maximumLayoutSize(java.awt.Container aContainer)
minimumLayoutSize
public java.awt.Dimension minimumLayoutSize(java.awt.Container aContainer)
preferredLayoutSize
public java.awt.Dimension preferredLayoutSize(java.awt.Container aContainer)
removeLayoutComponent
public void removeLayoutComponent(java.awt.Component aComponent)
setAutosizingMask
public void setAutosizingMask( java.awt.Component aComponent, int mask)
Constant | Description |
MaxXMargin | the distance between component's right edge and that of its parent may be adjusted |
MinXMargin | component's left edge distance may be adjusted |
MaxYMargin | the distance between component's bottom edge and that of its parent may be adjusted |
MinYMargin | component's top edge distance may be adjusted |
WidthSizable | component's width may be adjusted |
HeightSizable | component's height may be adjusted |
BothSizable | both width and height may be adjusted |
Note that unless mask is 0 (zero), the default mask, component's adjusted size is a factor of its size when setAutosizingMask was invoked.
setLastKnownSize
public void setLastKnownSize( java.awt.Component aComponent, java.awt.Dimension size)
© 2001 Apple Computer, Inc. (Last Published April 21, 2001)