Initial Commit
This commit is contained in:
29
DataSources/OneDimensional/RawPointEnumerator.cs
Normal file
29
DataSources/OneDimensional/RawPointEnumerator.cs
Normal file
@@ -0,0 +1,29 @@
|
||||
using System.Collections;
|
||||
using System.Windows;
|
||||
|
||||
namespace Microsoft.Research.DynamicDataDisplay.DataSources
|
||||
{
|
||||
public sealed class RawPointEnumerator : IPointEnumerator {
|
||||
private readonly IEnumerator enumerator;
|
||||
|
||||
public RawPointEnumerator(RawDataSource dataSource) {
|
||||
this.enumerator = dataSource.Data.GetEnumerator();
|
||||
}
|
||||
|
||||
public bool MoveNext() {
|
||||
return enumerator.MoveNext();
|
||||
}
|
||||
|
||||
public void GetCurrent(ref Point p) {
|
||||
p = (Point)enumerator.Current;
|
||||
}
|
||||
|
||||
public void ApplyMappings(DependencyObject target) {
|
||||
// do nothing here - no mapping supported
|
||||
}
|
||||
|
||||
public void Dispose() {
|
||||
// do nothing here
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user