gpt4 book ai didi

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

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

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

YInterval介绍

[英]A y-interval. This class is used internally by the YIntervalDataItem class.
[中]y间隔。该类由YIntervalDataItem类在内部使用。

代码示例

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

/**
 * Creates a new instance of {@code YIntervalDataItem}.
 *
 * @param x  the x-value.
 * @param y  the y-value.
 * @param yLow  the lower bound of the y-interval.
 * @param yHigh  the upper bound of the y-interval.
 */
public YIntervalDataItem(double x, double y, double yLow, double yHigh) {
  super(new Double(x), new YInterval(y, yLow, yHigh));
}

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

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

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

/**
 * Returns the lower bound of the y-interval.
 *
 * @return The lower bound of the y-interval.
 */
public double getYLowValue() {
  YInterval interval = (YInterval) getObject();
  if (interval != null) {
    return interval.getYLow();
  }
  else {
    return Double.NaN;
  }
}

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

/**
 * Returns the upper bound of the y-interval.
 *
 * @return The upper bound of the y-interval.
 */
public double getYHighValue() {
  YInterval interval = (YInterval) getObject();
  if (interval != null) {
    return interval.getYHigh();
  }
  else {
    return Double.NaN;
  }
}

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

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

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

/**
 * Returns the lower bound of the y-interval.
 *
 * @return The lower bound of the y-interval.
 */
public double getYLowValue() {
  YInterval interval = (YInterval) getObject();
  if (interval != null) {
    return interval.getYLow();
  }
  else {
    return Double.NaN;
  }
}

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

/**
 * Returns the upper bound of the y-interval.
 *
 * @return The upper bound of the y-interval.
 */
public double getYHighValue() {
  YInterval interval = (YInterval) getObject();
  if (interval != null) {
    return interval.getYHigh();
  }
  else {
    return Double.NaN;
  }
}

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

/**
 * Creates a new instance of <code>YIntervalItem</code>.
 *
 * @param x  the x-value.
 * @param y  the y-value.
 * @param yLow  the lower bound of the y-interval.
 * @param yHigh  the upper bound of the y-interval.
 */
public YIntervalDataItem(double x, double y, double yLow, double yHigh) {
  super(new Double(x), new YInterval(y, yLow, yHigh));
}

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