public class PolylineArray extends DataBuffer
| Modifier and Type | Field and Description |
|---|---|
DoubleBuffer[] |
array |
arrayObject, capacity, end, growthCap, growthMin, start| Constructor and Description |
|---|
PolylineArray()
Creates an empty polyline array.
|
PolylineArray(int size)
Creates a polyline array of the given size.
|
| Modifier and Type | Method and Description |
|---|---|
void |
add(Polyline addMe) |
void |
addAll(PolylineArray nother) |
void |
addAsOrdered(Polyline addMe,
double distance)
Flips 'addMe' or last added line such that all lines in array can be
drawn in order.
|
void |
addAsSeperateOrdered(Polyline addMe,
double distance)
Flips passed lines or last added line such that all lines in array can be
drawn in order.
|
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.
|
java.util.ArrayList |
buildPolylines() |
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.
|
append, clear, clone, copy, copyTo, getSize, insert, isEmpty, makeRoomFor, makeRoomFor, pack, remove, setToMatch, subsection, tidy, toStringpublic DoubleBuffer[] array
public PolylineArray()
public PolylineArray(int size)
public final void newArray(int size)
DataBuffernewArray in class DataBufferpublic void add(Polyline addMe)
public void addAsSeperateOrdered(Polyline addMe, double distance)
public void addAsOrdered(Polyline addMe, double distance)
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)
public java.util.ArrayList buildPolylines()