BasePointMarker
比特玛普-接力点-马克斯的基类,是BaseRenderableSeries上每个数据点所绘制的小型标记
继承自: ContentControl
实现: IPointMarker
构造函数
protected BasePointMarker()
basePointMarker = BasePointMarker()
初始化了 & ##BasePointMarker+# 类的新实例 。
属性
public bool AntiAliasing { get; set; }
value = basePointMarker.AntiAliasing
basePointMarker.AntiAliasing = value
获取或设置% AntiAliasing {} 属性, 绘制中键时使用该属性
public static bool EnableMultithreadedDrawing { get; set; }
value = BasePointMarker.EnableMultithreadedDrawing
BasePointMarker.EnableMultithreadedDrawing = value
仅限 Prototype: 启用 MultiThreaded 绘图 某些 BasePointMarker 衍生类型
public Color Fill { get; set; }
value = basePointMarker.Fill
basePointMarker.Fill = value
获取或设置 & #% PointMarker\\\\ 的固态颜色 。 可能透明以忽略
public ControlTemplate PointMarkerTemplate { get; set; }
value = basePointMarker.PointMarkerTemplate
basePointMarker.PointMarkerTemplate = value
获取或设置 PointMarker ControlTemplate, 定义了要在该系列的每个数据点上渲染的点标可视性
public Color Stroke { get; set; }
value = basePointMarker.Stroke
basePointMarker.Stroke = value
获取或设置 & ###PointMarker\\\的弦( 大纲)。 可能透明可忽略
public double StrokeThickness { get; set; }
value = basePointMarker.StrokeThickness
basePointMarker.StrokeThickness = value
获取或设置 PointMarker中风的StrokeThickness。
方法
public virtual void Begin(IRenderContext2D context, IPen2D defaultPen, IBrush2D defaultBrush)
basePointMarker.Begin(context, defaultPen, defaultBrush)
当批量绘图操作即将开始时调用。 所有后续绘图操作的宽度、高度、成像文字和笔、刷子都是一样的
public virtual void Dispose()
basePointMarker.Dispose()
当填充或弦乐被更改时, 将处置任何缓存资源 e.g 。 任何缓存的笔或刷子也会被处理
public virtual void Draw(IRenderContext2D context, IEnumerable<Point> centers)
basePointMarker.Draw(context, centers)
将 PointMarker 显示在与填充值和弦值相接的每个点上。每个点都是PointMarker 中心的一个坐标 。
- context
- 画的也一样
- centers
- 将点标记成点的集合
protected abstract void DrawInternal(IRenderContext2D context, double x, double y, IPen2D pen, IBrush2D brush)
basePointMarker.DrawInternal(context, x, y, pen, brush)
当在衍生类中被覆盖时, 绘制指定 x,y 像素坐标的点标记
- context
- The RenderContext to draw with
- x
- 绘制的x坐标
- y
- 绘制于
- pen
- 默认弦笔( 如果当前笔未设定)
- brush
- 默认填充刷 (如果当前刷子没有设置)
protected abstract void DrawInternal(IRenderContext2D context, IEnumerable<Point> centers, IPen2D pen, IBrush2D brush)
basePointMarker.DrawInternal(context, centers, pen, brush)
当在衍生类中被覆盖时, 绘制指定收藏点中心时的点标记
- context
- The RenderContext to draw with
- centers
- 点标记的中心
- pen
- 默认弦笔( 如果当前笔未设定)
- brush
- 默认填充刷 (如果当前刷子没有设置)
protected virtual void OnPropertyChanged(DependencyObject d, DependencyPropertyChangedEventArgs e)
basePointMarker.OnPropertyChanged(d, e)
当任何% DependencyProperty+% 值在% BasePointMarker+% 的衍生类上发生改变时, 应该调用
- d
- 发送者
- e
- 论点
字段
public static readonly DependencyProperty AntiAliasingProperty
value = BasePointMarker.AntiAliasingProperty
定义 AntiAliasing DependencyProperty 定义
public static readonly DependencyProperty FillProperty
value = BasePointMarker.FillProperty
Defines the Fill DependencyProperty
public static readonly DependencyProperty PointMarkerTemplateProperty
value = BasePointMarker.PointMarkerTemplateProperty
定义 PointMarkerTemplate DependencyProperty 定义
public static readonly DependencyProperty StrokeProperty
value = BasePointMarker.StrokeProperty
Defines the Stroke DependencyProperty
public static readonly DependencyProperty StrokeThicknessProperty
value = BasePointMarker.StrokeThicknessProperty
定义 StrokeThickness DependencyProperty 定义