|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.data.GrowableArray
com.partnersoft.v3x.geometry.single.PolylineArray
public class PolylineArray
A list of polylines. Has some handy construction methods to help with clipping etc.
| Field Summary | |
|---|---|
FloatBuffer[] |
array
|
| Fields inherited from class com.partnersoft.v3x.data.GrowableArray |
|---|
arrayObject, capacity, end, growthCap, growthMin, start |
| Constructor Summary | |
|---|---|
PolylineArray()
Creates an empty polyline array. |
|
PolylineArray(int size)
Creates a polyline array of the given size. |
|
| Method Summary | |
|---|---|
void |
addAll(PolylineArray nother)
|
void |
addPoint(float x,
float y)
Adds a new point, no questions asked. |
void |
addSegment(float x1,
float y1,
float x2,
float y2)
|
void |
addSegment(Line line)
Adds a new segment. |
void |
newArray(int size)
Allocates a new, empty array of the given size and assign it to the arrayObject property. |
void |
startPolyline()
Starts a new, empty polyline. |
| Methods inherited from class com.partnersoft.v3x.data.GrowableArray |
|---|
append, clear, clone, getSize, makeRoomFor, makeRoomFor, pack, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public FloatBuffer[] array
| Constructor Detail |
|---|
public PolylineArray()
public PolylineArray(int size)
| Method Detail |
|---|
public final void newArray(int size)
GrowableArray
newArray in class GrowableArraypublic final void addAll(PolylineArray nother)
public final void addPoint(float x,
float y)
public final void startPolyline()
public final void addSegment(Line line)
public final void addSegment(float x1,
float y1,
float x2,
float y2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||