コード例 #1
0
 /**
  * Returns a value from the table.
  *
  * @param row the row index (zero-based).
  * @param column the column index (zero-based).
  * @return The value (possibly <code>null</code>).
  */
 @Override
 public Number getValue(int row, int column) {
   IntervalDataItem item = (IntervalDataItem) this.data.getObject(row, column);
   if (item == null) {
     return null;
   }
   return item.getValue();
 }
コード例 #2
0
 @Override
 public Number getStartValue(int series, int category) {
   IntervalDataItem item = (IntervalDataItem) this.data.getObject(series, category);
   if (item == null) {
     return null;
   }
   return item.getLowerBound();
 }
コード例 #3
0
 @Override
 public Number getEndValue(Comparable series, Comparable category) {
   IntervalDataItem item = (IntervalDataItem) this.data.getObject(series, category);
   if (item == null) {
     return null;
   }
   return item.getUpperBound();
 }
コード例 #4
0
 /**
  * Returns the value for a pair of keys.
  *
  * @param rowKey the row key (<code>null</code> not permitted).
  * @param columnKey the column key (<code>null</code> not permitted).
  * @return The value (possibly <code>null</code>).
  * @throws UnknownKeyException if either key is not defined in the dataset.
  */
 @Override
 public Number getValue(Comparable rowKey, Comparable columnKey) {
   IntervalDataItem item = (IntervalDataItem) this.data.getObject(rowKey, columnKey);
   if (item == null) {
     return null;
   }
   return item.getValue();
 }