|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.v3x.graphics.DoublePolyline
public class DoublePolyline
A double-precision polyline object.
| Constructor Summary | |
|---|---|
DoublePolyline()
|
|
DoublePolyline(java.util.ArrayList newPoints)
|
|
DoublePolyline(DoubleBuffer buffer)
|
|
DoublePolyline(FloatBuffer buffer)
|
|
| Method Summary | |
|---|---|
void |
addPoint(double x,
double y)
|
void |
addPoint(DoublePoint newPoint)
|
void |
addPointByBearing(double theta,
double distance)
|
java.util.ArrayList |
clipOutRectangle(DoubleRectangle rectangle)
Clips a rectangle out of the polyline to a rectangle, producing zero or more resultant polylines that are outside the rectangle. |
java.util.ArrayList |
clipToRectangle(DoubleRectangle rectangle)
Clips the polyline to a rectangle, producing zero or more resultant polylines that are within the rectangle. |
java.lang.Object |
clone()
|
double |
getLength()
|
int |
getNumberOfPoints()
|
int |
getNumberOfSegments()
|
java.util.ArrayList |
getPoints()
|
void |
reduceDetail(double granularity)
Attempts to reduce the complexity of the line by eliminating points which add nothing to the detail at a certain granularity. |
void |
scale(double scaleFactor)
|
void |
setPoints(java.util.ArrayList newPoints)
|
DoublePolyline |
subsection(int startSegment,
int endSegment)
Returns a DoublePolyline that is a subsection of the current one. |
FloatBuffer |
toFloatBuffer()
|
java.lang.String |
toString()
|
void |
translate(double xOffset,
double yOffset)
|
void |
translateAndScale(double xOffset,
double yOffset,
double scaleFactor)
|
| Methods inherited from class java.lang.Object |
|---|
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public DoublePolyline()
public DoublePolyline(java.util.ArrayList newPoints)
public DoublePolyline(DoubleBuffer buffer)
public DoublePolyline(FloatBuffer buffer)
| Method Detail |
|---|
public FloatBuffer toFloatBuffer()
public java.util.ArrayList getPoints()
public void setPoints(java.util.ArrayList newPoints)
public void addPoint(DoublePoint newPoint)
public void addPoint(double x,
double y)
public java.lang.String toString()
toString in class java.lang.Objectpublic int getNumberOfPoints()
public int getNumberOfSegments()
public double getLength()
public void translate(double xOffset,
double yOffset)
public void scale(double scaleFactor)
public void translateAndScale(double xOffset,
double yOffset,
double scaleFactor)
public void addPointByBearing(double theta,
double distance)
public java.lang.Object clone()
clone in class java.lang.Objectpublic void reduceDetail(double granularity)
public java.util.ArrayList clipToRectangle(DoubleRectangle rectangle)
public java.util.ArrayList clipOutRectangle(DoubleRectangle rectangle)
public DoublePolyline subsection(int startSegment,
int endSegment)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||