|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.data.DataBuffer
com.partnersoft.geometry.PolylineArray
public class PolylineArray
A list of polylines. Has some handy construction methods to help with clipping etc.
| Field Summary | |
|---|---|
DoubleBuffer[] |
array
|
| Fields inherited from class com.partnersoft.data.DataBuffer |
|---|
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 |
add(Polyline addMe)
|
void |
addAll(PolylineArray nother)
|
void |
addPoint(double x,
double y)
Adds a new point, no questions asked. |
void |
addSegment(double x1,
double y1,
double x2,
double 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.data.DataBuffer |
|---|
append, clear, clone, copy, copyTo, getSize, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, setToMatch, subsection, tidy, toString |
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public DoubleBuffer[] array
| Constructor Detail |
|---|
public PolylineArray()
public PolylineArray(int size)
| Method Detail |
|---|
public final void newArray(int size)
DataBuffer
newArray in class DataBufferpublic void add(Polyline addMe)
public final void addAll(PolylineArray nother)
public final void addPoint(double x,
double y)
public final void startPolyline()
public final void addSegment(Line line)
public final void addSegment(double x1,
double y1,
double x2,
double y2)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||