//-----------------------------------------------------------------------//
//                                                                       //
//               D e f a u l t S e c t i o n S u b j e c t               //
//                                                                       //
//  Copyright (C) Herve Bitteur 2000-2006. All rights reserved.          //
//  This software is released under the terms of the GNU General Public  //
//  License. Please contact the author at herve.bitteur@laposte.net      //
//  to report bugs & suggestions.                                        //
//-----------------------------------------------------------------------//

package omr.ui;

import omr.util.DefaultSubject;
import omr.util.Subject;

import java.awt.Point;
import java.awt.Rectangle;

/**
 * Class <code>DefaultPixelSubject</code> is an implementation of the
 * specific {@link Subject} meant for {@link PixelObserver} observers
 *
 * @author Herv&eacute; Bitteur
 * @version $Id$
 */
public class DefaultPixelSubject
    extends DefaultSubject<PixelSubject, PixelObserver, Point>
{
    //----------------//
    // notifyObservers //
    //----------------//
    public void notifyObservers (Point ul,
                                 int level)
    {
        for (PixelObserver observer : observers) {
            observer.update(ul, level);
        }
    }

    //----------------//
    // notifyObservers //
    //----------------//
    public void notifyObservers (Rectangle rect)
    {
        for (PixelObserver observer : observers) {
            observer.update(rect);
        }
    }
}

@@ -66,21 +66,27 @@
 --------
+---
 //%0A//
+   
         
@@ -168,16 +168,19 @@
         
+   
 D e f a 
@@ -189,21 +189,17 @@
 l t 
-S e c t i o n
+P i x e l
  S u
@@ -215,37 +215,44 @@
 t               
+ 
+   
 //%0A//
+   
                 
@@ -353,9 +353,9 @@
 -200
-6
+5
 . Al
@@ -372,16 +372,19 @@
 eserved.
+   
         
@@ -461,16 +461,19 @@
 Public  
+   
 //%0A//  L
@@ -536,24 +536,27 @@
 te.net      
+   
 //%0A//  to re
@@ -615,24 +615,27 @@
             
+ 
+  
 //%0A//-------
@@ -698,16 +698,19 @@
 --------
+---
 //%0A%0Apack
@@ -1143,32 +1143,33 @@
 ----------------
+-
 //%0A    // notify
@@ -1195,32 +1195,33 @@
 ----------------
+-
 //%0A    public vo
@@ -1422,32 +1422,33 @@
 ----------------
+-
 //%0A    // notify
@@ -1474,32 +1474,33 @@
 ----------------
+-
 //%0A    public vo

Comment updated, header fixed