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


Java ValueAxis.resizeRange方法代碼示例

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


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

示例1: zoomHorizontalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Multiplies the range on the horizontal axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 */
public void zoomHorizontalAxes(double factor) {

    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.resizeRange(factor);
            }
        }
    }
    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.resizeRange(factor);
            }
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:26,代碼來源:XYPlot.java

示例2: zoomVerticalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Multiplies the range on the vertical axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 */
public void zoomVerticalAxes(double factor) {

    PlotOrientation orient = getOrientation();

    if (orient == PlotOrientation.HORIZONTAL) {
        for (int i = 0; i < this.domainAxes.size(); i++) {
            ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
            if (domainAxis != null) {
                domainAxis.resizeRange(factor);
            }
        }
    }
    else if (orient == PlotOrientation.VERTICAL) {
        for (int i = 0; i < this.rangeAxes.size(); i++) {
            ValueAxis rangeAxis = (ValueAxis) this.rangeAxes.get(i);
            if (rangeAxis != null) {
                rangeAxis.resizeRange(factor);
            }
        }
    }

}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:28,代碼來源:XYPlot.java

示例3: zoomHorizontalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Multiplies the range on the horizontal axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 */
public void zoomHorizontalAxes(double factor) {
    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.resizeRange(factor);
            }
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:16,代碼來源:CategoryPlot.java

示例4: zoomVerticalAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Multiplies the range on the vertical axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 */
public void zoomVerticalAxes(double factor) {
    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.resizeRange(factor);
            }
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:16,代碼來源:CategoryPlot.java

示例5: zoomDomainAxes

import org.jfree.chart.axis.ValueAxis; //導入方法依賴的package包/類
/**
 * Multiplies the range on the domain axis/axes by the specified factor.
 *
 * @param factor  the zoom factor.
 * @param info  the plot rendering info.
 * @param source  the source point.
 */
public void zoomDomainAxes(double factor, PlotRenderingInfo info,
                           Point2D source) {
    for (int i = 0; i < this.domainAxes.size(); i++) {
        ValueAxis domainAxis = (ValueAxis) this.domainAxes.get(i);
        if (domainAxis != null) {
            domainAxis.resizeRange(factor);
        }
    }
}
 
開發者ID:parabuild-ci,項目名稱:parabuild-ci,代碼行數:17,代碼來源:XYPlot.java

示例6: zoomRangeAxes

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

示例7: zoomRangeAxes

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


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