public class VideoLayout extends FitLayout
| Modifier and Type | Field and Description |
|---|---|
static String |
CANVAS
The video canvas constraint.
|
static String |
CENTER_REMOTE
The center remote video constraint.
|
static String |
CLOSE_LOCAL_BUTTON
The close local video constraint.
|
static String |
EAST_REMOTE
The east remote video constraint.
|
static String |
LOCAL
The local video constraint.
|
DEFAULT_HEIGHT_OR_WIDTH| Constructor and Description |
|---|
VideoLayout(boolean conference)
Creates an instance of VideoLayout by also indicating if this
video layout is dedicated to a conference interface.
|
| Modifier and Type | Method and Description |
|---|---|
void |
addLayoutComponent(String name,
Component comp)
Adds the given component in this layout on the specified by name
position.
|
static boolean |
areAspectRatiosEqual(Dimension size,
int width,
int height)
Determines whether the aspect ratio of a specific Dimension is
to be considered equal to the aspect ratio of specific width and
height.
|
protected Component |
getComponent(Container parent)
Returns the remote video component.
|
Object |
getComponentConstraints(Component c)
Returns the constraints for the given component.
|
Component |
getLocal()
Returns the local video component.
|
Component |
getLocalCloseButton()
Returns the local video close button.
|
void |
layoutContainer(Container parent)
Lays out the specified Container (i.e.
|
Dimension |
preferredLayoutSize(Container parent)
Returns the preferred layout size for the given container.
|
void |
removeLayoutComponent(Component comp)
Removes the given component from this layout.
|
layoutComponent, layoutContainer, minimumLayoutSizepublic static final String CANVAS
public static final String CENTER_REMOTE
public static final String CLOSE_LOCAL_BUTTON
public static final String EAST_REMOTE
public static final String LOCAL
public VideoLayout(boolean conference)
conference - true if the new instance will be dedicated to
a conference; otherwise, falsepublic void addLayoutComponent(String name, Component comp)
addLayoutComponent in interface LayoutManageraddLayoutComponent in class FitLayoutname - the constraint giving the position of the component in this
layoutcomp - the component to addpublic static boolean areAspectRatiosEqual(Dimension size, int width, int height)
size - the Dimension whose aspect ratio is to be compared
to the aspect ratio of width and heightwidth - the width which defines in combination with height
the aspect ratio to be compared to the aspect ratio of sizeheight - the height which defines in combination with width
the aspect ratio to be compared to the aspect ratio of sizeprotected Component getComponent(Container parent)
getComponent in class FitLayoutparent - the Container to retrieve the first
Component ofpublic Object getComponentConstraints(Component c)
c - the component for which constraints we're looking forpublic Component getLocal()
public Component getLocalCloseButton()
public void layoutContainer(Container parent)
layoutContainer in interface LayoutManagerlayoutContainer in class FitLayoutparent - the Container to lay outpublic Dimension preferredLayoutSize(Container parent)
preferredLayoutSize in interface LayoutManagerpreferredLayoutSize in class FitLayoutparent - the container which preferred layout size we're looking forpublic void removeLayoutComponent(Component comp)
removeLayoutComponent in interface LayoutManagerremoveLayoutComponent in class FitLayoutcomp - the component to remove from the layoutCopyright © 2021 jitsi.org. All rights reserved.