public class ShpCurve extends java.lang.Object implements Immutable
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 and Description |
|---|
ShpCurve(double x,
double y) |
ShpCurve(double x,
double y,
int code1,
double controlX,
double controlY,
int code2) |
| Modifier and Type | Method and Description |
|---|---|
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.
|
public ShpCurve(double x,
double y)
public ShpCurve(double x,
double y,
int code1,
double controlX,
double controlY,
int code2)
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()