Uses of Interface
com.googlecode.lanterna.gui2.LayoutData
Packages that use LayoutData
-
Uses of LayoutData in com.googlecode.lanterna.gui2
Classes in com.googlecode.lanterna.gui2 that implement LayoutDataModifier and TypeClassDescriptionstatic enum
This type is what you use as the layout data for components added to a panel usingBorderLayout
for its layout manager.(package private) static class
private static class
Fields in com.googlecode.lanterna.gui2 declared as LayoutDataMethods in com.googlecode.lanterna.gui2 that return LayoutDataModifier and TypeMethodDescriptionstatic LayoutData
GridLayout.createHorizontallyEndAlignedLayoutData
(int horizontalSpan) This is a shortcut method that will create a grid layout data object that will expand its cell as much as is can vertically and make the component occupy the whole area vertically and center it horizontallystatic LayoutData
GridLayout.createHorizontallyFilledLayoutData()
This is a shortcut method that will create a grid layout data object that will expand its cell as much as is can horizontally and make the component occupy the whole area horizontally and center it vertically, spanning 1 cell.static LayoutData
GridLayout.createHorizontallyFilledLayoutData
(int horizontalSpan) This is a shortcut method that will create a grid layout data object that will expand its cell as much as is can horizontally and make the component occupy the whole area horizontally and center it verticallystatic LayoutData
GridLayout.createLayoutData
(GridLayout.Alignment horizontalAlignment, GridLayout.Alignment verticalAlignment) Creates a layout data object forGridLayout
:s that specify the horizontal and vertical alignment for the component in case the cell space is larger than the preferred size of the componentstatic LayoutData
GridLayout.createLayoutData
(GridLayout.Alignment horizontalAlignment, GridLayout.Alignment verticalAlignment, boolean grabExtraHorizontalSpace, boolean grabExtraVerticalSpace) Creates a layout data object forGridLayout
:s that specify the horizontal and vertical alignment for the component in case the cell space is larger than the preferred size of the component.static LayoutData
GridLayout.createLayoutData
(GridLayout.Alignment horizontalAlignment, GridLayout.Alignment verticalAlignment, boolean grabExtraHorizontalSpace, boolean grabExtraVerticalSpace, int horizontalSpan, int verticalSpan) Creates a layout data object forGridLayout
:s that specify the horizontal and vertical alignment for the component in case the cell space is larger than the preferred size of the component.static LayoutData
LinearLayout.createLayoutData
(LinearLayout.Alignment alignment) Creates aLayoutData
forLinearLayout
that assigns a component to a particular alignment on its counter-axis, meaning the horizontal alignment on verticalLinearLayout
s and vertical alignment on horizontalLinearLayout
s.static LayoutData
LinearLayout.createLayoutData
(LinearLayout.Alignment alignment, LinearLayout.GrowPolicy growPolicy) Creates aLayoutData
forLinearLayout
that assigns a component to a particular alignment on its counter-axis, meaning the horizontal alignment on verticalLinearLayout
s and vertical alignment on horizontalLinearLayout
s.AbstractBorder.getLayoutData()
AbstractComponent.getLayoutData()
Component.getLayoutData()
Returns the layout data associated with this component.Methods in com.googlecode.lanterna.gui2 with parameters of type LayoutDataModifier and TypeMethodDescriptionPanel.addComponent
(Component component, LayoutData layoutData) This method is a shortcut for calling:AbstractBorder.setLayoutData
(LayoutData ld) AbstractComponent.setLayoutData
(LayoutData data) Component.setLayoutData
(LayoutData data) Sets optional layout data associated with this component.