gpt4 book ai didi

org.jfree.data.xy.YWithXInterval类的使用及代码示例

转载 作者:知者 更新时间:2024-03-19 06:29:31 28 4
gpt4 key购买 nike

本文整理了Java中org.jfree.data.xy.YWithXInterval类的一些代码示例,展示了YWithXInterval类的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YWithXInterval类的具体详情如下:
包路径:org.jfree.data.xy.YWithXInterval
类名称:YWithXInterval

YWithXInterval介绍

[英]A y-value plus the bounds for the related x-interval. This curious combination exists as an implementation detail, to fit into the structure of the ComparableObjectSeries class. It would have been possible to simply reuse the YInterval class by assuming that the y-interval in fact represents the x-interval, however I decided it was better to duplicate some code in order to document the real intent.
[中]y值加上相关x区间的界限。这种奇怪的组合作为实现细节存在,以适应ComparableObjectSeries类的结构。通过假设y-interval实际上代表x-interval,可以简单地重用YInterval类,但是我决定最好复制一些代码来记录真正的意图。

代码示例

代码示例来源:origin: jfree/jfreechart

/**
 * Creates a new instance of {@code XIntervalDataItem}.
 *
 * @param x  the x-value.
 * @param xLow  the lower bound of the x-interval.
 * @param xHigh  the upper bound of the x-interval.
 * @param y  the y-value.
 */
public XIntervalDataItem(double x, double xLow, double xHigh, double y) {
  super(new Double(x), new YWithXInterval(y, xLow, xHigh));
}

代码示例来源:origin: jfree/jfreechart

/**
 * Returns the y-value.
 *
 * @return The y-value.
 */
public double getYValue() {
  YWithXInterval interval = (YWithXInterval) getObject();
  if (interval != null) {
    return interval.getY();
  }
  else {
    return Double.NaN;
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the lower bound of the x-interval.
 *
 * @return The lower bound of the x-interval.
 */
public double getXLowValue() {
  YWithXInterval interval = (YWithXInterval) getObject();
  if (interval != null) {
    return interval.getXLow();
  }
  else {
    return Double.NaN;
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the upper bound of the x-interval.
 *
 * @return The upper bound of the x-interval.
 */
public double getXHighValue() {
  YWithXInterval interval = (YWithXInterval) getObject();
  if (interval != null) {
    return interval.getXHigh();
  }
  else {
    return Double.NaN;
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Returns the y-value.
 *
 * @return The y-value.
 */
public double getYValue() {
  YWithXInterval interval = (YWithXInterval) getObject();
  if (interval != null) {
    return interval.getY();
  }
  else {
    return Double.NaN;
  }
}

代码示例来源:origin: jfree/jfreechart

/**
 * Returns the lower bound of the x-interval.
 *
 * @return The lower bound of the x-interval.
 */
public double getXLowValue() {
  YWithXInterval interval = (YWithXInterval) getObject();
  if (interval != null) {
    return interval.getXLow();
  }
  else {
    return Double.NaN;
  }
}

代码示例来源:origin: jfree/jfreechart

/**
 * Returns the upper bound of the x-interval.
 *
 * @return The upper bound of the x-interval.
 */
public double getXHighValue() {
  YWithXInterval interval = (YWithXInterval) getObject();
  if (interval != null) {
    return interval.getXHigh();
  }
  else {
    return Double.NaN;
  }
}

代码示例来源:origin: org.codehaus.jtstand/jtstand-chart

/**
 * Creates a new instance of <code>XIntervalDataItem</code>.
 *
 * @param x  the x-value.
 * @param xLow  the lower bound of the x-interval.
 * @param xHigh  the upper bound of the x-interval.
 * @param y  the y-value.
 */
public XIntervalDataItem(double x, double xLow, double xHigh, double y) {
  super(new Double(x), new YWithXInterval(y, xLow, xHigh));
}

28 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com