|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.partnersoft.formats.shapefile.ShpCurve
public class ShpCurve
Curved arcs are not specified in the ESRI shapefile document; however they do occur in Arc/Info shapes. The actual shape encountered we have dubbed a "ShpPolyCurve", since it is essentially a variation on a ShpPolyLine that contains curved as well as straight segments.
Despite the name prefix, this is not currently an implementation of ShpShape, since we have yet to find it in an ESRI blob as a standalone geometry. It is used to store the parts of a ShpPolyCurve.
Copyright 2007-2008 Partner Software, Inc.
| Constructor Summary | |
|---|---|
ShpCurve(double x,
double y)
|
|
ShpCurve(double x,
double y,
int code1,
double controlX,
double controlY,
int code2)
|
|
| Method Summary | |
|---|---|
boolean |
equals(java.lang.Object nother)
|
int |
getCode1()
The first integer code for the arc. |
int |
getCode2()
The second integer code for the arc. |
double |
getControlX()
|
double |
getControlY()
|
double |
getX()
|
double |
getY()
|
boolean |
isClockwise()
Returns true if the arc proceeds clockwise from this ShpCurve's xy position to the next's. |
boolean |
isControlTheCenter()
Returns true if the arc control point is the center of the arc's circle. |
boolean |
isCurved()
Returns true if this is actually a curved segment. |
java.lang.String |
toString()
|
XyPath |
toXyPath(ShpCurve curve2,
ShpCurve curve3)
Converts this ShpCurve to an XyPath, using the ones following it. |
XyPoint |
toXyPoint()
Converts just the starting point to an XyPoint. |
| Methods inherited from class java.lang.Object |
|---|
clone, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public ShpCurve(double x,
double y)
public ShpCurve(double x,
double y,
int code1,
double controlX,
double controlY,
int code2)
| Method Detail |
|---|
public XyPoint toXyPoint()
public XyPath toXyPath(ShpCurve curve2,
ShpCurve curve3)
public java.lang.String toString()
toString in class java.lang.Objectpublic boolean equals(java.lang.Object nother)
equals in class java.lang.Objectpublic boolean isCurved()
public double getX()
public double getY()
public double getControlX()
public double getControlY()
public int getCode1()
public int getCode2()
public boolean isClockwise()
public boolean isControlTheCenter()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||