Package org.geotools.grid.oblong
Class OblongBuilder
- Object
-
- PolygonBuilder
-
- OblongBuilder
-
public class OblongBuilder extends PolygonBuilder
Used byOblongs
class to build grids.- Since:
- 2.7
- Author:
- mbedward
-
-
Field Summary
-
Fields inherited from class PolygonBuilder
gridBounds
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Oblong
createNeighbor(PolygonElement el, Neighbor neighbor)
Creates a newOblong
positioned at the given neighbor position relative to the reference element.PolygonElement
getFirstElement()
PolygonElement
getNextXElement(PolygonElement el)
PolygonElement
getNextYElement(PolygonElement el)
boolean
isValidDenseVertexSpacing(double v)
boolean
isValidNeighbor(Neighbor neighbor)
-
Methods inherited from class PolygonBuilder
buildGrid
-
-
-
-
Method Detail
-
isValidNeighbor
public boolean isValidNeighbor(Neighbor neighbor)
- Specified by:
isValidNeighbor
in classPolygonBuilder
-
createNeighbor
public Oblong createNeighbor(PolygonElement el, Neighbor neighbor)
Creates a newOblong
positioned at the given neighbor position relative to the reference element.- Specified by:
createNeighbor
in classPolygonBuilder
- Parameters:
el
- the reference oblongneighbor
- a neighbour position- Returns:
- a new
Oblong
object - Throws:
IllegalArgumentException
- if either argument isnull
or ifel
is not an instance ofOblong
-
isValidDenseVertexSpacing
public boolean isValidDenseVertexSpacing(double v)
- Specified by:
isValidDenseVertexSpacing
in classPolygonBuilder
-
getFirstElement
public PolygonElement getFirstElement()
- Specified by:
getFirstElement
in classPolygonBuilder
-
getNextXElement
public PolygonElement getNextXElement(PolygonElement el)
- Specified by:
getNextXElement
in classPolygonBuilder
-
getNextYElement
public PolygonElement getNextYElement(PolygonElement el)
- Specified by:
getNextYElement
in classPolygonBuilder
-
-