+
+ /**
+ * @param inIndex index number
+ * @return source info object
+ */
+ public SourceInfo getSource(int inIndex) {
+ return _sources.get(inIndex);
+ }
+
+ /**
+ * Get the SourceInfo object (if any) for the given point
+ * @param inPoint point object
+ * @return SourceInfo object if there is one, otherwise null
+ */
+ public SourceInfo getSourceForPoint(DataPoint inPoint)
+ {
+ for (SourceInfo source : _sources) {
+ if (source.getIndex(inPoint) >= 0) {
+ return source;
+ }
+ }
+ return null;
+ }
+
+ /**
+ * Clone contents of file info
+ */
+ @SuppressWarnings("unchecked")
+ public FileInfo clone()
+ {
+ // copy source list
+ ArrayList<SourceInfo> copy = (ArrayList<SourceInfo>) _sources.clone();
+ return new FileInfo(copy);
+ }