interface org.aswing.LayoutManager
Implementors | ||||||||||||||||||||||
![]() | DateGridLayout, Form, FormRow, BasicAccordionUI, BasicSplitPaneUI, BasicTabbedPaneUI, EmptyLayout, JList, JTable, WeightBoxLayout |
|
Defines an interface for classes that know how to layout Containers based on a layout constraints object.
@see Component @see Container
@author paling
Instance Fields
function addLayoutComponent(comp:Component, constraints:Dynamic): Void
Adds the specified component to the layout, using the specified constraint object.
comp | the component to be added |
constraints | where/how the component is added to the layout. |
function getLayoutAlignmentX(target:Container): Float
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.
function getLayoutAlignmentY(target:Container): Float
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.
function invalidateLayout(target:Container): Void
Invalidates the layout, indicating that if the layout manager has cached information it should be discarded.
function layoutContainer(target:Container): Void
Lays out the specified container.
target | the container to be laid out |
function maximumLayoutSize(target:Container): IntDimension
Calculates the maximum size dimensions for the specified container, given the components it contains. @see #preferredLayoutSize
target | the component to be laid out |
function minimumLayoutSize(target:Container): IntDimension
Calculates the minimum size dimensions for the specified container, given the components it contains. @see #preferredLayoutSize
target | the component to be laid out |
function preferredLayoutSize(target:Container): IntDimension
Calculates the preferred size dimensions for the specified container, given the components it contains. @see #minimumLayoutSize
target | the container to be laid out |
function removeLayoutComponent(comp:Component): Void
Removes the specified component from the layout.
comp | the component to be removed |