public class mxLine extends mxPoint
Modifier and Type | Field and Description |
---|---|
protected mxPoint |
endPoint
The end point of the line
|
Constructor and Description |
---|
mxLine(double startPtX,
double startPtY,
mxPoint endPt)
Creates a new line
|
mxLine(mxPoint startPt,
mxPoint endPt)
Creates a new line
|
Modifier and Type | Method and Description |
---|---|
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.
|
protected mxPoint endPoint
public mxLine(double startPtX, double startPtY, mxPoint endPt)
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 measuredpublic double ptSegDistSq(mxPoint pt)
pt
- the point whose distance is being measuredCopyright (c) 2010-2017 Gaudenz Alder, JGraph Ltd. All rights reserved.