/** * Returns the square of the shortest distance from a point to this * line segment. * * @param pt the point whose distance is being measured * @return the square of the distance from the specified point to this segment. */ public double ptSegDistSq(mxPoint pt) { return new Line2D.Double(getX(), getY(), endPoint.getX(), endPoint .getY()).ptSegDistSq(pt.getX(), pt.getY()); }
/** * Returns the square of the shortest distance from a point to this * line segment. * * @param pt the point whose distance is being measured * @return the square of the distance from the specified point to this segment. */ public double ptSegDistSq(mxPoint pt) { return new Line2D.Double(getX(), getY(), endPoint.getX(), endPoint .getY()).ptSegDistSq(pt.getX(), pt.getY()); }
/** * Returns the square of the shortest distance from a point to this line. * The line is considered extrapolated infinitely in both directions for * the purposes of the calculation. * * @param pt the point whose distance is being measured * @return the square of the distance from the specified point to this line. */ public double ptLineDistSq(mxPoint pt) { return new Line2D.Double(getX(), getY(), endPoint.getX(), endPoint .getY()).ptLineDistSq(pt.getX(), pt.getY()); }
/** * Returns the square of the shortest distance from a point to this line. * The line is considered extrapolated infinitely in both directions for * the purposes of the calculation. * * @param pt the point whose distance is being measured * @return the square of the distance from the specified point to this line. */ public double ptLineDistSq(mxPoint pt) { return new Line2D.Double(getX(), getY(), endPoint.getX(), endPoint .getY()).ptLineDistSq(pt.getX(), pt.getY()); }
g.translate(parallel.getX(), parallel.getY()); g.rotate(rotation); Shape letter = labelGlyphs[j].glyphShape;
g.translate(parallel.getX(), parallel.getY()); g.rotate(rotation); Shape letter = labelGlyphs[j].glyphShape;
mxPoint p0 = new mxPoint(markerVector.getX(), markerVector.getY()); mxPoint pe = markerVector.getEndPoint();
mxPoint p0 = new mxPoint(markerVector.getX(), markerVector.getY()); mxPoint pe = markerVector.getEndPoint();