1 42 43 package org.jfree.data.xy; 44 45 import org.jfree.data.ComparableObjectItem; 46 import org.jfree.data.ComparableObjectSeries; 47 48 55 public class XIntervalSeries extends ComparableObjectSeries { 56 57 64 public XIntervalSeries(Comparable key) { 65 this(key, true, true); 66 } 67 68 78 public XIntervalSeries(Comparable key, boolean autoSort, 79 boolean allowDuplicateXValues) { 80 super(key, autoSort, allowDuplicateXValues); 81 } 82 83 91 public void add(double x, double xLow, double xHigh, double y) { 92 super.add(new XIntervalDataItem(x, xLow, xHigh, y), true); 93 } 94 95 102 public Number getX(int index) { 103 XIntervalDataItem item = (XIntervalDataItem) getDataItem(index); 104 return item.getX(); 105 } 106 107 114 public double getYValue(int index) { 115 XIntervalDataItem item = (XIntervalDataItem) getDataItem(index); 116 return item.getYValue(); 117 } 118 119 126 public ComparableObjectItem getDataItem(int index) { 127 return super.getDataItem(index); 128 } 129 130 } 131 | Popular Tags |