Jitsi: the OpenSource Java VoIP and Instant Messaging client.

net.java.sip.communicator.impl.neomedia.device
Class ScreenDeviceImpl

java.lang.Object
  extended by net.java.sip.communicator.impl.neomedia.device.ScreenDeviceImpl
All Implemented Interfaces:
ScreenDevice

public class ScreenDeviceImpl
extends Object
implements ScreenDevice

Implementation of ScreenDevice.

Author:
Sebastien Vincent

Field Summary
(package private)  GraphicsDevice screen
          AWT GraphicsDevice.
 
Constructor Summary
protected ScreenDeviceImpl(int index, GraphicsDevice screen)
          Constructor.
 
Method Summary
 boolean containsPoint(Point p)
          If the screen contains specified point.
static ScreenDevice[] getAvailableScreenDevice()
          Returns all available ScreenDevice device.
 Rectangle getBounds()
          Get bounds of the screen.
 int getIndex()
          Get the screen index.
 String getName()
          Get the identifier of the screen.
 Dimension getSize()
          Get current resolution of ScreenDevice device.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

screen

final GraphicsDevice screen
AWT GraphicsDevice.

Constructor Detail

ScreenDeviceImpl

protected ScreenDeviceImpl(int index,
                           GraphicsDevice screen)
Constructor.

Parameters:
index - screen index
screen - screen device
Method Detail

getAvailableScreenDevice

public static ScreenDevice[] getAvailableScreenDevice()
Returns all available ScreenDevice device.

Returns:
array of ScreenDevice device

getIndex

public int getIndex()
Get the screen index.

Specified by:
getIndex in interface ScreenDevice
Returns:
screen index

getSize

public Dimension getSize()
Get current resolution of ScreenDevice device.

Specified by:
getSize in interface ScreenDevice
Returns:
current resolution of the screen

getName

public String getName()
Get the identifier of the screen.

Returns:
ID of the screen

containsPoint

public boolean containsPoint(Point p)
If the screen contains specified point.

Specified by:
containsPoint in interface ScreenDevice
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

Jitsi: the OpenSource Java VoIP and Instant Messaging client.

Jitsi, the OpenSource Java VoIP and Instant Messaging client.
Distributable under LGPL license.