當前位置: 首頁>>代碼示例>>Java>>正文


Java ValueAxis.zoomRange方法代碼示例

本文整理匯總了Java中org.jfree.chart.axis.ValueAxis.zoomRange方法的典型用法代碼示例。如果您正苦於以下問題:Java ValueAxis.zoomRange方法的具體用法?Java ValueAxis.zoomRange怎麽用?Java ValueAxis.zoomRange使用的例子?那麽, 這裏精選的方法代碼示例或許可以為您提供幫助。您也可以進一步了解該方法所在org.jfree.chart.axis.ValueAxis的用法示例。


在下文中一共展示了ValueAxis.zoomRange方法的9個代碼示例,這些例子默認根據受歡迎程度排序。您可以為喜歡或者感覺有用的代碼點讚,您的評價將有助於係統推薦出更棒的Java代碼示例。

示例1: calculateDomainAxesZoom

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
@Override
public List<Pair<Integer, Range>> calculateDomainAxesZoom(double lowerPercent, double upperPercent, boolean zoomIn) {

	List<Pair<Integer, Range>> newRanges = new LinkedList<Pair<Integer, Range>>();

	for (int i = 0; i < getDomainAxisCount(); i++) {
		ValueAxis domainAxis = getDomainAxis(i);
		if (domainAxis != null) {
			if (domainAxis instanceof LinkAndBrushAxis) {
				Range calculateZoomRange = ((LinkAndBrushAxis) domainAxis).calculateZoomRange(lowerPercent,
						upperPercent, zoomIn);
				newRanges.add(new Pair<Integer, Range>(i, calculateZoomRange));
			} else if (zoomIn) {
				domainAxis.zoomRange(lowerPercent, upperPercent);
			}
		}
	}

	return newRanges;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:21,代碼來源:LinkAndBrushXYPlot.java

示例2: calculateRangeAxesZoom

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
@Override
public List<Pair<Integer, Range>> calculateRangeAxesZoom(double lowerPercent, double upperPercent,
		PlotRenderingInfo info, Point2D source, boolean zoomIn) {

	List<Pair<Integer, Range>> newRanges = new LinkedList<Pair<Integer, Range>>();

	for (int i = 0; i < getRangeAxisCount(); i++) {
		ValueAxis rangeAxis = getRangeAxis(i);
		if (rangeAxis != null) {
			if (rangeAxis instanceof LinkAndBrushAxis) {
				Range calculateZoomRange = ((LinkAndBrushAxis) rangeAxis).calculateZoomRange(lowerPercent, upperPercent,
						zoomIn);
				newRanges.add(new Pair<Integer, Range>(i, calculateZoomRange));
			} else if (zoomIn) {
				rangeAxis.zoomRange(lowerPercent, upperPercent);
			}
		}
	}

	return newRanges;
}
 
開發者ID:transwarpio,項目名稱:rapidminer,代碼行數:22,代碼來源:LinkAndBrushXYPlot.java

示例3: zoomHorizontalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Zooms in on the horizontal axis/axes.  The new lower and upper bounds are specified
 * as percentages of the current axis range, where 0 percent is the current lower bound
 * and 100 percent is the current upper bound.
 *
 * @param lowerPercent  a percentage that determines the new lower bound for the axis 
 *                      (e.g. 0.20 is twenty percent).
 * @param upperPercent  a percentage that determines the new upper bound for the axis
 *                      (e.g. 0.80 is eighty percent).
 */
public void zoomHorizontalAxes(double lowerPercent, double upperPercent) {

    PlotOrientation orient = getOrientation();
    if (orient == PlotOrientation.HORIZONTAL) {
        for (int i = 0; i < this.rangeAxes.size(); i++) {
            ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
            if (rangeAxis != null) {
                rangeAxis.zoomRange(lowerPercent, upperPercent);
            }
        }
    }
    else if (orient == PlotOrientation.VERTICAL) {
        for (int i = 0; i < this.domainAxes.size(); i++) {
            ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
            if (domainAxis != null) {
                domainAxis.zoomRange(lowerPercent, upperPercent);
            }
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:31,代碼來源:XYPlot.java

示例4: zoomVerticalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Zooms in on the vertical axes.
 *
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 */
public void zoomVerticalAxes(double lowerPercent, double upperPercent) {

    PlotOrientation orient = getOrientation();
    if (orient == PlotOrientation.VERTICAL) {
        for (int i = 0; i < this.rangeAxes.size(); i++) {
            ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
            if (rangeAxis != null) {
                rangeAxis.zoomRange(lowerPercent, upperPercent);
            }
        }
    }
    else if (orient == PlotOrientation.HORIZONTAL) {
        for (int i = 0; i < this.domainAxes.size(); i++) {
            ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
            if (domainAxis != null) {
                domainAxis.zoomRange(lowerPercent, upperPercent);
            }
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:27,代碼來源:XYPlot.java

示例5: zoomHorizontalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Zooms in on the horizontal axes.
 * 
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 */
public void zoomHorizontalAxes(double lowerPercent, double upperPercent) {
    if (this.orientation == PlotOrientation.HORIZONTAL) {
        for (int i = 0; i < this.rangeAxes.size(); i++) {
            ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
            if (rangeAxis != null) {
                rangeAxis.zoomRange(lowerPercent, upperPercent);
            }
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:17,代碼來源:CategoryPlot.java

示例6: zoomVerticalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Zooms in on the vertical axes.
 * 
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 */
public void zoomVerticalAxes(double lowerPercent, double upperPercent) {
    if (this.orientation == PlotOrientation.VERTICAL) {
        for (int i = 0; i < this.rangeAxes.size(); i++) {
            ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
            if (rangeAxis != null) {
                rangeAxis.zoomRange(lowerPercent, upperPercent);
            }
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:17,代碼來源:CategoryPlot.java

示例7: zoomRangeAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Zooms in on the range axes.
 *
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 * @param info  the plot rendering info.
 * @param source  the source point.
 */
public void zoomRangeAxes(double lowerPercent, double upperPercent,
                          PlotRenderingInfo info, Point2D source) {
    for (int i = 0; i < this.rangeAxes.size(); i++) {
        ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
        if (rangeAxis != null) {
            rangeAxis.zoomRange(lowerPercent, upperPercent);
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:18,代碼來源:XYPlot.java

示例8: zoomRangeAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Zooms in on the range axes.
 * 
 * @param lowerPercent  the lower bound.
 * @param upperPercent  the upper bound.
 * @param state  the plot state.
 * @param source  the source point (in Java2D space) for the zoom.
 */
public void zoomRangeAxes(double lowerPercent, double upperPercent, 
                          PlotRenderingInfo state, Point2D source) {
    for (int i = 0; i < this.rangeAxes.size(); i++) {
        ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
        if (rangeAxis != null) {
            rangeAxis.zoomRange(lowerPercent, upperPercent);
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:18,代碼來源:CategoryPlot.java

示例9: zoomDomainAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Zooms in on the domain axis/axes.  The new lower and upper bounds are
 * specified as percentages of the current axis range, where 0 percent is
 * the current lower bound and 100 percent is the current upper bound.
 *
 * @param lowerPercent  a percentage that determines the new lower bound
 *                      for the axis (e.g. 0.20 is twenty percent).
 * @param upperPercent  a percentage that determines the new upper bound
 *                      for the axis (e.g. 0.80 is eighty percent).
 * @param info  the plot rendering info.
 * @param source  the source point.
 */
public void zoomDomainAxes(double lowerPercent, double upperPercent,
                           PlotRenderingInfo info, Point2D source) {
    for (int i = 0; i < this.domainAxes.size(); i++) {
        ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
        if (domainAxis != null) {
            domainAxis.zoomRange(lowerPercent, upperPercent);
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:22,代碼來源:XYPlot.java


注:本文中的org.jfree.chart.axis.ValueAxis.zoomRange方法示例由純淨天空整理自Github/MSDocs等開源代碼及文檔管理平台,相關代碼片段篩選自各路編程大神貢獻的開源項目,源碼版權歸原作者所有,傳播和使用請參考對應項目的License;未經允許,請勿轉載。