|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.geotools.geometry.coordinatesequence.DefaultCSBuilder
CSBuilder that generates DefaultCoordinateSequence objects, that is, coordinate sequences backed by Coordinate[]
Constructor Summary | |
DefaultCSBuilder()
|
Method Summary | |
com.vividsolutions.jts.geom.CoordinateSequence |
end()
Stops the coordinate sequence building and returns the result |
int |
getDimension()
Returns the dimension of the coordinate sequence we are building, -1 if there is none |
double |
getOrdinate(int ordinateIndex,
int coordinateIndex)
Gets an ordinate in the specified coordinate |
int |
getSize()
Returns the size of the coordinate sequence we are building, -1 if there is none |
void |
setOrdinate(com.vividsolutions.jts.geom.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 java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public DefaultCSBuilder()
Method Detail |
public void start(int size, int dimensions)
CSBuilder
start
in interface CSBuilder
size
- - the number of coordinates in the coordinate sequencedimensions
- - the dimension of the coordinates in the coordinate sequence,
may be ignored if the coordinate sequence does not support variabile dimensionsCSBuilder.start(int, int)
public com.vividsolutions.jts.geom.CoordinateSequence end()
CSBuilder
end
in interface CSBuilder
org.geotools.geometry.coordinatesequence.CSBuilder#getCoordinateSequence()
public void setOrdinate(double value, int ordinateIndex, int coordinateIndex)
CSBuilder
setOrdinate
in interface CSBuilder
value
- ordinateIndex
- coordinateIndex
- CSBuilder.setOrdinate(double, int, int)
public double getOrdinate(int ordinateIndex, int coordinateIndex)
CSBuilder
getOrdinate
in interface CSBuilder
ordinateIndex
- coordinateIndex
- CSBuilder.getOrdinate(int, int)
public int getSize()
CSBuilder
getSize
in interface CSBuilder
CSBuilder.getSize()
public int getDimension()
CSBuilder
getDimension
in interface CSBuilder
CSBuilder.getDimension()
public void setOrdinate(com.vividsolutions.jts.geom.CoordinateSequence sequence, double value, int ordinateIndex, int coordinateIndex)
CSBuilder
setOrdinate
in interface CSBuilder
sequence
- value
- ordinateIndex
- coordinateIndex
- CSBuilder.setOrdinate(com.vividsolutions.jts.geom.CoordinateSequence, double, int, int)
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |