Package org.geotools.grid.oval
Class OvalBuilder
- Object
-
- PolygonBuilder
-
- OvalBuilder
-
public class OvalBuilder extends PolygonBuilder
Used byOvals
class to build grids.
-
-
Field Summary
-
Fields inherited from class PolygonBuilder
gridBounds
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Oval
createNeighbor(PolygonElement el, Neighbor neighbor)
Creates a newOval
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 Oval createNeighbor(PolygonElement el, Neighbor neighbor)
Creates a newOval
positioned at the given neighbor position relative to the reference element.- Specified by:
createNeighbor
in classPolygonBuilder
- Parameters:
el
- the reference ovalneighbor
- a neighbour position- Returns:
- a new
Oval
object - Throws:
IllegalArgumentException
- if either argument isnull
or ifel
is not an instance ofOval
-
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
-
-