< prev index next >

src/java.desktop/unix/classes/sun/java2d/xr/DirtyRegion.java

Print this page
rev 48925 : Xrender: Rename MaskTil(eManager) to RectTile(Manager) to avoid confusion later


  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.java2d.xr;
  27 
  28 import static java.lang.Math.min;
  29 import static java.lang.Math.max;
  30 import static sun.java2d.xr.MaskTileManager.MASK_SIZE;
  31 
  32 /**
  33  * This class implements region tracking, used by the tiled-mask code.
  34  *
  35  * @author Clemens Eisserer
  36  */
  37 
  38 public class DirtyRegion implements Cloneable {
  39     int x, y, x2, y2;
  40 
  41     public DirtyRegion() {
  42         clear();
  43     }
  44 
  45     public void clear() {
  46         x = Integer.MAX_VALUE;
  47         y = Integer.MAX_VALUE;
  48         x2 = Integer.MIN_VALUE;
  49         y2 = Integer.MIN_VALUE;
  50     }




  10  *
  11  * This code is distributed in the hope that it will be useful, but WITHOUT
  12  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
  13  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
  14  * version 2 for more details (a copy is included in the LICENSE file that
  15  * accompanied this code).
  16  *
  17  * You should have received a copy of the GNU General Public License version
  18  * 2 along with this work; if not, write to the Free Software Foundation,
  19  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
  20  *
  21  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
  22  * or visit www.oracle.com if you need additional information or have any
  23  * questions.
  24  */
  25 
  26 package sun.java2d.xr;
  27 
  28 import static java.lang.Math.min;
  29 import static java.lang.Math.max;
  30 import static sun.java2d.xr.RectTileManager.MASK_SIZE;
  31 
  32 /**
  33  * This class implements region tracking, used by the tiled-mask code.
  34  *
  35  * @author Clemens Eisserer
  36  */
  37 
  38 public class DirtyRegion implements Cloneable {
  39     int x, y, x2, y2;
  40 
  41     public DirtyRegion() {
  42         clear();
  43     }
  44 
  45     public void clear() {
  46         x = Integer.MAX_VALUE;
  47         y = Integer.MAX_VALUE;
  48         x2 = Integer.MIN_VALUE;
  49         y2 = Integer.MIN_VALUE;
  50     }


< prev index next >