AxisBase
为轴提供全Ultrachart的基态功能。衍生类型包括支持任意数值的NumericAxis,支持日期值的DateTimeAxis。轴可能被样式化,详见细节
继承自: ContentControl
实现: IAxis, IAxisParams, IHitTestable, ISuspendable, IInvalidatableElement, IDrawable, INotifyPropertyChanged, IXmlSerializable
构造函数
属性
public IRange AnimatedVisibleRange { get; set; }
value = axisBase.AnimatedVisibleRange
axisBase.AnimatedVisibleRange = value
获取或设置轴的 VisibleRange 动画。 当设定此属性时, 轴将 VisibleRange 动画在 500 ms 的时间内为新值 。
public bool AutoAlignVisibleRange { get; set; }
value = axisBase.AutoAlignVisibleRange
axisBase.AutoAlignVisibleRange = value
获取或设定是否将可见区域自动对齐数据。 请注意此属性仅适用于 X 轴。 默认值是 False。 当 VisibleRange 设置在 X 轴上时, 将 Min 和 Max 值与 XValues 中的数据值对齐
public AutoRange AutoRange { get; set; }
value = axisBase.AutoRange
axisBase.AutoRange = value
获取或设定% AutoRange +% 模式
public bool AutoTicks { get; set; }
value = axisBase.AutoTicks
axisBase.AutoTicks = value
获取或设置值,表示是否自动计算出勾选。默认为 True 。
public AxisAlignment AxisAlignment { get; set; }
value = axisBase.AxisAlignment
axisBase.AxisAlignment = value
获取或设置此轴的 AxisAlignment。 默认是正确的 。
public Color AxisBandsFill { get; set; }
value = axisBase.AxisBandsFill
axisBase.AxisBandsFill = value
获取或设置轴带的填充。 另请参见 DrawMajorBands 以启用此行为
public AxisMode AxisMode { get; set; }
value = axisBase.AxisMode
axisBase.AxisMode = value
获取或设置此轴运行于 AxisMode, e.g 。 线性或对数性
public string AxisTitle { get; set; }
value = axisBase.AxisTitle
axisBase.AxisTitle = value
获取或设置轴标题
public virtual double CurrentDatapointPixelSize { get; }
value = axisBase.CurrentDatapointPixelSize
获得以像素计的当前数据点大小
public string CursorTextFormatting { get; set; }
value = axisBase.CursorTextFormatting
axisBase.CursorTextFormatting = value
获取或设置此光标上的标签文字格式字符串
public ILabelProvider DefaultLabelProvider { get; protected set; }
value = axisBase.DefaultLabelProvider
axisBase.DefaultLabelProvider = value
获得默认 ILabelProvider 实例 。
public bool DrawLabels { get; set; }
value = axisBase.DrawLabels
axisBase.DrawLabels = value
如果 True, 在轴上绘制每个主勾选的标签, 否则跳过此步骤
public bool DrawMajorBands { get; set; }
value = axisBase.DrawMajorBands
axisBase.DrawMajorBands = value
如果 True, 绘制主轴带( 主要网格线之间的填充区域), 否则跳过此步骤
public bool DrawMajorGridLines { get; set; }
value = axisBase.DrawMajorGridLines
axisBase.DrawMajorGridLines = value
如果 True, 绘制主网格线条, 否则跳过此步骤
public bool DrawMajorTicks { get; set; }
value = axisBase.DrawMajorTicks
axisBase.DrawMajorTicks = value
如果 True, 绘制主勾引行, 否则跳过此步骤
public bool DrawMinorGridLines { get; set; }
value = axisBase.DrawMinorGridLines
axisBase.DrawMinorGridLines = value
如果 True, 绘制小网格线条, 否则跳过此步骤
public bool DrawMinorTicks { get; set; }
value = axisBase.DrawMinorTicks
axisBase.DrawMinorTicks = value
如果 True, 绘制小勾引行, 否则跳过此步骤
public bool FlipCoordinates { get; set; }
value = axisBase.FlipCoordinates
axisBase.FlipCoordinates = value
获取或设置一面旗,表示是否要为此轴翻转勾选和像素坐标生成, 导致轴勾和图表在轴向上翻转
protected IGridLinesPanel GridLinesPanel { get; }
value = axisBase.GridLinesPanel
将GridLinesPanel 实例从母UltrachartSurface 中取出
public IRange<double> GrowBy { get; set; }
value = axisBase.GrowBy
axisBase.GrowBy = value
获取或设置 GrowBy 系数。 e.g (0. 1, 0.2) 将增加数据范围以外的轴宽 10% (min)和 20% (最大)
public bool HasDefaultVisibleRange { get; }
value = axisBase.HasDefaultVisibleRange
获取% VisibleRange QQ 是否有默认值
public bool HasValidVisibleRange { get; }
value = axisBase.HasValidVisibleRange
获得 VisibleRange 是否有效, e.g. 是否无效, 是否为 NaN, Max 和 Min 的区别不是 0
public string Id { get; set; }
value = axisBase.Id
axisBase.Id = value
获取或设置此轴的字符串 Id。 用于关联的 & & & > IRenderableSeries > 和 & > YAxisDragModifier > 。
public bool IsAxisFlipped { get; }
value = axisBase.IsAxisFlipped
获取当前轴是否被翻转(%% e.g+%. YAAXs 在下或上方, 或 XAXs 在左或右)
public virtual bool IsCategoryAxis { get; }
value = axisBase.IsCategoryAxis
获得一个值,以表示此实例是否为分类轴 。
public bool IsCenterAxis { get; set; }
value = axisBase.IsCenterAxis
axisBase.IsCenterAxis = value
获取或设定当前轴是否应置于图表中心
public virtual bool IsHorizontalAxis { get; }
value = axisBase.IsHorizontalAxis
获取当前轴是否水平
public bool IsLabelCullingEnabled { get; set; }
value = axisBase.IsLabelCullingEnabled
axisBase.IsLabelCullingEnabled = value
获取或设置一个值, 表示标签 Culling 是否启用( 当标签重叠时) 。 @% AxisPanel%%%% incentral
public virtual bool IsLogarithmicAxis { get; }
value = axisBase.IsLogarithmicAxis
获得一个数值,以表示此实例是否为对数轴。
public virtual bool IsPolarAxis { get; }
value = axisBase.IsPolarAxis
获得一个数值,显示此实例是否为极轴 。
public bool IsPrimaryAxis { get; set; }
value = axisBase.IsPrimaryAxis
axisBase.IsPrimaryAxis = value
获取或设定当前轴是否是轴收藏中的主要轴
public bool IsStaticAxis { get; set; }
value = axisBase.IsStaticAxis
axisBase.IsStaticAxis = value
获取或设定当前轴是否为静态轴
public bool IsXAxis { get; private set; }
value = axisBase.IsXAxis
axisBase.IsXAxis = value
获取当前轴是否为 X- 轴
public ILabelProvider LabelProvider { get; set; }
value = axisBase.LabelProvider
axisBase.LabelProvider = value
获取或设置一个 & ##ILabelProvider++实例,可用于程序上覆盖文本和光标标签的格式。例参见 & ##DefaultLabelProvider++和 & ##TradeChartAxisLabelProvider+++
public IComparable MajorDelta { get; set; }
value = axisBase.MajorDelta
axisBase.MajorDelta = value
获取或设置 Delta 少校
public Style MajorGridLineStyle { get; set; }
value = axisBase.MajorGridLineStyle
axisBase.MajorGridLineStyle = value
获取或设置主要网格线样式(TargetType Line),该线适用于由此轴绘制的所有主要网格线
public Brush MajorLineStroke { get; set; }
value = axisBase.MajorLineStroke
axisBase.MajorLineStroke = value
获取或设置此轴的主要线条
public Style MajorTickLineStyle { get; set; }
value = axisBase.MajorTickLineStyle
axisBase.MajorTickLineStyle = value
获取或设置主勾选行样式(%% TargetType%%%% Line), 并应用到此轴上的所有主要勾选
public int MaxAutoTicks { get; set; }
value = axisBase.MaxAutoTicks
axisBase.MaxAutoTicks = value
获取或设置最大勾。
public IComparable MinimalZoomConstrain { get; set; }
value = axisBase.MinimalZoomConstrain
axisBase.MinimalZoomConstrain = value
获取或设置轴的 MinimalZoomConstrain。 用于设定 VisibleRange 的 Min 和 Max 之间的最小距离
public IComparable MinorDelta { get; set; }
value = axisBase.MinorDelta
axisBase.MinorDelta = value
获取或设置小三角洲
public Style MinorGridLineStyle { get; set; }
value = axisBase.MinorGridLineStyle
axisBase.MinorGridLineStyle = value
获取或设置小网格线样式(%% TargetType%%%% Line), 应用到由此轴绘制的所有小网格线
public Brush MinorLineStroke { get; set; }
value = axisBase.MinorLineStroke
axisBase.MinorLineStroke = value
获取或设置此轴的线条
public int MinorsPerMajor { get; set; }
value = axisBase.MinorsPerMajor
axisBase.MinorsPerMajor = value
获取或设定每个主勾选的 Delta 微小勾选次数
public Style MinorTickLineStyle { get; set; }
value = axisBase.MinorTickLineStyle
axisBase.MinorTickLineStyle = value
获取或设置小勾勾行样式(%% TargetType%%%% 线), 适用于此轴上的所有主要勾勾
public IAnnotationCanvas ModifierAxisCanvas { get; }
value = axisBase.ModifierAxisCanvas
获取 ModifierAxisCanvas, 可用于覆盖画布上的标记
public Orientation Orientation { get; set; }
value = axisBase.Orientation
axisBase.Orientation = value
获取或设置轴方向,%\e.g\\。水平( X轴) 或垂直( Y轴)
public IUltrachartSurface ParentSurface { get; set; }
value = axisBase.ParentSurface
axisBase.ParentSurface = value
获取或设定此轴与
protected IRenderSurface RenderSurface { get; }
value = axisBase.RenderSurface
将RenderSurface 实例从母UltrachartSurface 中取出
public UltrachartScrollbar Scrollbar { get; set; }
value = axisBase.Scrollbar
axisBase.Scrollbar = value
获取或设定轴 #% ScrollBar {}
public IServiceContainer Services { get; set; }
value = axisBase.Services
axisBase.Services = value
获取全Ultrachart中提供服务访问的 ServiceContainer 。 ServiceContainers 是一个每 UltrachartSurface 实例创建的, 并共享到周边组件, 如 AxisBase 、 BaseRenderableSeries 、 ChartModifierBase 实例。 完整的服务列表请参见 ServiceContainer 上的评论 。
StockSharp#Xaml#Charting#Visuals#Axes#IAxis#IsXAxis
获取当前轴是否为 X- 轴
StockSharp#Xaml#Charting#Visuals#IDrawable#Height
获取或设定元素的推荐高度.
返回值: 元素的高度, 在设备独立单位中(每单位1/96 第1英寸) 。 默认值为 NaN 。 此值必须等于或大于 0.0。 上方绑定信息请参见备注 。
StockSharp#Xaml#Charting#Visuals#IDrawable#Width
获取或设置元素的宽度。
返回值: 元素的宽度, 以设备独立单位(每单位1/ 96英寸) 为单位。 默认值为 NaN 。 此值必须等于或大于 0.0。 请参见上方绑定信息注释 。
public double StrokeThickness { get; set; }
value = axisBase.StrokeThickness
axisBase.StrokeThickness = value
获得或设置中风厚度.
public string TextFormatting { get; set; }
value = axisBase.TextFormatting
axisBase.TextFormatting = value
获取或设置此轴上的勾选标签的文本格式字符串
public ITickCoordinatesProvider TickCoordinatesProvider { get; set; }
value = axisBase.TickCoordinatesProvider
axisBase.TickCoordinatesProvider = value
获取或设置当前轴上的 ITickCoordinatesProvider 实例,用于将 TickProvider 实例收到的数据值转换为轴线网格线、 滴答和标签绘图的坐标 。
public Style TickLabelStyle { get; set; }
value = axisBase.TickLabelStyle
axisBase.TickLabelStyle = value
获取或设置此轴上的标签样式 。
public ITickProvider TickProvider { get; set; }
value = axisBase.TickProvider
axisBase.TickProvider = value
获取或设置当前轴上的一个 ITickProvider 实例,用于计算轴线、滴答和标签的数据值。
public Brush TickTextBrush { get; set; }
value = axisBase.TickTextBrush
axisBase.TickTextBrush = value
获取或设置用于文本标签的勾选文本刷子
public double TitleFontSize { get; set; }
value = axisBase.TitleFontSize
axisBase.TitleFontSize = value
获取或设置标题字体大小
public FontWeight TitleFontWeight { get; set; }
value = axisBase.TitleFontWeight
axisBase.TitleFontWeight = value
获取或设置轴标题字体重量
public Style TitleStyle { get; set; }
value = axisBase.TitleStyle
axisBase.TitleStyle = value
获取或设置轴标题的样式
public IRange VisibleRange { get; set; }
value = axisBase.VisibleRange
axisBase.VisibleRange = value
获取或设置轴心的VisibleRange.
public IRange VisibleRangeLimit { get; set; }
value = axisBase.VisibleRangeLimit
axisBase.VisibleRangeLimit = value
获取或设置轴的 VisibleRangeLimit。 这将用于剪接 ZoomExtents 和 AutoRange 操作中的轴线
public RangeClipMode VisibleRangeLimitMode { get; set; }
value = axisBase.VisibleRangeLimitMode
axisBase.VisibleRangeLimitMode = value
获取或设置轴的 VisibleRangeLimitMode。 此属性定义了 VisibleRangeLimit 的哪些部分将被轴使用 。
方法
public void AnimateVisibleRangeTo(IRange to, TimeSpan duration)
axisBase.AnimateVisibleRangeTo(to, duration)
将轴线的可见范围显示为指定期限的VisibleRange。另见默认持续时间为500毫秒的AnimatedVisibleRange 属性
- to
- 结束范围
- duration
- 动画的延续时间.
public virtual void AssertDataType(Type dataType)
axisBase.AssertDataType(dataType)
指定通过的类型由当前轴执行支持
- dataType
protected virtual void AssertRangeType(IRange range)
axisBase.AssertRangeType(range)
确定此轴的 IRang 类型正确
- range
- 伸张范围
protected virtual IRange CalculateDataRange()
result = axisBase.CalculateDataRange()
计算当前轴的数据范围
protected virtual TickCoordinates CalculateTicks()
result = axisBase.CalculateTicks()
被衍生类型所覆盖, 称为内部计算 MinorTicks, MajorTicks 在轴线绘制前
public abstract IRange CalculateYRange(RenderPassInfo renderPassInfo)
result = axisBase.CalculateYRange(renderPassInfo)
获得轴的对齐 VisibleRange, 并带有可选的 ZoomToFit 旗。 如果 ZoomToFit 是真的, 它会返回 DataRange 加上任何适用于轴的 GrowBy
- renderPassInfo
- 包含当前渲染传出数据 Struct
返回值: The VisibleRange of the axis
protected virtual void CoerceVisibleRange()
axisBase.CoerceVisibleRange()
当在衍生类别中被覆盖时,在应用前会根据轴值更改 VisibleRange 的值
protected virtual IRange CoerceZeroRange(IRange maximumRange)
result = axisBase.CoerceZeroRange(maximumRange)
如果当前范围为零, 则强制
- maximumRange
- 当前最大范围
protected virtual IComparable ConvertTickToDataValue(IComparable value)
result = axisBase.ConvertTickToDataValue(value)
当在衍生类中被覆盖时, 将勾选值转换为数据值。 例如, 在%\CategoryDateTimeAxis+% 中, 可以在 \\DateTimes+% 中被覆盖, 以在指数和%\DateTimes+% 之间转换 。
- value
public void DecrementSuspend()
axisBase.DecrementSuspend()
每次处置目标悬浮器时, IUpdateSuspender 都会被调用。 当最终目标悬浮器被处理后, ResumeUpdates 被调用 。
protected void DrawGridLine(IRenderContext2D renderContext, IPen2D linePen, XyDirection direction, float atPoint)
axisBase.DrawGridLine(renderContext, linePen, direction, atPoint)
在 RenderSurface 上绘制一条网格线,使用指定的样式(TargetType Line),XyDirection和整数坐标.
- renderContext
- The IRenderContext2D instance to draw to
- linePen
- 应用到网格线上的笔 (TargetType IPen2D)
- direction
- 绘制 X 或 Y 方向
- atPoint
- 要绘制的整数坐标。 如果方向是 X 方向, 被编码为 X 坐标, 否则是 Y 坐标 。
protected virtual void DrawGridLines(IRenderContext2D renderContext, TickCoordinates tickCoords)
axisBase.DrawGridLines(renderContext, tickCoords)
调用内部在轴线绘制前绘制网格线
protected virtual void DrawTickLabels(AxisCanvas canvas, TickCoordinates tickCoords, float offset)
axisBase.DrawTickLabels(canvas, tickCoords, offset)
在渲染通过时绘制勾选符和网格线
- canvas
- 画上标签的画布。
- tickCoords
- 包含所有坐标的勾和网格线的勾选coords。
- offset
public virtual string FormatCursorText(IComparable value, bool hitTest)
result = axisBase.FormatCursorText(value, hitTest)
光标的字符串格式文本, 使用 CursorTextFormatting 属性作为格式化字符串
- value
- 格式的数据值
- hitTest
- 克克击出试.
返回值: 字符串格式化数据值
public virtual string FormatText(IComparable value, string format)
result = axisBase.FormatText(value, format)
字符串格式化文本,使用 TextFormatting 属性作为格式化字符串
- value
- 格式的数据值
- format
- 复合格式字符串
返回值: 字符串格式化数据值
public virtual string FormatText(IComparable value)
result = axisBase.FormatText(value)
字符串格式化文本,使用 TextFormatting 属性作为格式化字符串
- value
- 格式的数据值
返回值: 字符串格式化数据值
public virtual double GetAxisOffset()
result = axisBase.GetAxisOffset()
返回轴相对于 RenderSurface 的偏移。用于轴垂直或水平堆放的大小写。
public virtual AxisParams GetAxisParams()
result = axisBase.GetAxisParams()
获得关于当前轴线设置的% AxisParams+% 结构信息
public Rect GetBoundsRelativeTo(IHitTestable relativeTo)
result = axisBase.GetBoundsRelativeTo(relativeTo)
获取当前 & ###HitTestable### 元素相对于另一个 & ##HitTestable#% 元素的界限
- relativeTo
- 相对之.
public virtual double GetCoordinate(IComparable value)
result = axisBase.GetCoordinate(value)
鉴于数据值, 返回轴上该值的 x 或 y 像素坐标。 此操作与 Point 正好相反 。
- value
- The DataValue as input
返回值: 与此轴对应的输入 DataValue 的像素坐标
public virtual ICoordinateCalculator<double> GetCurrentCoordinateCalculator()
result = axisBase.GetCurrentCoordinateCalculator()
以当前可见范围和轴类型为基础,为此轴获取当前 ICoordinateCalculator
public IAxisInteractivityHelper GetCurrentInteractivityHelper()
result = axisBase.GetCurrentInteractivityHelper()
返回当前 IAxisInteractivityHelper, 在当前渲染传出时有效, 可用于与轴(Scroll, Zom, Pan) 交互 。
public virtual IComparable GetDataValue(double pixelCoordinate)
result = axisBase.GetDataValue(pixelCoordinate)
将像素坐标转换成此轴的数据值。
- pixelCoordinate
public abstract IRange GetDefaultNonZeroRange()
result = axisBase.GetDefaultNonZeroRange()
返回默认的非零 IRange, 由 Ultrachart 内部调用, 将轴的 VisibleRange 重置为未定义状态
protected abstract IDeltaCalculator GetDeltaCalculator()
result = axisBase.GetDeltaCalculator()
返回一个用于计算 MajorDelta 、 MinorDelta 的数据值的 IDeltaCalculator 实例。通过衍生类型来覆盖,以便进行该轴类型的计算。
返回值: 个 IDeltaCalculator 实例
private decimal GetMajorTickIndex(double tick)
result = axisBase.GetMajorTickIndex(tick)
返回主勾选索引 e.g 值 0 有索引 #0, 0 + MajorDelta - 1, 0 + 2 * MajorDelta - 2等...
- tick
protected virtual uint GetMaxAutoTicks()
result = axisBase.GetMaxAutoTicks()
计算最大自动勾选数量, 即 QQ 1
public virtual IRange GetMaximumRange()
result = axisBase.GetMaximumRange()
获得轴的最大范围, 等于 DataRange, 包括任何应用的 GrowBy 系数
protected virtual double GetOffsetForLabels()
result = axisBase.GetOffsetForLabels()
返回轴的偏移
public IntegerRange GetPointRange()
result = axisBase.GetPointRange()
获取当前在范围的 X-数据数组的整数指数。
返回值: 目前在幅度内的 X-数据索引
public XmlSchema GetSchema()
result = axisBase.GetSchema()
返回一个 XmlSchema, 描述由 WriteXml 方法所生成、 由 ReadXml 方法所消耗的物体的 XML 表示
protected abstract List<Type> GetSupportedTypes()
result = axisBase.GetSupportedTypes()
返回当前轴设计用来工作的类型列表
public abstract IRange GetUndefinedRange()
result = axisBase.GetUndefinedRange()
返回未定义的 IRang, 由 Ultrachart 内部调用, 将轴的 VisibleRange 重置为未定义状态
public IRange GetWindowedYRange(IDictionary<string, IRange> xRanges)
result = axisBase.GetWindowedYRange(xRanges)
仅返回该轴的最大范围(通过该轴上的数据序列),基于“窗口”=“在当前视图中播放的”使用GrowBy ()
- xRanges
- 根据相应的 x 范围计算最大范围
public virtual AxisInfo HitTest(Point atPoint)
result = axisBase.HitTest(atPoint)
在轴上进行命中测试, 在特定的 x 或 y 像素坐标下返回数据值。 此操作与 IComparable 正好相反 。
- atPoint
- 与此轴对应的输入 DataValue 的像素坐标
返回值: 包含数据值和该坐标格式化数据值的 AxisInfo 结构
public virtual AxisInfo HitTest(IComparable dataValue)
result = axisBase.HitTest(dataValue)
在 AxisBase 上执行 HitTest 操作。 提供的数据用于转换为 AxisInfo struct, 包含轴信息以及格式化值
- dataValue
- 数据值.
返回值: The AxisInfo result
public void InvalidateElement()
axisBase.InvalidateElement()
同步请求元素重画自身和子 。 如果元素是可被ISuspendable 且当前为 IsSuspended(在 SuspendUpdates / ResumeUpdates 呼叫中), 则会忽略 。
protected static void InvalidateParent(DependencyObject d, DependencyPropertyChangedEventArgs e)
AxisBase.InvalidateParent(d, e)
提供% DependencyProperty+% 调用, 使父的% UltrachartSurface+% 无效
- d
- e
public abstract bool IsOfValidType(IRange range)
result = axisBase.IsOfValidType(range)
检查此轴是否不是 Null 且是否为有效类型
- range
public bool IsPointWithinBounds(Point point)
result = axisBase.IsPointWithinBounds(point)
如果点位于当前 HitTestable 元素的边界内, 返回真值
- point
- 测试点
返回值: 如果点在界限内, 则为真
public virtual bool IsValidRange(IRange range)
result = axisBase.IsValidRange(range)
检查此轴是否有效的可见范围
- range
private bool IsVisibleRangeValid()
result = axisBase.IsVisibleRangeValid()
检查 VisibleRange 是否有效, e.g. 是否无效, 不是 NaN, Max 和 Min 的区别是正数 。
public override void OnApplyTemplate()
axisBase.OnApplyTemplate()
当在衍生类中被推翻时,每当应用程序代码或内部进程称为OnApplyTemplate时,都会被引用.
public virtual void OnBeginRenderPass(RenderPassInfo renderPassInfo, IPointSeries firstPointSeries)
axisBase.OnBeginRenderPass(renderPassInfo, firstPointSeries)
传票开始前就内部打过电话
public void OnDraw(IRenderContext2D renderContext, IRenderPassData renderPassData)
axisBase.OnDraw(renderContext, renderPassData)
绘制实例时调用
- renderContext
- The IRenderContext2D used for drawing
- renderPassData
- 包含此参数和参数
protected virtual void OnDrawAxis(TickCoordinates tickCoords)
axisBase.OnDrawAxis(tickCoords)
当轴重划时调用 。
- tickCoords
protected virtual void OnPropertyChanged(string propertyName)
axisBase.OnPropertyChanged(propertyName)
提出PropertyChanged活动,作为INotifyPropertyChanged执行的一部分
- propertyName
- 财产名称.
protected virtual void OnVisibleRangeChanged(VisibleRangeChangedEventArgs args)
axisBase.OnVisibleRangeChanged(args)
Raises the VisibleRangeChanged event
- args
- 包含事件数据的 VisibleRangeChangedEventArgs
public virtual void ReadXml(XmlReader reader)
axisBase.ReadXml(reader)
从它的XML 代表生成 AxisBase 。
- reader
public void ResumeUpdates(IUpdateSuspender updateSuspender)
axisBase.ResumeUpdates(updateSuspender)
续集目标更新,计划由IUpdateSuspender调用
public void Scroll(double pixelsToScroll, ClipMode clipMode, TimeSpan duration)
axisBase.Scroll(pixelsToScroll, clipMode, duration)
以指定动画持续时间的像素数量来滚动当前 VisibleRange
- pixelsToScroll
- 从当前可见范围滚动 N 像素
- clipMode
- 定义滚动在到达轴线范围边缘时的表现。 e.g 。 ClipMode.ClipAtExtents 防止在轴线以外进行平板, ClipMode.None 允许在轴线以外进行平板
- duration
- 缩放到等宽时动画的持续时间
public void Scroll(double pixelsToScroll, ClipMode clipMode)
axisBase.Scroll(pixelsToScroll, clipMode)
以指定的像素数滚动当前 VisibleRange
- pixelsToScroll
- 从当前可见范围滚动 N 像素
- clipMode
- 定义滚动在到达轴线范围边缘时的表现。 e.g 。 ClipMode.ClipAtExtents 防止在轴线以外进行平板, ClipMode.None 允许在轴线以外进行平板
public virtual void ScrollByDataPoints(int pointAmount, TimeSpan duration)
axisBase.ScrollByDataPoints(pointAmount, duration)
通过指定数量的数据点将当前VisibleRange与指定动画持续时间相转换
- pointAmount
- 起始可见区域滚动的点数
- duration
- 缩放到等宽时动画的持续时间
public void ScrollByDataPoints(int pointAmount)
axisBase.ScrollByDataPoints(pointAmount)
通过指定数据点数将当前 VisibleRange 转换为
- pointAmount
- 起始可见范围滚动的数据点数
public virtual void ScrollTo(IRange startVisibleRange, double pixelsToScroll)
axisBase.ScrollTo(startVisibleRange, pixelsToScroll)
从开始的 IRang , 滚动到指定像素数的新范围
- startVisibleRange
- 开始可见范围
- pixelsToScroll
- 从可见的起始范围滚动 N 像素
public virtual void ScrollToWithLimit(IRange startVisibleRange, double pixelsToScroll, IRange rangeLimit)
axisBase.ScrollToWithLimit(startVisibleRange, pixelsToScroll, rangeLimit)
从开始的 IRang, 滚动到由指定像素数组成的新范围, 并设定范围限制
- startVisibleRange
- 开始可见范围
- pixelsToScroll
- 从可见的起始范围滚动 N 像素
- rangeLimit
- 范围限制。
public void SetMouseCursor(Cursor cursor)
axisBase.SetMouseCursor(cursor)
设置此轴的光标
- cursor
- 光标实例
public IUpdateSuspender SuspendUpdates()
result = axisBase.SuspendUpdates()
悬停绘制目标上的最新消息, 直至返回对象处理完毕, 此时将发出最后的绘图调用
返回值: 可支配更新悬浮器
public Point TranslatePoint(Point point, IHitTestable relativeTo)
result = axisBase.TranslatePoint(point, relativeTo)
将点相对于其他可测试元素翻译
- point
- 关键是...
- relativeTo
- 相对之.
private bool TryApplyVisibleRange(IRange newRange, IRange oldRange)
result = axisBase.TryApplyVisibleRange(newRange, oldRange)
当当前 VisibleRange 无效时, 如果两个范围无效, 尝试将其替换为., 丢出一个例外
- newRange
- 适用范围
- oldRange
- 上个 VisibleRange + 个
返回值: 表示VisibleRange是否应用的数值
private void ValidateVisibleRange(IRange range)
axisBase.ValidateVisibleRange(range)
如果 VisibleRange 类型错误, 或 VisibleRange.Min > VisibleRange.Max, 则丢出适当的例外
public virtual void WriteXml(XmlWriter writer)
axisBase.WriteXml(writer)
Converts AxisBase into its XML representation.
- writer
public void Zoom(double fromCoord, double toCoord, TimeSpan duration)
axisBase.Zoom(fromCoord, toCoord, duration)
使用新范围起步坐标和新范围起步坐标,对当前轴进行放大
- fromCoord
- 新范围的坐标以像素开头
- toCoord
- 新范围的坐标以像素为结尾
- duration
- 缩放到等宽时动画的持续时间
public void Zoom(double fromCoord, double toCoord)
axisBase.Zoom(fromCoord, toCoord)
使用新范围起步坐标和新范围起步坐标,对当前轴进行放大
- fromCoord
- 新范围的坐标以像素开头
- toCoord
- 新范围的坐标以像素为结尾
public void ZoomBy(double minFraction, double maxFraction, TimeSpan duration)
axisBase.ZoomBy(minFraction, maxFraction, duration)
以区域起始乘以区域终点乘以显示当前轴
- minFraction
- 范围开始的乘数
- maxFraction
- 射程结束的乘数
- duration
- 缩放到等宽时动画的持续时间
public void ZoomBy(double minFraction, double maxFraction)
axisBase.ZoomBy(minFraction, maxFraction)
以区域起始乘以区域终点乘以显示当前轴
- minFraction
- 范围开始的乘数
- maxFraction
- 射程结束的乘数
事件
public event EventHandler<EventArgs> DataRangeChanged
axisBase.DataRangeChanged += handler
数据范围改变时提高
public event PropertyChangedEventHandler PropertyChanged
axisBase.PropertyChanged += handler
属性改变时提高
public event EventHandler<VisibleRangeChangedEventArgs> VisibleRangeChanged
axisBase.VisibleRangeChanged += handler
更改后升起 。
字段
public static readonly DependencyProperty AnimatedVisibleRangeProperty
value = AxisBase.AnimatedVisibleRangeProperty
定义动画 VisibleRange DependencyProperty
public static readonly DependencyProperty AutoAlignVisibleRangeProperty
value = AxisBase.AutoAlignVisibleRangeProperty
定义 AutoAlignVisibleRange DependencyProperty 定义
public static readonly DependencyProperty AutoRangeProperty
value = AxisBase.AutoRangeProperty
Defines the AutoRange DependencyProperty
public static readonly DependencyProperty AutoTicksProperty
value = AxisBase.AutoTicksProperty
Defines the AutoTicks DependencyProperty
public static readonly DependencyProperty AxisAlignmentProperty
value = AxisBase.AxisAlignmentProperty
定义 AxisAlignment DependencyProperty 定义
public static readonly DependencyProperty AxisBandsFillProperty
value = AxisBase.AxisBandsFillProperty
定义 AxisBandsFill DependencyProperty 定义
public static readonly DependencyProperty AxisModeProperty
value = AxisBase.AxisModeProperty
Defines the AxisMode DependencyProperty
public static readonly DependencyProperty AxisTitleProperty
value = AxisBase.AxisTitleProperty
Defines the AxisTitle DependencyProperty
public static readonly DependencyProperty CursorTextFormattingProperty
value = AxisBase.CursorTextFormattingProperty
定义 CursorTextFormatting DependencyProperty 定义
public static readonly DependencyProperty DefaultLabelProviderProperty
value = AxisBase.DefaultLabelProviderProperty
定义 DefaultFormatter DependencyProperty 定义
public static readonly DependencyProperty DrawLabelsProperty
value = AxisBase.DrawLabelsProperty
定义 DrawLabels DependencyProperty 定义
public static readonly DependencyProperty DrawMajorBandsProperty
value = AxisBase.DrawMajorBandsProperty
定义 DrawMajorBands DependencyProperty 定义
public static readonly DependencyProperty DrawMajorGridLinesProperty
value = AxisBase.DrawMajorGridLinesProperty
定义 DrawMajorGridLines DependencyProperty 定义
public static readonly DependencyProperty DrawMajorTicksProperty
value = AxisBase.DrawMajorTicksProperty
定义 DrawMajorTicks DependencyProperty 定义
public static readonly DependencyProperty DrawMinorGridLinesProperty
value = AxisBase.DrawMinorGridLinesProperty
定义 DrawMinorGridLines DependencyProperty 定义
public static readonly DependencyProperty DrawMinorTicksProperty
value = AxisBase.DrawMinorTicksProperty
定义 DrawMinorTicks DependencyProperty 定义
public static readonly DependencyProperty FlipCoordinatesProperty
value = AxisBase.FlipCoordinatesProperty
定义 FlipCoordinates DependencyProperty 定义
public static readonly DependencyProperty GrowByProperty
value = AxisBase.GrowByProperty
Defines the GrowBy DependencyProperty
public static readonly DependencyProperty IdProperty
value = AxisBase.IdProperty
Defines the Id DependencyProperty
public static readonly DependencyProperty IsCenterAxisProperty
value = AxisBase.IsCenterAxisProperty
定义 IsCenterAxis DependencyProperty 定义
public static readonly DependencyProperty IsLabelCullingEnabledProperty
value = AxisBase.IsLabelCullingEnabledProperty
IsLabelCullingEnabled DependencyProperty号机车
public static readonly DependencyProperty IsPrimaryAxisProperty
value = AxisBase.IsPrimaryAxisProperty
定义 IsPrimaryAxis DependencyProperty 定义
public static readonly DependencyProperty IsStaticAxisProperty
value = AxisBase.IsStaticAxisProperty
定义 IsStaticAxis DependencyProperty 定义
public static readonly DependencyProperty LabelProviderProperty
value = AxisBase.LabelProviderProperty
定义 LabelFormatter DependencyProperty 定义
public static readonly DependencyProperty MajorDeltaProperty
value = AxisBase.MajorDeltaProperty
定义 MajorDelta DependencyProperty 定义
public static readonly DependencyProperty MajorGridLineStyleProperty
value = AxisBase.MajorGridLineStyleProperty
定义 MajorGridLineStyle DependencyProperty 定义
public static readonly DependencyProperty MajorTickLineStyleProperty
value = AxisBase.MajorTickLineStyleProperty
定义 MajorTickLineStyle DependencyProperty 定义
public static readonly DependencyProperty MaxAutoTicksProperty
value = AxisBase.MaxAutoTicksProperty
定义 MaxAutoTicks DependencyProperty 定义
protected const int MinDistanceToBounds
value = AxisBase.MinDistanceToBounds
定义到图边缘到 Cull 轴标签的最小距离
public static readonly DependencyProperty MinimalZoomConstrainProperty
value = AxisBase.MinimalZoomConstrainProperty
定义 MinimalZoomConstrain DependencyProperty 定义
public static readonly DependencyProperty MinorDeltaProperty
value = AxisBase.MinorDeltaProperty
定义 MinorDelta DependencyProperty 定义
public static readonly DependencyProperty MinorGridLineStyleProperty
value = AxisBase.MinorGridLineStyleProperty
定义 MinorGridLineStyle DependencyProperty 定义
public static readonly DependencyProperty MinorsPerMajorProperty
value = AxisBase.MinorsPerMajorProperty
定义 MinorDelta DependencyProperty 定义
public static readonly DependencyProperty MinorTickLineStyleProperty
value = AxisBase.MinorTickLineStyleProperty
定义 MinorTickLineStyle DependencyProperty 定义
public static readonly DependencyProperty OrientationProperty
value = AxisBase.OrientationProperty
定义方向 DependencyProperty
public static readonly DependencyProperty ScrollbarProperty
value = AxisBase.ScrollbarProperty
定义轴 {}ScrollBar}}
public static readonly DependencyProperty StrokeThicknessProperty
value = AxisBase.StrokeThicknessProperty
定义 StrokeThickness DependencyProperty 定义
public static readonly DependencyProperty TextFormattingProperty
value = AxisBase.TextFormattingProperty
定义 TextFormatting DependencyProperty 定义
public static readonly DependencyProperty TickCoordinatesProviderProperty
value = AxisBase.TickCoordinatesProviderProperty
定义 TickCoordinatesProvider DependencyProperty 定义
public static readonly DependencyProperty TickLabelStyleProperty
value = AxisBase.TickLabelStyleProperty
Defines the AutoTicks DependencyProperty
public static readonly DependencyProperty TickProviderProperty
value = AxisBase.TickProviderProperty
定义 TickProvider DependencyProperty 定义
public static readonly DependencyProperty TickTextBrushProperty
value = AxisBase.TickTextBrushProperty
定义 TickTextBrush DependencyProperty 定义
public static readonly DependencyProperty TitleFontSizeProperty
value = AxisBase.TitleFontSizeProperty
定义 TitleFontWeight DependencyProperty 定义
public static readonly DependencyProperty TitleFontWeightProperty
value = AxisBase.TitleFontWeightProperty
定义 TitleFontWeight DependencyProperty 定义
public static readonly DependencyProperty TitleStyleProperty
value = AxisBase.TitleStyleProperty
定义 TitleStyle DependencyProperty 定义
public static readonly DependencyProperty VisibleRangeLimitModeProperty
value = AxisBase.VisibleRangeLimitModeProperty
定义 VisibleRangeLimitMode DependencyProperty 定义
public static readonly DependencyProperty VisibleRangeLimitProperty
value = AxisBase.VisibleRangeLimitProperty
定义 VisibleRangeLimit DependencyProperty 定义
public static readonly DependencyProperty VisibleRangePointProperty
value = AxisBase.VisibleRangePointProperty
定义 VisibleRangePoint DependencyProperty 定义
public static readonly DependencyProperty VisibleRangeProperty
value = AxisBase.VisibleRangeProperty
定义 VisibleRange DependencyProperty 定义
protected const double ZeroRangeGrowBy
value = AxisBase.ZeroRangeGrowBy
得到GrowBy Min和Max,如果VisibleRange.Min == VisibleRAnge.Max,则适用于VisibleRange
protected ICoordinateCalculator<double> _currentCoordinateCalculator
value = axisBase._currentCoordinateCalculator
本次渲染的CoordinateCalculator 流传
protected IAxisInteractivityHelper _currentInteractivityHelper
value = axisBase._currentInteractivityHelper
本次渲染的InteractivityHelper 流传