|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.geometry.single.Polyline
public class Polyline
A single, FloatBuffer-based polyline.
| Field Summary | |
|---|---|
FloatBuffer |
coords
|
| Constructor Summary | |
|---|---|
Polyline()
|
|
Polyline(FloatBuffer buffy)
|
|
Polyline(int size)
|
|
Polyline(Polyline copyThis)
|
|
| Method Summary | |
|---|---|
PolylineArray |
clipOutRectangle(float x,
float y,
float width,
float height)
Clips a rectangle out of the polyline to a rectangle, producing zero or more resultant polylines that are outside the rectangle. |
PolylineArray |
clipOutRectangle(Rectangle rectangle)
|
void |
clipOutRectangle(Rectangle rectangle,
PolylineArray results)
This is the fastest public clipOutRectangle variation - passing a reuseable PolylineArray can reduce allocation overhead. |
PolylineArray |
clipOutRectangles(Rectangle[] rectangles)
Cuts a collection of rectangular holes out. |
Point |
getCentroid()
|
Rectangle |
getExtents()
|
float |
getLength()
|
void |
reduceDetail(float granularity)
|
static void |
reduceDetail(FloatBuffer coords,
float granularity)
Attempts to reduce the complexity of the line by eliminating points which add nothing to the detail at a certain granularity. |
java.lang.String |
toString()
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public FloatBuffer coords
| Constructor Detail |
|---|
public Polyline()
public Polyline(int size)
public Polyline(FloatBuffer buffy)
public Polyline(Polyline copyThis)
| Method Detail |
|---|
public java.lang.String toString()
toString in class java.lang.Objectpublic final void reduceDetail(float granularity)
public static final void reduceDetail(FloatBuffer coords,
float granularity)
public final Point getCentroid()
public final float getLength()
public final Rectangle getExtents()
public final PolylineArray clipOutRectangle(float x,
float y,
float width,
float height)
public final PolylineArray clipOutRectangle(Rectangle rectangle)
public final void clipOutRectangle(Rectangle rectangle,
PolylineArray results)
public final PolylineArray clipOutRectangles(Rectangle[] rectangles)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||