/** * Creates a new line */ public mxLine(mxPoint startPt, mxPoint endPt) { this.setX(startPt.getX()); this.setY(startPt.getY()); this.endPoint = endPt; }
/** * Sets the start and end points. */ public void setPoints(mxPoint startPt, mxPoint endPt) { this.setX(startPt.getX()); this.setY(startPt.getY()); this.endPoint = endPt; }
/** * Creates a new line */ public mxLine(mxPoint startPt, mxPoint endPt) { this.setX(startPt.getX()); this.setY(startPt.getY()); this.endPoint = endPt; }
/** * Sets the start and end points. */ public void setPoints(mxPoint startPt, mxPoint endPt) { this.setX(startPt.getX()); this.setY(startPt.getY()); this.endPoint = endPt; }