com.vividsolutions.jtsexample.geom
Class ExtendedCoordinateSequenceFactory

java.lang.Object
  extended by com.vividsolutions.jtsexample.geom.ExtendedCoordinateSequenceFactory
All Implemented Interfaces:
CoordinateSequenceFactory

public class ExtendedCoordinateSequenceFactory
extends Object
implements CoordinateSequenceFactory

Creates ExtendedCoordinateSequenceFactory internally represented as an array of ExtendedCoordinates.

Version:
1.7

Method Summary
 CoordinateSequence create(Coordinate[] coordinates)
          Returns an ExtendedCoordinateSequence based on the given array -- the array is used directly if it is an instance of ExtendedCoordinate[]; otherwise it is copied.
 CoordinateSequence create(CoordinateSequence coordSeq)
          Creates a CoordinateSequence which is a copy of the given CoordinateSequence.
 CoordinateSequence create(int size, int dimension)
          Creates a CoordinateSequence of the specified size and dimension.
static ExtendedCoordinateSequenceFactory instance()
          Returns the singleton instance of ExtendedCoordinateSequenceFactory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Method Detail

instance

public static ExtendedCoordinateSequenceFactory instance()
Returns the singleton instance of ExtendedCoordinateSequenceFactory


create

public CoordinateSequence create(Coordinate[] coordinates)
Returns an ExtendedCoordinateSequence based on the given array -- the array is used directly if it is an instance of ExtendedCoordinate[]; otherwise it is copied.

Specified by:
create in interface CoordinateSequenceFactory
Parameters:
coordinates - the coordinates

create

public CoordinateSequence create(CoordinateSequence coordSeq)
Description copied from interface: CoordinateSequenceFactory
Creates a CoordinateSequence which is a copy of the given CoordinateSequence. This method must handle null arguments by creating an empty sequence.

Specified by:
create in interface CoordinateSequenceFactory
Parameters:
coordSeq - the coordinate sequence to copy

create

public CoordinateSequence create(int size,
                                 int dimension)
Description copied from interface: CoordinateSequenceFactory
Creates a CoordinateSequence of the specified size and dimension. For this to be useful, the CoordinateSequence implementation must be mutable.

Specified by:
create in interface CoordinateSequenceFactory
Parameters:
size - the number of coordinates in the sequence
dimension - the dimension of the coordinates in the sequence (if user-specifiable, otherwise ignored)
See Also:
CoordinateSequenceFactory.create(int, int)


Copyright © 2012. All Rights Reserved.