Package com.positive.charts.data

Examples of com.positive.charts.data.Range


   *            the new upper bound.
   */
  public void zoomRange(final double lowerPercent, final double upperPercent) {
    final double start = this.range.getLowerBound();
    final double length = this.range.getLength();
    Range adjusted = null;
    if (this.isInverted()) {
      adjusted = new Range(start + (length * (1 - upperPercent)), start
          + (length * (1 - lowerPercent)));
    } else {
      adjusted = new Range(start + length * lowerPercent, start + length
          * upperPercent);
    }
    this.setRange(adjusted);
  }
 
View Full Code Here

TOP

Related Classes of com.positive.charts.data.Range

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.