org.geotools.renderer.array
Class ArrayData

java.lang.Object
  extended byorg.geotools.renderer.array.ArrayData

Deprecated. Replaced by org.geotools.geometry.array.ArrayData as part of the port of J2D-renderer to the new GO-1 based API. Note that it is not possible to mix J2D-renderer classes with GO-1 rendering engine. Migration from J2D-renderer to the GO-1 API will requires the replacement of all deprecated classes together. Because the new GO-1 rendering engine is a work in progress, see GEOT-776 in order to determine if enough functionalites have been ported for yours need.

public class ArrayData
extends java.lang.Object

An object containing an uncompressed copy of points from a PointArray. This object is used as an argument for PointArray.toArray(ArrayData,float) method. Copying data is required because data will typically be transformed with MathTransform. This class (like the whole org.geotools.renderer.array package) is for internal use by Polyline only.

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

Field Summary
protected  float[] array
          Deprecated. The array of points as (x,y) coordinates.
protected  int length
          Deprecated. The number of valid elements if array.
 
Constructor Summary
protected ArrayData()
          Deprecated. Default constructor.
  ArrayData(int capacity)
          Deprecated. Construct a new array with the specified capacity.
 
Method Summary
 void append(java.awt.Shape shape)
          Deprecated. Add the specified shape to the end of this array.
 float[] array()
          Deprecated. Returns array.
 int[] curves()
          Deprecated. Returns codes for the curves.
 void extract(int offset, java.awt.geom.GeneralPath path)
          Deprecated. Copy the points from offset to the specified destination path.
protected  int getCurveType(int index)
          Deprecated. Returns the curve type at the specified index.
 int length()
          Deprecated. Returns length.
 void setData(float[] array, int length, int[] curves)
          Deprecated. Set the data in this array.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

array

protected float[] array
Deprecated. 
The array of points as (x,y) coordinates. Valides index range from 0 inclusive to length exclusive.


length

protected int length
Deprecated. 
The number of valid elements if array. The number of points is length/2.

Constructor Detail

ArrayData

protected ArrayData()
Deprecated. 
Default constructor. Subclass must initialize array.


ArrayData

public ArrayData(int capacity)
Deprecated. 
Construct a new array with the specified capacity. The number of valid elements (length) still 0.

Method Detail

setData

public final void setData(float[] array,
                          int length,
                          int[] curves)
Deprecated. 
Set the data in this array.

Parameters:
array - The array. Its length must be even.
length - The number of valid elements in array. This value must be even.
curves - The data returned by curves().

array

public final float[] array()
Deprecated. 
Returns array.


length

public final int length()
Deprecated. 
Returns length.


curves

public final int[] curves()
Deprecated. 
Returns codes for the curves. This is one of the arguments to give back to setData(float[], int, int[]) later.


extract

public final void extract(int offset,
                          java.awt.geom.GeneralPath path)
Deprecated. 
Copy the points from offset to the specified destination path. The points in array[offset..length] will be removed from this array.

Parameters:
offset - The index of the first point to move into path.
path - The destination path where to store the points.

append

public final void append(java.awt.Shape shape)
Deprecated. 
Add the specified shape to the end of this array.

Parameters:
shape - The shape to add.

getCurveType

protected final int getCurveType(int index)
Deprecated. 
Returns the curve type at the specified index. This method must be invoked with index in increasing order only.



Copyright © GeoTools. All Rights Reserved.