public class VideoLayout extends FitLayout
Modifier and Type | Field and Description |
---|---|
static java.lang.String |
CANVAS
The video canvas constraint.
|
static java.lang.String |
CENTER_REMOTE
The center remote video constraint.
|
static java.lang.String |
CLOSE_LOCAL_BUTTON
The close local video constraint.
|
static java.lang.String |
EAST_REMOTE
The east remote video constraint.
|
static java.lang.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(java.lang.String name,
java.awt.Component comp)
Adds the given component in this layout on the specified by name
position.
|
static boolean |
areAspectRatiosEqual(java.awt.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 java.awt.Component |
getComponent(java.awt.Container parent)
Returns the remote video component.
|
java.lang.Object |
getComponentConstraints(java.awt.Component c)
Returns the constraints for the given component.
|
java.awt.Component |
getLocal()
Returns the local video component.
|
java.awt.Component |
getLocalCloseButton()
Returns the local video close button.
|
void |
layoutContainer(java.awt.Container parent)
Lays out the specified Container (i.e.
|
java.awt.Dimension |
preferredLayoutSize(java.awt.Container parent)
Returns the preferred layout size for the given container.
|
void |
removeLayoutComponent(java.awt.Component comp)
Removes the given component from this layout.
|
layoutComponent, layoutContainer, minimumLayoutSize
public static final java.lang.String CANVAS
public static final java.lang.String CENTER_REMOTE
public static final java.lang.String CLOSE_LOCAL_BUTTON
public static final java.lang.String EAST_REMOTE
public static final java.lang.String LOCAL
public VideoLayout(boolean conference)
conference
- true if the new instance will be dedicated to
a conference; otherwise, falsepublic void addLayoutComponent(java.lang.String name, java.awt.Component comp)
addLayoutComponent
in interface java.awt.LayoutManager
addLayoutComponent
in class FitLayout
name
- the constraint giving the position of the component in this
layoutcomp
- the component to addpublic static boolean areAspectRatiosEqual(java.awt.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 java.awt.Component getComponent(java.awt.Container parent)
getComponent
in class FitLayout
parent
- the Container to retrieve the first
Component ofpublic java.lang.Object getComponentConstraints(java.awt.Component c)
c
- the component for which constraints we're looking forpublic java.awt.Component getLocal()
public java.awt.Component getLocalCloseButton()
public void layoutContainer(java.awt.Container parent)
layoutContainer
in interface java.awt.LayoutManager
layoutContainer
in class FitLayout
parent
- the Container to lay outpublic java.awt.Dimension preferredLayoutSize(java.awt.Container parent)
preferredLayoutSize
in interface java.awt.LayoutManager
preferredLayoutSize
in class FitLayout
parent
- the container which preferred layout size we're looking forpublic void removeLayoutComponent(java.awt.Component comp)
removeLayoutComponent
in interface java.awt.LayoutManager
removeLayoutComponent
in class FitLayout
comp
- the component to remove from the layout
Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under Apache license.