/*
* Geotoolkit - An Open Source Java GIS Toolkit
* http://www.geotoolkit.org
*
* (C) 2009, Geomatys
*
* 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;
* version 2.1 of the License.
*
* 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.
*/
package org.geotoolkit.display2d.primitive.iso;
import org.opengis.geometry.Geometry;
/**
* An iterator for empty geometries
*
* @author Johann Sorel (Geomatys)
* @module
*/
public class ISOEmptyIterator extends ISOGeometryIterator<Geometry> {
public ISOEmptyIterator() {
super(null,null);
}
/**
* {@inheritDoc }
*/
@Override
public int getWindingRule() {
return WIND_NON_ZERO;
}
/**
* {@inheritDoc }
*/
@Override
public boolean isDone() {
return true;
}
/**
* {@inheritDoc }
*/
@Override
public void next() {
throw new IllegalStateException();
}
/**
* {@inheritDoc }
*/
@Override
public int currentSegment(final double[] coords) {
return 0;
}
}