public double[] getIntervals(String index) { if (validateCurve()) { if (points.get(LABEL_CURVE) == null && index == LABEL_CURVE) { createLabelCurve(); } return intervals.get(index); } return null; }
public double getCurveLength(String index) { if (validateCurve()) { if (intervals.get(index) == null) { createLabelCurve(); } return curveLengths.get(index); } return 0; }
public double[] getIntervals(String index) { if (validateCurve()) { if (points.get(LABEL_CURVE) == null && index == LABEL_CURVE) { createLabelCurve(); } return intervals.get(index); } return null; }
public double getCurveLength(String index) { if (validateCurve()) { if (intervals.get(index) == null) { createLabelCurve(); } return curveLengths.get(index); } return 0; }
/** * Obtains the points that make up the curve for the specified * curve index. If that curve, or the core curve that other curves * are based on have not yet been created, then they are lazily * created. If creation is impossible, null is returned * @param index the key specifying the curve * @return the points making up that curve, or null */ public mxPoint[] getCurvePoints(String index) { if (validateCurve()) { if (points.get(LABEL_CURVE) == null && index == LABEL_CURVE) { createLabelCurve(); } return points.get(index); } return null; }
/** * Obtains the points that make up the curve for the specified * curve index. If that curve, or the core curve that other curves * are based on have not yet been created, then they are lazily * created. If creation is impossible, null is returned * @param index the key specifying the curve * @return the points making up that curve, or null */ public mxPoint[] getCurvePoints(String index) { if (validateCurve()) { if (points.get(LABEL_CURVE) == null && index == LABEL_CURVE) { createLabelCurve(); } return points.get(index); } return null; }