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


Java AxisLocation.getOpposite方法代碼示例

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


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

示例1: getDomainAxisLocation

import org.jfree.chart.axis.AxisLocation; //導入方法依賴的package包/類
/**
 * Returns the location for a domain axis.  If this hasn't been set
 * explicitly, the method returns the location that is opposite to the
 * primary domain axis location.
 *
 * @param index  the axis index (must be >= 0).
 *
 * @return The location (never {@code null}).
 *
 * @see #setDomainAxisLocation(int, AxisLocation)
 */
public AxisLocation getDomainAxisLocation(int index) {
    AxisLocation result = this.domainAxisLocations.get(index);
    if (result == null) {
        result = AxisLocation.getOpposite(getDomainAxisLocation());
    }
    return result;
}
 
開發者ID:mdzio,項目名稱:ccu-historian,代碼行數:19,代碼來源:XYPlot.java

示例2: getRangeAxisLocation

import org.jfree.chart.axis.AxisLocation; //導入方法依賴的package包/類
/**
 * Returns the location for a range axis.  If this hasn't been set
 * explicitly, the method returns the location that is opposite to the
 * primary range axis location.
 *
 * @param index  the axis index (must be >= 0).
 *
 * @return The location (never {@code null}).
 *
 * @see #setRangeAxisLocation(int, AxisLocation)
 */
public AxisLocation getRangeAxisLocation(int index) {
    AxisLocation result = this.rangeAxisLocations.get(index);
    if (result == null) {
        result = AxisLocation.getOpposite(getRangeAxisLocation());
    }
    return result;
}
 
開發者ID:mdzio,項目名稱:ccu-historian,代碼行數:19,代碼來源:XYPlot.java

示例3: getDomainAxisLocation

import org.jfree.chart.axis.AxisLocation; //導入方法依賴的package包/類
/**
 * Returns the location for a domain axis.
 *
 * @param index  the axis index.
 *
 * @return The location.
 *
 * @see #setDomainAxisLocation(int, AxisLocation)
 */
public AxisLocation getDomainAxisLocation(int index) {
    AxisLocation result = this.domainAxisLocations.get(index);
    if (result == null) {
        result = AxisLocation.getOpposite(getDomainAxisLocation(0));
    }
    return result;
}
 
開發者ID:mdzio,項目名稱:ccu-historian,代碼行數:17,代碼來源:CategoryPlot.java

示例4: getRangeAxisLocation

import org.jfree.chart.axis.AxisLocation; //導入方法依賴的package包/類
/**
 * Returns the location for a range axis.
 *
 * @param index  the axis index.
 *
 * @return The location.
 *
 * @see #setRangeAxisLocation(int, AxisLocation)
 */
public AxisLocation getRangeAxisLocation(int index) {
    AxisLocation result = this.rangeAxisLocations.get(index);
    if (result == null) {
        result = AxisLocation.getOpposite(getRangeAxisLocation(0));
    }
    return result;
}
 
開發者ID:mdzio,項目名稱:ccu-historian,代碼行數:17,代碼來源:CategoryPlot.java


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