Package org.jitsi.impl.neomedia.device
Class ScreenDeviceImpl
- java.lang.Object
-
- org.jitsi.impl.neomedia.device.ScreenDeviceImpl
-
- All Implemented Interfaces:
ScreenDevice
public class ScreenDeviceImpl extends Object implements ScreenDevice
Implementation of ScreenDevice.- Author:
- Sebastien Vincent, Lyubomir Marinov
-
-
Constructor Summary
Constructors Modifier Constructor Description protectedScreenDeviceImpl(int index, GraphicsDevice screen)Constructor.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description booleancontainsPoint(Point p)If the screen contains specified point.static ScreenDevice[]getAvailableScreenDevices()Returns all available ScreenDevices.RectanglegetBounds()Get bounds of the screen.static ScreenDevicegetDefaultScreenDevice()Gets the default ScreenDevice.intgetIndex()Get the screen index.StringgetName()Get the identifier of the screen.DimensiongetSize()Gets the (current) size/resolution of this ScreenDevice.
-
-
-
Constructor Detail
-
ScreenDeviceImpl
protected ScreenDeviceImpl(int index, GraphicsDevice screen)Constructor.- Parameters:
index- screen indexscreen- screen device
-
-
Method Detail
-
getAvailableScreenDevices
public static ScreenDevice[] getAvailableScreenDevices()
Returns all available ScreenDevices.- Returns:
- an array of all available ScreenDevices
-
getDefaultScreenDevice
public static ScreenDevice getDefaultScreenDevice()
Gets the default ScreenDevice. The implementation attempts to return the ScreenDevice with the highest resolution.- Returns:
- the default ScreenDevice
-
containsPoint
public boolean containsPoint(Point p)
If the screen contains specified point.- Specified by:
containsPointin interfaceScreenDevice- Parameters:
p- point coordinate- Returns:
- true if point belongs to screen, false otherwise
-
getBounds
public Rectangle getBounds()
Get bounds of the screen.- Returns:
- bounds of the screen
-
getIndex
public int getIndex()
Get the screen index.- Specified by:
getIndexin interfaceScreenDevice- Returns:
- screen index
-
getName
public String getName()
Get the identifier of the screen.- Returns:
- ID of the screen
-
getSize
public Dimension getSize()
Gets the (current) size/resolution of this ScreenDevice.- Specified by:
getSizein interfaceScreenDevice- Returns:
- the (current) size/resolution of this ScreenDevice
-
-