org.geotools.grid.oblong
Class OblongBuilder
Object
PolygonBuilder
OblongBuilder
public class OblongBuilder
- extends PolygonBuilder
Used by Oblongs
class to build grids.
- Since:
- 2.7
- Author:
- mbedward
Methods inherited from class Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
isValidNeighbor
public boolean isValidNeighbor(Neighbor neighbor)
- Specified by:
isValidNeighbor
in class PolygonBuilder
createNeighbor
public Oblong createNeighbor(PolygonElement el,
Neighbor neighbor)
- Creates a new
Oblong
positioned at the given neighbor position
relative to the reference element.
- Specified by:
createNeighbor
in class PolygonBuilder
- Parameters:
el
- the reference oblongneighbor
- a neighbour position
- Returns:
- a new
Oblong
object
- Throws:
IllegalArgumentException
- if either argument is null
or
if el
is not an instance of Oblong
isValidDenseVertexSpacing
public boolean isValidDenseVertexSpacing(double v)
- Specified by:
isValidDenseVertexSpacing
in class PolygonBuilder
getFirstElement
public PolygonElement getFirstElement()
- Specified by:
getFirstElement
in class PolygonBuilder
getNextXElement
public PolygonElement getNextXElement(PolygonElement el)
- Specified by:
getNextXElement
in class PolygonBuilder
getNextYElement
public PolygonElement getNextYElement(PolygonElement el)
- Specified by:
getNextYElement
in class PolygonBuilder
Copyright © 1996-2014 Geotools. All Rights Reserved.