|
JGraph X 1.4.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectcom.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(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. |
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)
Method Detail |
---|
public mxPoint getEndPoint()
public void setEndPoint(mxPoint value)
value
- The new end point of the linepublic 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
|
JGraph X 1.4.1.0 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |