trunk/adhoc-internal/src/main/java/org/jfree/chart/axis/DateAxis.java
/**
     * Zooms in on the current range.
     *
     * @param lowerPercent  the new lower bound.
     * @param upperPercent  the new upper bound.
     */
Zooms in on the current range.

@param lowerPercent  the new lower bound.
@param upperPercent  the new upper bound.
Zooms in on the current range . @param lowerPercent the new lower bound . @param upperPercent the new upper bound .
public void zoomRange(double lowerPercent, double upperPercent) {
        double start = this.timeline.toTimelineValue(
            (long) getRange().getLowerBound()
        );
        double length = (this.timeline.toTimelineValue(
                (long) getRange().getUpperBound())
                - this.timeline.toTimelineValue(
                    (long) getRange().getLowerBound()));
        Range adjusted = null;
        if (isInverted()) {
            adjusted = new DateRange(this.timeline.toMillisecond((long) (start
                    + (length * (1 - upperPercent)))),
                    this.timeline.toMillisecond((long) (start + (length
                    * (1 - lowerPercent)))));
        }
        else {
            adjusted = new DateRange(this.timeline.toMillisecond(
                    (long) (start + length * lowerPercent)),
                    this.timeline.toMillisecond((long) (start + length
                    * upperPercent)));
        }
        setRange(adjusted);
    }
public void zoomRange ( double lowerPercent , double upperPercent ) { double start = this . timeline . toTimelineValue ( ( long ) getRange ( ) . getLowerBound ( ) ) ; double length = ( this . timeline . toTimelineValue ( ( long ) getRange ( ) . getUpperBound ( ) ) - this . timeline . toTimelineValue ( ( long ) getRange ( ) . getLowerBound ( ) ) ) ; Range adjusted = null ; if ( isInverted ( ) ) { adjusted = new DateRange ( this . timeline . toMillisecond ( ( long ) ( start + ( length * ( 1 - upperPercent ) ) ) ) , this . timeline . toMillisecond ( ( long ) ( start + ( length * ( 1 - lowerPercent ) ) ) ) ) ; } else { adjusted = new DateRange ( this . timeline . toMillisecond ( ( long ) ( start + length * lowerPercent ) ) , this . timeline . toMillisecond ( ( long ) ( start + length * upperPercent ) ) ) ; } setRange ( adjusted ) ; }
Zooms in on the current range.
Zooms in on the current range .