org.geotools.renderer.array
Interface RandomAccess

All Known Implementing Classes:
DefaultArray, GenericArray, JTSArray

Deprecated. No replacement. See GEOT-776.

public interface RandomAccess

Marker interface used by PointArray implementations to indicate that they support fast (generally constant time) random access. Most default (flat) arrays implement this interface, while compressed arrays generally do not implement it.

Version:
$Id: RandomAccess.java 17672 2006-01-19 00:25:55Z desruisseaux $
Author:
Martin Desruisseaux

Method Summary
 int count()
          Deprecated. Returns the number of points in this array.
 java.awt.geom.Point2D getValue(int index)
          Deprecated. Returns the point at the specified index.
 

Method Detail

count

public int count()
Deprecated. 
Returns the number of points in this array.


getValue

public java.awt.geom.Point2D getValue(int index)
                               throws java.lang.IndexOutOfBoundsException
Deprecated. 
Returns the point at the specified index.

Parameters:
index - The index from 0 inclusive to count() exclusive.
Returns:
The point at the given index.
Throws:
java.lang.IndexOutOfBoundsException - if index is out of bounds.


Copyright © GeoTools. All Rights Reserved.