|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object com.mxgraph.util.mxPoint com.mxgraph.util.mxLine
public class mxLine
Implements a line with double precision coordinates.
Field Summary | |
---|---|
protected mxPoint |
endPoint
The end point of the line |
Fields inherited from class com.mxgraph.util.mxPoint |
---|
x, y |
Constructor Summary | |
---|---|
mxLine(double startPtX,
double startPtY,
mxPoint endPt)
Creates a new line |
|
mxLine(mxPoint startPt,
mxPoint endPt)
Creates a new line |
Method Summary | |
---|---|
mxPoint |
getEndPoint()
Returns the end point of the line. |
double |
ptLineDistSq(mxPoint pt)
Returns the square of the shortest distance from a point to this line. |
double |
ptSegDistSq(mxPoint pt)
Returns the square of the shortest distance from a point to this line segment. |
void |
setEndPoint(mxPoint value)
Sets the end point of the rectangle. |
void |
setPoints(mxPoint startPt,
mxPoint endPt)
Sets the start and end points. |
Methods inherited from class com.mxgraph.util.mxPoint |
---|
clone, equals, getPoint, getX, getY, setX, setY, toString |
Methods inherited from class java.lang.Object |
---|
finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
protected mxPoint endPoint
Constructor Detail |
---|
public mxLine(mxPoint startPt, mxPoint endPt)
public mxLine(double startPtX, double startPtY, mxPoint endPt)
Method Detail |
---|
public mxPoint getEndPoint()
public void setEndPoint(mxPoint value)
value
- The new end point of the linepublic void setPoints(mxPoint startPt, mxPoint endPt)
public double ptLineDistSq(mxPoint pt)
pt
- the point whose distance is being measured
public double ptSegDistSq(mxPoint pt)
pt
- the point whose distance is being measured
|
mxGraph 2.5.0.2 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |