public class FitLayout extends Object implements LayoutManager
| Modifier and Type | Field and Description |
|---|---|
protected static int |
DEFAULT_HEIGHT_OR_WIDTH
The default height and width to be used by FitLayout and its
extenders in order to avoid falling back to zero height and/or width.
|
| Constructor and Description |
|---|
FitLayout() |
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Does nothing because this LayoutManager lays out only the first
Component of the parent Container and thus doesn't need
any String associations.
|
protected Component |
getComponent(Container parent)
Gets the first Component of a specific Container if
there is such a Component.
|
protected void |
layoutComponent(Component component,
Rectangle bounds,
float alignmentX,
float alignmentY) |
void |
layoutContainer(Container parent) |
protected void |
layoutContainer(Container parent,
float componentAlignmentX) |
Dimension |
minimumLayoutSize(Container parent) |
Dimension |
preferredLayoutSize(Container parent)
Since this LayoutManager lays out only the first
Component of the specified parent Container, the
preferred size of the Container is the preferred size of the
mentioned Component.
|
void |
removeLayoutComponent(Component comp)
Does nothing because this LayoutManager lays out only the first
Component of the parent Container and thus doesn't need
any String associations.
|
protected static final int DEFAULT_HEIGHT_OR_WIDTH
public void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManagerprotected Component getComponent(Container parent)
parent - the Container to retrieve the first
Component ofprotected void layoutComponent(Component component, Rectangle bounds, float alignmentX, float alignmentY)
public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerprotected void layoutContainer(Container parent, float componentAlignmentX)
public Dimension minimumLayoutSize(Container parent)
minimumLayoutSize in interface LayoutManagerpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerCopyright © 2021 jitsi.org. All rights reserved.