Interface COM.tolstoy.jconfig.Monitor
All Packages  Class Hierarchy  This Package  Previous  Next  Index

Interface COM.tolstoy.jconfig.Monitor

public interface Monitor
extends Object
extends DumpInfo
Represents a video monitor. The 'getMonitors' and 'getMainMonitor' methods of the 'FileRegistry' singleton return objects of this class.

Variable Index

 o copyrightString
 o kTestOnlyMask
See the 'setDepth' and 'setResolution' methods.

Method Index

 o getBounds()
Returns the global coordinates of the monitor.
 o getDepth()
Returns the bit depth of the monitor.
 o getWorkarea()
Returns the 'work area' of the monitor, in global coordinates.
 o isMainMonitor()
Returns whether this is the main monitor.
 o setDepth(int, int)
Tries to set the indicated depth.
 o setResolution(Dimension, Dimension, int)
Tries to set the indicated resolution.

Variables

 o copyrightString
  public final static String copyrightString
 o kTestOnlyMask
  public final static int kTestOnlyMask
See the 'setDepth' and 'setResolution' methods.

Methods

 o getBounds
  public abstract Rectangle getBounds()
Returns the global coordinates of the monitor. On a Mac, the upper left corner of the main monitor ( the one with the menu bar ) is at <0,0>.
 o getWorkarea
  public abstract Rectangle getWorkarea()
Returns the 'work area' of the monitor, in global coordinates. This is the bounds, minus any menu/task bars. For instance, if the main monitor of a Mac is 640x480, and the menu bar is 20 pixels high, this will return a Rectangle where x=0, y=20, width=640, and height=460.
 o getDepth
  public abstract int getDepth()
Returns the bit depth of the monitor. If the value returned is zero or less, an error occured.
 o isMainMonitor
  public abstract boolean isMainMonitor()
Returns whether this is the main monitor.
 o setDepth
  public abstract int setDepth(int newDepth,
                               int flags)
Tries to set the indicated depth. If 'kTestOnlyMask' is set in 'flags', whether this depth can be set is tested, but the depth is not changed. Returns an error code, where zero means no error occured.
 o setResolution
  public abstract int setResolution(Dimension requestedRes,
                                    Dimension newRes,
                                    int flags)
Tries to set the indicated resolution. If 'kTestOnlyMask' is set in 'flags', whether this resolution can be set is tested, but the resolution is not changed. On exit, 'newRes' contains the closest resolution possible. Returns an error code, where zero means no error occured.

All Packages  Class Hierarchy  This Package  Previous  Next  Index