java.lang.Object
com.googlecode.lanterna.gui2.Panels
Utility class for quickly bunching up components in a panel, arranged in a particular pattern
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionstatic Panel
Creates a newPanel
with aGridLayout
layout manager and adds all the components passed instatic Panel
horizontal
(Component... components) Creates a newPanel
with aLinearLayout
layout manager in horizontal mode and adds all the components passed instatic Panel
Creates a newPanel
with aLinearLayout
layout manager in vertical mode and adds all the components passed in
-
Constructor Details
-
Panels
private Panels()
-
-
Method Details
-
horizontal
Creates a newPanel
with aLinearLayout
layout manager in horizontal mode and adds all the components passed in- Parameters:
components
- Components to be added to the newPanel
, in order- Returns:
- The new
Panel
-
vertical
Creates a newPanel
with aLinearLayout
layout manager in vertical mode and adds all the components passed in- Parameters:
components
- Components to be added to the newPanel
, in order- Returns:
- The new
Panel
-
grid
Creates a newPanel
with aGridLayout
layout manager and adds all the components passed in- Parameters:
columns
- Number of columns in the gridcomponents
- Components to be added to the newPanel
, in order- Returns:
- The new
Panel
-