|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.DynamicArray
com.partnersoft.data.AbstractDynamicArray<XyPoint>
com.partnersoft.geometry.xy.DynamicXyPointArray
public class DynamicXyPointArray
A managed, dynamically allocated array of XyPoints.
Copyright 2001-2007 Partner Software, Inc.
| Field Summary |
|---|
| Fields inherited from class com.partnersoft.data.AbstractDynamicArray |
|---|
array |
| Fields inherited from class com.partnersoft.data.DynamicArray |
|---|
arrayObject, capacity, end, fastGrowthFactor, fastGrowthLimit, slowGrowthAmount, start |
| Constructor Summary | |
|---|---|
DynamicXyPointArray()
Creates an empty XyPoint array. |
|
DynamicXyPointArray(int size)
Creates a XyPoint array of the given size. |
|
DynamicXyPointArray(XyPoint... contents)
Creates a XyPoint array with the given contents. |
|
| Method Summary | |
|---|---|
void |
add(double x,
double y)
Convenience method to generate and append an XyPoint from coordinates. |
void |
append(double... coords)
Convenience method to generate and append XyPoints from coordinates. |
protected XyPoint[] |
newArrayImp(int size)
Subclasses must implement this to return an array of the correct type and size. |
XyPolyline |
toPolyline()
Returns the points in this array as an XyPolyline. |
| Methods inherited from class com.partnersoft.data.AbstractDynamicArray |
|---|
add, addMultiple, append, append, contentsToString, fitToSize, iterator, newArray, toFixedArray, toList |
| Methods inherited from class com.partnersoft.data.DynamicArray |
|---|
append, clear, copy, copy, copyExactly, copyFrom, copyTo, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, size, subsection, tidy, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DynamicXyPointArray()
public DynamicXyPointArray(int size)
public DynamicXyPointArray(XyPoint... contents)
| Method Detail |
|---|
public void add(double x,
double y)
public void append(double... coords)
public XyPolyline toPolyline()
protected XyPoint[] newArrayImp(int size)
AbstractDynamicArray
newArrayImp in class AbstractDynamicArray<XyPoint>
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||