org.geotools.geometry.jts.coordinatesequence
Class PackedCSBuilder.Double

Object
  extended by PackedCSBuilder
      extended by PackedCSBuilder.Double
All Implemented Interfaces:
CSBuilder
Enclosing class:
PackedCSBuilder

public static class PackedCSBuilder.Double
extends PackedCSBuilder


Nested Class Summary
 
Nested classes/interfaces inherited from class PackedCSBuilder
PackedCSBuilder.Double, PackedCSBuilder.Float
 
Constructor Summary
PackedCSBuilder.Double()
           
 
Method Summary
 CoordinateSequence end()
          Stops the coordinate sequence building and returns the result
 double getOrdinate(int ordinateIndex, int coordinateIndex)
          Gets an ordinate in the specified coordinate
 void setOrdinate(CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex)
          Utility method that allows to set an ordinate in an already built coordinate sequence Needed because the CoordinateSequence interface does not expose it
 void setOrdinate(double value, int ordinateIndex, int coordinateIndex)
          Sets and ordinate in the specified coordinate
 void start(int size, int dimensions)
          Starts the building of a new coordinate sequence
 
Methods inherited from class PackedCSBuilder
getDimension, getSize
 
Methods inherited from class Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PackedCSBuilder.Double

public PackedCSBuilder.Double()
Method Detail

start

public void start(int size,
                  int dimensions)
Description copied from interface: CSBuilder
Starts the building of a new coordinate sequence

Parameters:
size - - the number of coordinates in the coordinate sequence
dimensions - - the dimension of the coordinates in the coordinate sequence, may be ignored if the coordinate sequence does not support variabile dimensions
See Also:
CSBuilder.start(int, int)

end

public CoordinateSequence end()
Description copied from interface: CSBuilder
Stops the coordinate sequence building and returns the result

See Also:
CSBuilder.end()

setOrdinate

public void setOrdinate(double value,
                        int ordinateIndex,
                        int coordinateIndex)
Description copied from interface: CSBuilder
Sets and ordinate in the specified coordinate

See Also:
CSBuilder.setOrdinate(double, int, int)

getOrdinate

public double getOrdinate(int ordinateIndex,
                          int coordinateIndex)
Description copied from interface: CSBuilder
Gets an ordinate in the specified coordinate

See Also:
CSBuilder.getOrdinate(int, int)

setOrdinate

public void setOrdinate(CoordinateSequence sequence,
                        double value,
                        int ordinateIndex,
                        int coordinateIndex)
Description copied from interface: CSBuilder
Utility method that allows to set an ordinate in an already built coordinate sequence Needed because the CoordinateSequence interface does not expose it

See Also:
CSBuilder.setOrdinate(com.vividsolutions.jts.geom.CoordinateSequence, double, int, int)


Copyright © 1996-2010 Geotools. All Rights Reserved.