Package com.positive.charts.data.time

Examples of com.positive.charts.data.time.DateRange


   */
  public void setRange(final double lower, final double upper) {
    if (lower >= upper) {
      throw new IllegalArgumentException("Requires 'lower' < 'upper'.");
    }
    this.setRange(new DateRange(lower, upper));
  }
View Full Code Here


      throw new IllegalArgumentException("Null 'range' argument.");
    }
    // usually the range will be a DateRange, but if it isn't do a
    // conversion...
    if (!(range instanceof DateRange)) {
      range = new DateRange(range);
    }
    super.setRange(range, turnOffAutoRange, notify);
  }
View Full Code Here

  public double valueToJava2D(double value, final Rectangle area,
      final RectangleEdge edge) {

    value = this.timeline.toTimelineValue((long) value);

    final DateRange range = (DateRange) this.getRange();
    final double axisMin = this.timeline.toTimelineValue(range
        .getLowerDate());
    final double axisMax = this.timeline.toTimelineValue(range
        .getUpperDate());
    double result = 0.0;
    if (edge.isTopOrBottom()) {
      final double minX = RectangleUtil.getMinX(area);
      final double maxX = RectangleUtil.getMaxX(area);
View Full Code Here

TOP

Related Classes of com.positive.charts.data.time.DateRange

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.