org.geotools.grid.oblong
Class OblongBuilder

Object
  extended by PolygonBuilder
      extended by OblongBuilder

public class OblongBuilder
extends PolygonBuilder

Used by Oblongs class to build grids.

Since:
2.7
Author:
mbedward

Field Summary
 
Fields inherited from class PolygonBuilder
gridBounds
 
Method Summary
 Oblong createNeighbor(PolygonElement el, Neighbor neighbor)
          Creates a new Oblong 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
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

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 oblong
neighbor - 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.