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.
-
copyrightString
-
-
kTestOnlyMask
- See the 'setDepth' and 'setResolution' methods.
-
getBounds()
- Returns the global coordinates of the monitor.
-
getDepth()
- Returns the bit depth of the monitor.
-
getWorkarea()
- Returns the 'work area' of the monitor, in global coordinates.
-
isMainMonitor()
- Returns whether this is the main monitor.
-
setDepth(int, int)
- Tries to set the indicated depth.
-
setResolution(Dimension, Dimension, int)
- Tries to set the indicated resolution.
copyrightString
public final static String copyrightString
kTestOnlyMask
public final static int kTestOnlyMask
- See the 'setDepth' and 'setResolution' methods.
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>.
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.
getDepth
public abstract int getDepth()
- Returns the bit depth of the monitor. If the value returned is zero or less, an
error occured.
isMainMonitor
public abstract boolean isMainMonitor()
- Returns whether this is the main monitor.
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.
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