Package org.geotools.grid.oval
Class OvalBuilder
- Object
-
- PolygonBuilder
-
- OvalBuilder
-
public class OvalBuilder extends PolygonBuilder
Used byOvalsclass to build grids.
-
-
Field Summary
-
Fields inherited from class PolygonBuilder
gridBounds
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description OvalcreateNeighbor(PolygonElement el, Neighbor neighbor)Creates a newOvalpositioned at the given neighbor position relative to the reference element.PolygonElementgetFirstElement()PolygonElementgetNextXElement(PolygonElement el)PolygonElementgetNextYElement(PolygonElement el)booleanisValidDenseVertexSpacing(double v)booleanisValidNeighbor(Neighbor neighbor)-
Methods inherited from class PolygonBuilder
buildGrid
-
-
-
-
Method Detail
-
isValidNeighbor
public boolean isValidNeighbor(Neighbor neighbor)
- Specified by:
isValidNeighborin classPolygonBuilder
-
createNeighbor
public Oval createNeighbor(PolygonElement el, Neighbor neighbor)
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
public PolygonElement getFirstElement()
- Specified by:
getFirstElementin classPolygonBuilder
-
getNextXElement
public PolygonElement getNextXElement(PolygonElement el)
- Specified by:
getNextXElementin classPolygonBuilder
-
getNextYElement
public PolygonElement getNextYElement(PolygonElement el)
- Specified by:
getNextYElementin classPolygonBuilder
-
-