/** * Forces underlying curve to a valid state * @param points */ public void validateCurve(List<mxPoint> points, double scale, Map<String, Object> style) { if (curve == null) { curve = new mxCurve(points); } else { curve.updateCurve(points); } curve.setLabelBuffer(scale * mxConstants.DEFAULT_LABEL_BUFFER); }
/** * Forces underlying curve to a valid state * @param points */ public void validateCurve(List<mxPoint> points, double scale, Map<String, Object> style) { if (curve == null) { curve = new mxCurve(points); } else { curve.updateCurve(points); } curve.setLabelBuffer(scale * mxConstants.DEFAULT_LABEL_BUFFER); }