Update Interval.java

Added getXSpan and getYSpan methods