Main Page
    Cookbook/Overview     ImageMeister     the jcprops file     Licensing
    Binary Installation & Configuration [ Win · Mac · Nix · OSX ]     Changes
    Public API
    Source Code Main Page
        Java [ Common · Win · Mac · Nix ]     Native Code [ Common · Win · Mac · Nix ]     Manifest
        Native Code Overviews [ Common · Win · Mac · Nix · Strings ]     Macros [ General · Native Macros ]
        Walkthroughs [ Java only · Java and native ]     Building [ Win · Mac · Nix · OSX ]     Distribution Issues

All Packages  This Package  Class Hierarchy  Class Search  Index

Class com.jconfig.mac.MonitorMRJ
java.lang.Object
   |
   +----com.jconfig.mac.MonitorMRJ

  Summary

class  MonitorMRJ
     extends java.lang.Object
     implements com.jconfig.Monitor
{
          // Fields 17
     private boolean bIsMainMonitor;
     private Rectangle boundsRect;
     private static final String copyrightString;
     private int depth;
     private static final int kOffsBoundsBottom;
     private static final int kOffsBoundsLeft;
     private static final int kOffsBoundsRight;
     private static final int kOffsBoundsTop;
     private static final int kOffsDepth;
     private static final int kOffsIsMainMonitor;
     private static final int kOffsRefNum;
     private static final int kOffsWorkareaBottom;
     private static final int kOffsWorkareaLeft;
     private static final int kOffsWorkareaRight;
     private static final int kOffsWorkareaTop;
     private int refNum;
     private Rectangle workareaRect;

          // Constructors 1
     MonitorMRJ(int[], int, int);

          // Methods 7
     public void dumpInfo(PrintStream, String);
     public Rectangle getBounds();
     public int getDepth();
     public Rectangle getWorkarea();
     public boolean isMainMonitor();
     public int setDepth(int, int);
     public int setResolution(Dimension, Dimension, int);
}

Implements the Monitor interface by reading information on a monitor from an array of int's. MonitorHelperMRJ calls native code to obtain information on the user's monitors, fill in the int array, and then creates an object of this class to represent the monitor.

Author:
Copyright (c) 1997-2002 Samizdat Productions. All Rights Reserved.




  Fields

· copyrightString

Summary  |  Top

   private static final String copyrightString


· boundsRect

Summary  |  Top
   private Rectangle boundsRect

Holds the global bounds of the monitor.


· workareaRect

Summary  |  Top
   private Rectangle workareaRect

Holds the global workarea of the monitor.


· depth

Summary  |  Top
   private int depth

Holds the depth of the monitor.


· refNum

Summary  |  Top
   private int refNum

Holds the refNum of the monitor.


· bIsMainMonitor

Summary  |  Top
   private boolean bIsMainMonitor

Is this the main monitor?


· kOffsBoundsTop

Summary  |  Top
   private static final int kOffsBoundsTop

Offset of the top of the global bounds of the monitor.


· kOffsBoundsLeft

Summary  |  Top
   private static final int kOffsBoundsLeft

Offset of the left of the global bounds of the monitor.


· kOffsBoundsBottom

Summary  |  Top
   private static final int kOffsBoundsBottom

Offset of the bottom of the global bounds of the monitor.


· kOffsBoundsRight

Summary  |  Top
   private static final int kOffsBoundsRight

Offset of the right of the global bounds of the monitor.


· kOffsWorkareaTop

Summary  |  Top
   private static final int kOffsWorkareaTop

Offset of the top of the global work area of the monitor.


· kOffsWorkareaLeft

Summary  |  Top
   private static final int kOffsWorkareaLeft

Offset of the left of the global work area of the monitor.


· kOffsWorkareaBottom

Summary  |  Top
   private static final int kOffsWorkareaBottom

Offset of the bottom of the global work area of the monitor.


· kOffsWorkareaRight

Summary  |  Top
   private static final int kOffsWorkareaRight

Offset of the right of the global work area of the monitor.


· kOffsDepth

Summary  |  Top
   private static final int kOffsDepth

Offset of the depth of the monitor.


· kOffsIsMainMonitor

Summary  |  Top
   private static final int kOffsIsMainMonitor

Offset of a boolean indicating whether this is the main monitor.


· kOffsRefNum

Summary  |  Top
   private static final int kOffsRefNum

Offset of the reference number of the monitor.


  Constructors

· MonitorMRJ

Summary  |  Top

   MonitorMRJ(int[] data, 
              int dataOffset, 
              int dataLen) 

Create from any array of ints containing information on the monitor. See the 'kOffsXXX' constants for the significance of each int in the array.



  Methods

· getBounds

Summary  |  Top
   public Rectangle getBounds() 

Returns a copy of boundsRect

Implements:
getBounds in interface Monitor


· getWorkarea

Summary  |  Top
   public Rectangle getWorkarea() 

Returns a copy of workareaRect

Implements:
getWorkarea in interface Monitor


· getDepth

Summary  |  Top
   public int getDepth() 

Returns depth.

Implements:
getDepth in interface Monitor


· isMainMonitor

Summary  |  Top
   public boolean isMainMonitor() 

Returns bIsMainMonitor

Implements:
isMainMonitor in interface Monitor


· setDepth

Summary  |  Top
   public int setDepth(int newDepth, 
                       int flags) 

Not yet unimplemented.

Throws: UnimplementedException
this method always throws an UnimplementedException
Implements:
setDepth in interface Monitor


· setResolution

Summary  |  Top
   public int setResolution(Dimension requestedRes, 
                            Dimension newRes, 
                            int flags) 

Not yet unimplemented.

Throws: UnimplementedException
this method always throws an UnimplementedException
Implements:
setResolution in interface Monitor


· dumpInfo

Summary  |  Top
   public void dumpInfo(PrintStream ps, 
                        String indent) 


All Packages  This Package  Class Hierarchy  Class Search  Index
Freshly brewed Java API Documentation automatically generated with polardoc Version 1.0.7