本文整理了Java中org.jfree.data.xy.YIntervalDataItem
类的一些代码示例,展示了YIntervalDataItem
类的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。YIntervalDataItem
类的具体详情如下:
包路径:org.jfree.data.xy.YIntervalDataItem
类名称:YIntervalDataItem
[英]An item representing data in the form (x, y, y-low, y-high).
[中]以(x,y,y-low,y-high)形式表示数据的项。
代码示例来源:origin: jfree/jfreechart
/**
* Returns the x-value.
*
* @return The x-value (never {@code null}).
*/
public Double getX() {
return (Double) getComparable();
}
代码示例来源:origin: jfree/jfreechart
/**
* Adds a data item to the series and sends a {@link SeriesChangeEvent} to
* all registered listeners.
*
* @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 void add(double x, double y, double yLow, double yHigh) {
add(new YIntervalDataItem(x, y, yLow, yHigh), true);
}
代码示例来源: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: jfree/jfreechart
/**
* Returns the y-value for the specified item.
*
* @param index the item index.
*
* @return The y-value.
*/
public double getYValue(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getYValue();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the x-value for the specified item.
*
* @param index the item index.
*
* @return The x-value (never <code>null</code>).
*/
public Number getX(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getX();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the lower bound of the Y-interval for the specified item in the
* series.
*
* @param index the item index.
*
* @return The lower bound of the Y-interval.
*
* @since 1.0.5
*/
public double getYLowValue(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getYLowValue();
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the upper bound of the y-interval for the specified item in the
* series.
*
* @param index the item index.
*
* @return The upper bound of the y-interval.
*
* @since 1.0.5
*/
public double getYHighValue(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getYHighValue();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Adds a data item to the series.
*
* @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 void add(double x, double y, double yLow, double yHigh) {
super.add(new YIntervalDataItem(x, y, yLow, yHigh), true);
}
代码示例来源: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: org.codehaus.jtstand/jtstand-chart
/**
* Returns the y-value for the specified item.
*
* @param index the item index.
*
* @return The y-value.
*/
public double getYValue(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getYValue();
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the x-value for the specified item.
*
* @param index the item index.
*
* @return The x-value (never {@code null}).
*/
public Number getX(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getX();
}
代码示例来源:origin: jfree/jfreechart
/**
* Returns the lower bound of the Y-interval for the specified item in the
* series.
*
* @param index the item index.
*
* @return The lower bound of the Y-interval.
*
* @since 1.0.5
*/
public double getYLowValue(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getYLowValue();
}
代码示例来源:origin: org.codehaus.jtstand/jtstand-chart
/**
* Returns the upper bound of the y-interval for the specified item in the
* series.
*
* @param index the item index.
*
* @return The upper bound of the y-interval.
*
* @since 1.0.5
*/
public double getYHighValue(int index) {
YIntervalDataItem item = (YIntervalDataItem) getDataItem(index);
return item.getYHighValue();
}
代码示例来源:origin: inspectIT/inspectIT
/**
* Adds a data item to the series.
*
* @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.
* @param notify
* a flag that controls whether or not a
* {@link org.jfree.data.general.SeriesChangeEvent} is sent to all registered
* listeners.
*/
public void add(double x, double y, double yLow, double yHigh, boolean notify) {
super.add(new YIntervalDataItem(x, y, yLow, yHigh), notify);
}
代码示例来源: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: org.codehaus.jtstand/jtstand-chart
/**
* Returns the x-value.
*
* @return The x-value (never <code>null</code>).
*/
public Double getX() {
return (Double) getComparable();
}
代码示例来源: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 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;
}
}
内容来源于网络,如有侵权,请联系作者删除!