1 45 46 package org.jfree.data.xy; 47 48 49 53 public abstract class AbstractIntervalXYDataset extends AbstractXYDataset 54 implements IntervalXYDataset { 55 56 65 public double getStartXValue(int series, int item) { 66 double result = Double.NaN; 67 Number x = getStartX(series, item); 68 if (x != null) { 69 result = x.doubleValue(); 70 } 71 return result; 72 } 73 74 83 public double getEndXValue(int series, int item) { 84 double result = Double.NaN; 85 Number x = getEndX(series, item); 86 if (x != null) { 87 result = x.doubleValue(); 88 } 89 return result; 90 } 91 92 101 public double getStartYValue(int series, int item) { 102 double result = Double.NaN; 103 Number y = getStartY(series, item); 104 if (y != null) { 105 result = y.doubleValue(); 106 } 107 return result; 108 } 109 110 119 public double getEndYValue(int series, int item) { 120 double result = Double.NaN; 121 Number y = getEndY(series, item); 122 if (y != null) { 123 result = y.doubleValue(); 124 } 125 return result; 126 } 127 128 } 129 | Popular Tags |