1 45 46 package org.jfree.data.xy; 47 48 import org.jfree.data.DomainOrder; 49 import org.jfree.data.general.AbstractSeriesDataset; 50 51 55 public abstract class AbstractXYDataset extends AbstractSeriesDataset 56 implements XYDataset { 57 58 63 public DomainOrder getDomainOrder() { 64 return DomainOrder.NONE; 65 } 66 67 75 public double getXValue(int series, int item) { 76 double result = Double.NaN; 77 Number x = getX(series, item); 78 if (x != null) { 79 result = x.doubleValue(); 80 } 81 return result; 82 } 83 84 92 public double getYValue(int series, int item) { 93 double result = Double.NaN; 94 Number y = getY(series, item); 95 if (y != null) { 96 result = y.doubleValue(); 97 } 98 return result; 99 } 100 101 } 102 | Popular Tags |