| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384 |
- using MuchInfo.Chart.Data.Interfaces;
- using System;
- using System.Collections.Generic;
- namespace MuchInfo.Chart.WPF.Primitives.Interfaces
- {
- public interface IDateScaler
- {
- #region Properties
- /// <summary>
- /// 请求图表长度
- /// </summary>
- string DesiredChartLength
- {
- get;
- set;
- }
- DateTime DesiredEndDate
- {
- get;
- set;
- }
- int EndDateIndex
- {
- get;
- set;
- }
- int NumBars
- {
- get;
- set;
- }
- int StartDateIndex
- {
- get;
- set;
- }
- #endregion Properties
- #region Methods
- int BinaryIndexSearch(DateTime aDate, int minIndex);
- int Count();
- DateTime DateFromX(double aX);
- DateTime DateValue(int aIndex);
- bool DateVisible(DateTime aDate);
- bool DateContains(DateTime date);
- double DistanceBetweenDates();
- int FirstVisibleIndexFromData(IList<ILineDataPoint> data);
- int LastVisibleIndexFromData(IList<ILineDataPoint> data);
- bool HasNonEODDates();
- int IndexFromDate(DateTime aDate);
- float PercentFromIndex(int aIndex);
- int WidthWithBarBuffer();
- float XforDate(DateTime aDate);
- DateTime OriginalDateFromX(double aX);
- DateTime OriginalDateFromX(double aX, int offSet);
- DateTime OriginalDateValue(int index);
- #endregion Methods
- }
- }
|