Package org.geotools.grid.oval
Class OvalBuilder
Object
PolygonBuilder
OvalBuilder
Used by
Ovals class to build grids.-
Field Summary
Fields inherited from class PolygonBuilder
gridBounds -
Method Summary
Modifier and TypeMethodDescriptioncreateNeighbor(PolygonElement el, Neighbor neighbor) Creates a newOvalpositioned at the given neighbor position relative to the reference element.booleanisValidDenseVertexSpacing(double v) booleanisValidNeighbor(Neighbor neighbor) Methods inherited from class PolygonBuilder
buildGrid
-
Method Details
-
isValidNeighbor
- Specified by:
isValidNeighborin classPolygonBuilder
-
createNeighbor
Creates a newOvalpositioned at the given neighbor position relative to the reference element.- Specified by:
createNeighborin classPolygonBuilder- Parameters:
el- the reference ovalneighbor- a neighbour position- Returns:
- a new
Ovalobject - Throws:
IllegalArgumentException- if either argument isnullor ifelis not an instance ofOval
-
isValidDenseVertexSpacing
public boolean isValidDenseVertexSpacing(double v) - Specified by:
isValidDenseVertexSpacingin classPolygonBuilder
-
getFirstElement
- Specified by:
getFirstElementin classPolygonBuilder
-
getNextXElement
- Specified by:
getNextXElementin classPolygonBuilder
-
getNextYElement
- Specified by:
getNextYElementin classPolygonBuilder
-