Module com.googlecode.lanterna
Package com.googlecode.lanterna.gui2
Class SplitPanel.ScrollPanelLayoutManager
- java.lang.Object
-
- com.googlecode.lanterna.gui2.SplitPanel.ScrollPanelLayoutManager
-
- All Implemented Interfaces:
LayoutManager
- Enclosing class:
- SplitPanel
class SplitPanel.ScrollPanelLayoutManager extends java.lang.Object implements LayoutManager
-
-
Constructor Summary
Constructors Constructor Description ScrollPanelLayoutManager()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
doLayout(TerminalSize area, java.util.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(java.util.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.
-
-
-
Method Detail
-
getPreferredSize
public TerminalSize getPreferredSize(java.util.List<Component> components)
Description copied from interface:LayoutManager
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.- Specified by:
getPreferredSize
in interfaceLayoutManager
- Parameters:
components
- List of components- Returns:
- Size the layout manager would like to have
-
doLayout
public void doLayout(TerminalSize area, java.util.List<Component> components)
Description copied from interface:LayoutManager
Given a size constraint, update the location and size of each component in the component list by laying them out in the available area. This method will callsetPosition(..)
andsetSize(..)
on the Components.- Specified by:
doLayout
in interfaceLayoutManager
- Parameters:
area
- Size available to this layout manager to lay out the components oncomponents
- List of components to lay out
-
hasChanged
public boolean hasChanged()
Description copied from interface:LayoutManager
Returns true if the internal state of this LayoutManager has changed since the last call to doLayout. This will tell the container that it needs to call doLayout again.- Specified by:
hasChanged
in interfaceLayoutManager
- Returns:
true
if this layout manager's internal state has changed since the last call todoLayout
-
-