org.geotools.renderer.lite
Class LiteCoordinateSequence

java.lang.Object
  extended bycom.vividsolutions.jts.geom.impl.PackedCoordinateSequence
      extended byorg.geotools.renderer.lite.LiteCoordinateSequence
All Implemented Interfaces:
java.lang.Cloneable, com.vividsolutions.jts.geom.CoordinateSequence

public class LiteCoordinateSequence
extends com.vividsolutions.jts.geom.impl.PackedCoordinateSequence

Since:
2.1.x
Author:
jeichar

Nested Class Summary
 
Nested classes inherited from class com.vividsolutions.jts.geom.impl.PackedCoordinateSequence
com.vividsolutions.jts.geom.impl.PackedCoordinateSequence.Double, com.vividsolutions.jts.geom.impl.PackedCoordinateSequence.Float
 
Field Summary
 
Fields inherited from class com.vividsolutions.jts.geom.impl.PackedCoordinateSequence
coordRef, dimension
 
Fields inherited from interface com.vividsolutions.jts.geom.CoordinateSequence
M, X, Y, Z
 
Constructor Summary
LiteCoordinateSequence(com.vividsolutions.jts.geom.Coordinate[] coordinates)
          Builds a new packed coordinate sequence out of a coordinate array
LiteCoordinateSequence(double[] coords)
          Builds a new packed coordinate sequence
LiteCoordinateSequence(float[] coordinates)
          Builds a new packed coordinate sequence out of a float coordinate array
LiteCoordinateSequence(int size, int dimension)
          Builds a new empty packed coordinate sequence of a given size and dimension
 
Method Summary
 java.lang.Object clone()
           
 com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)
           
 double[] getArray()
           
 com.vividsolutions.jts.geom.Coordinate getCoordinateInternal(int i)
           
 double getOrdinate(int index, int ordinate)
           
 void setArray(double[] coords2)
           
 void setOrdinate(int index, int ordinate, double value)
           
 int size()
           
 
Methods inherited from class com.vividsolutions.jts.geom.impl.PackedCoordinateSequence
getCoordinate, getCoordinate, getCoordinateCopy, getDimension, getX, getY, setX, setY, toCoordinateArray
 
Methods inherited from class java.lang.Object
equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

LiteCoordinateSequence

public LiteCoordinateSequence(double[] coords)
Builds a new packed coordinate sequence

Parameters:
coords -

LiteCoordinateSequence

public LiteCoordinateSequence(float[] coordinates)
Builds a new packed coordinate sequence out of a float coordinate array

Parameters:
coordinates -

LiteCoordinateSequence

public LiteCoordinateSequence(com.vividsolutions.jts.geom.Coordinate[] coordinates)
Builds a new packed coordinate sequence out of a coordinate array

Parameters:
coordinates -

LiteCoordinateSequence

public LiteCoordinateSequence(int size,
                              int dimension)
Builds a new empty packed coordinate sequence of a given size and dimension

Parameters:
dimension -
Method Detail

getCoordinateInternal

public com.vividsolutions.jts.geom.Coordinate getCoordinateInternal(int i)
See Also:
CoordinateSequence.getCoordinate(int)

size

public int size()
See Also:
CoordinateSequence.size()

clone

public java.lang.Object clone()
See Also:
Object.clone()

getOrdinate

public double getOrdinate(int index,
                          int ordinate)
See Also:
Beware, for performace reasons the ordinate index is not checked, if it's over dimensions you may not get an exception but a meaningless value.

setOrdinate

public void setOrdinate(int index,
                        int ordinate,
                        double value)
See Also:
com.vividsolutions.jts.geom.PackedCoordinateSequence#setOrdinate(int, int, double)

expandEnvelope

public com.vividsolutions.jts.geom.Envelope expandEnvelope(com.vividsolutions.jts.geom.Envelope env)

getArray

public double[] getArray()
Returns:

setArray

public void setArray(double[] coords2)
Parameters:
coords2 -


Copyright © GeoTools. All Rights Reserved.