|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||
java.lang.Objectorg.geotools.renderer.array.ArrayData
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.
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.
| 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 |
protected float[] array
length exclusive.
protected int length
array.
The number of points is length/2.
| Constructor Detail |
protected ArrayData()
array.
public ArrayData(int capacity)
length) still 0.
| Method Detail |
public final void setData(float[] array,
int length,
int[] curves)
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().public final float[] array()
array.
public final int length()
length.
public final int[] curves()
setData(float[], int, int[]) later.
public final void extract(int offset,
java.awt.geom.GeneralPath path)
offset to the specified destination path.
The points in array[offset..length] will be removed from this
array.
offset - The index of the first point to move into path.path - The destination path where to store the points.public final void append(java.awt.Shape shape)
shape - The shape to add.protected final int getCurveType(int index)
|
|||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||||