Exemple #1
0
 /**
  * Checks validation of MultiRectArea object
  */
 static MultiRectArea check(MultiRectArea mra, String msg)
 {
     if (CHECK && mra != null)
     {
         if (MultiRectArea.checkValidation(mra.getRectangles(), mra.sorted) != -1)
         {
             // awt.4C=Invalid MultiRectArea in method {0}
             new java.lang.RuntimeException("Invalid MultiRectArea in method " + msg); //$NON-NLS-1$
         }
     }
     return(mra);
 }
Exemple #2
0
 /**
  * Print MultiRectArea object to output stream
  */
 public static void print(MultiRectArea mra, String msg)
 {
     if (mra == null)
     {
         java.lang.SystemJ.outJ.println(msg + "=null"); //$NON-NLS-1$
     }
     else
     {
         java.awt.Rectangle[] rects = mra.getRectangles();
         java.lang.SystemJ.outJ.println(msg + "(" + rects.Length + ")"); //$NON-NLS-1$ //$NON-NLS-2$
         foreach (java.awt.Rectangle element in rects)
         {
             java.lang.SystemJ.outJ.println(
                 element.x + "," +                       //$NON-NLS-1$
                 element.y + "," +                       //$NON-NLS-1$
                 (element.x + element.width - 1) + "," + //$NON-NLS-1$
                 (element.y + element.height - 1));
         }
     }
 }
Exemple #3
0
 /**
  * Checks validation of MultiRectArea object
  */
 static MultiRectArea check(MultiRectArea mra, String msg)
 {
     if (CHECK && mra != null)
     {
         if (MultiRectArea.checkValidation(mra.getRectangles(), mra.sorted) != -1)
         {
             // awt.4C=Invalid MultiRectArea in method {0}
             new java.lang.RuntimeException("Invalid MultiRectArea in method " + msg); //$NON-NLS-1$
         }
     }
     return mra;
 }
Exemple #4
0
 /**
  * Print MultiRectArea object to output stream
  */
 public static void print(MultiRectArea mra, String msg)
 {
     if (mra == null)
     {
         java.lang.SystemJ.outJ.println(msg + "=null"); //$NON-NLS-1$
     }
     else
     {
         java.awt.Rectangle[] rects = mra.getRectangles();
         java.lang.SystemJ.outJ.println(msg + "(" + rects.Length + ")"); //$NON-NLS-1$ //$NON-NLS-2$
         foreach (java.awt.Rectangle element in rects)
         {
             java.lang.SystemJ.outJ.println(
                     element.x + "," + //$NON-NLS-1$
                     element.y + "," + //$NON-NLS-1$
                     (element.x + element.width - 1) + "," + //$NON-NLS-1$
                     (element.y + element.height - 1));
         }
     }
 }