001/* 002 * To change this template, choose Tools | Templates 003 * and open the template in the editor. 004 */ 005package sec.sun.awt.geom; 006 007/** 008 * 009 * @author Michael Deutch 010 */ 011public class EOWindOp { 012 013 private boolean inside; 014 015 public void newRow() { 016 inside = false; 017 } 018 019 public int classify(Edge e) { 020 // Note: the right curves should be an empty set with this op... 021 // assert(e.getCurveTag() == CTAG_LEFT); 022 boolean newInside = !inside; 023 inside = newInside; 024 return (newInside ? AreaOp2.ETAG_ENTER : AreaOp2.ETAG_EXIT); 025 } 026 027 public int getState() { 028 return (inside ? AreaOp2.RSTAG_INSIDE : AreaOp2.RSTAG_OUTSIDE); 029 } 030 031}