AbsoluteLayout
, BorderLayout
, GridLayout
, LinearLayout
public interface LayoutManager
LayoutData
object, which can be assigned to each Component
.AbsoluteLayout
,
BorderLayout
,
GridLayout
,
LinearLayout
Modifier and Type | Method | Description |
---|---|---|
void |
doLayout(TerminalSize area,
List<Component> components) |
Given a size constraint, update the location and size of each component in the component list by laying them out
in the available area.
|
TerminalSize |
getPreferredSize(List<Component> components) |
This method returns the dimensions it would prefer to have to be able to layout all components while giving all
of them as much space as they are asking for.
|
boolean |
hasChanged() |
Returns true if the internal state of this LayoutManager has changed since the last call to doLayout.
|
TerminalSize getPreferredSize(List<Component> components)
components
- List of componentsvoid doLayout(TerminalSize area, List<Component> components)
setPosition(..)
and setSize(..)
on the Components.area
- Size available to this layout manager to lay out the components oncomponents
- List of components to lay outboolean hasChanged()
true
if this layout manager's internal state has changed since the last call to doLayout
Copyright © 2020. All rights reserved.