/***
 * Image/J Plugins
 * Copyright (C) 2002-2004 Jarek Sacha
 *
 * This library is free software; you can redistribute it and/or
 * modify it under the terms of the GNU Lesser General Public
 * License as published by the Free Software Foundation; either
 * version 2.1 of the License, or (at your option) any later version.
 *
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
 * Lesser General Public License for more details.
 *
 * You should have received a copy of the GNU Lesser General Public
 * License along with this library; if not, write to the Free Software
 * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
 *
 * Latest release available at http://sourceforge.net/projects/ij-plugins/
 */
package net.sf.ij_plugins.operators;

/**
 * @author Jarek Sacha
 * @version $ Revision: $
 */

public class Neighborhood3x3 {
    private final float[] neighbors = new float[9];
    public float center;
    public float neighbor1
    ,
    neighbor2
    ,
    neighbor3
    ,
    neighbor4
    ,
    neighbor5
    ,
    neighbor6
    ,
    neighbor7
    ,
    neighbor8;
    public int x
    ,
    y
    ,
    offset;

    public float[] getNeighbors() {
        neighbors[0] = center;
        neighbors[1] = neighbor1;
        neighbors[2] = neighbor2;
        neighbors[3] = neighbor3;
        neighbors[4] = neighbor4;
        neighbors[5] = neighbor5;
        neighbors[6] = neighbor6;
        neighbors[7] = neighbor7;
        neighbors[8] = neighbor8;

        return neighbors;
    }
}

@@ -42,17 +42,17 @@
 2002-200
-4
+5
  Jarek S
@@ -973,16 +973,91 @@
  $%0A */%0A%0A
+/**%0A * Pixel numbers:%0A * %3Cpre%3E%0A *  4 3 2%0A *  5 0 1%0A *  6 7 8%0A * %3C/pre%3E%0A */%0A
 public c
@@ -1139,28 +1139,234 @@
     
-public float center;
+/**%0A     * Value of pixel located at the center of neighborhood, that is at  (%3Ccode%3Ex%3C/code%3E,%3Ccode%3Ey%3C/code%3E).%0A     */%0A    public float center;%0A    /**%0A     * Value of pixel located at (%3Ccode%3Ex+1%3C/code%3E,%3Ccode%3Ey%3C/code%3E).%0A     */
 %0A   
@@ -1388,26 +1388,120 @@
 eighbor1
+;
 %0A    
-,%0A   
+/**%0A     * Value of pixel located at (%3Ccode%3Ex+1%3C/code%3E,%3Ccode%3Ey-1%3C/code%3E).%0A     */%0A    public float
  neighbo
@@ -1506,58 +1506,338 @@
 bor2
+;
 %0A    
-,%0A    neighbor3%0A    ,%0A    neighbor4%0A    ,%0A   
+/**%0A     * Value of pixel located at (%3Ccode%3Ex%3C/code%3E,%3Ccode%3Ey-1%3C/code%3E-1).%0A     */%0A    public float neighbor3;%0A    /**%0A     * Value of pixel located at (%3Ccode%3Ex%3C/code%3E-1,%3Ccode%3Ey%3C/code%3E-1).%0A     */%0A    public float neighbor4;%0A    /**%0A     * Value of pixel located at (%3Ccode%3Ex%3C/code%3E-1,%3Ccode%3Ey%3C/code%3E).%0A     */%0A    public float
  nei
@@ -1842,26 +1842,120 @@
 eighbor5
+;
 %0A    
-,%0A   
+/**%0A     * Value of pixel located at (%3Ccode%3Ex%3C/code%3E-1,%3Ccode%3Ey%3C/code%3E+1).%0A     */%0A    public float
  neighbo
@@ -1956,26 +1956,118 @@
 eighbor6
+;
 %0A    
-,%0A   
+/**%0A     * Value of pixel located at (%3Ccode%3Ex%3C/code%3E,%3Ccode%3Ey%3C/code%3E+1).%0A     */%0A    public float
  neighbo
@@ -2068,26 +2068,120 @@
 eighbor7
+;
 %0A    
-,%0A   
+/**%0A     * Value of pixel located at (%3Ccode%3Ex%3C/code%3E+1,%3Ccode%3Ey%3C/code%3E+1).%0A     */%0A    public float
  neighbo
@@ -2204,30 +2204,42 @@
 nt x
+;
 %0A    
-,%0A   
+public int
  y
+;
 %0A    
-,%0A   
+public int
  off

Add javadoc comments.