AxisPanel

StockSharp.Xaml.Charting.Themes

Um painel que fornece uma Tela de Bitmap e Etiquetas para uso no Axis dentro do Ultrachart

Herda de: Panel

Implementa: IAxisPanel, INotifyPropertyChanged

Propriedades

AddLabels
public Action<AxisCanvas> AddLabels { get; set; }
value = axisPanel.AddLabels
axisPanel.AddLabels = value

Usado internamente. Especifica um método que é usado para preencher o painel com etiquetas.

AxisAlignment
public AxisAlignment AxisAlignment { get; set; }
value = axisPanel.AxisAlignment
axisPanel.AxisAlignment = value

Obtém ou define o alinhamento do eixo.

DrawLabels
public bool DrawLabels { get; set; }
value = axisPanel.DrawLabels
axisPanel.DrawLabels = value

Obtém ou define um valor indicando se este painel desenha rótulos

DrawMajorTicks
public bool DrawMajorTicks { get; set; }
value = axisPanel.DrawMajorTicks
axisPanel.DrawMajorTicks = value

Obtém ou define um valor indicando se este painel desenha as principais marcações

DrawMinorTicks
public bool DrawMinorTicks { get; set; }
value = axisPanel.DrawMinorTicks
axisPanel.DrawMinorTicks = value

Obtém ou define um valor indicando se este painel desenha as marcações Menores

IsHorizontalAxis
public bool IsHorizontalAxis { get; }
value = axisPanel.IsHorizontalAxis

Obtém um valor indicando se este pabel é um eixo horizontal.

IsLabelCullingEnabled
public bool IsLabelCullingEnabled { get; set; }
value = axisPanel.IsLabelCullingEnabled
axisPanel.IsLabelCullingEnabled = value

Obtém ou define um valor indicando se o Culling de Etiquetas está activo (quando as etiquetas se sobrepõem) nesta instância AxisPanel

LabelToTickIndent
public Thickness LabelToTickIndent { get; }
value = axisPanel.LabelToTickIndent

Faz com que o rótulo marque o travessão.

MajorTickLineStyle
public Style MajorTickLineStyle { get; set; }
value = axisPanel.MajorTickLineStyle
axisPanel.MajorTickLineStyle = value

Obtém ou define o estilo principal da linha de tique.

MajorTickSize
public double MajorTickSize { get; private set; }
value = axisPanel.MajorTickSize
axisPanel.MajorTickSize = value

Fica do tamanho de um carrapato.

MinorTickLineStyle
public Style MinorTickLineStyle { get; set; }
value = axisPanel.MinorTickLineStyle
axisPanel.MinorTickLineStyle = value

Obtém ou define o estilo de linha de tique menor.

MinorTickSize
public double MinorTickSize { get; private set; }
value = axisPanel.MinorTickSize
axisPanel.MinorTickSize = value

Fica do tamanho de um carrapato menor.

Métodos

AddTickLabels
public void AddTickLabels(Action<AxisCanvas> addOnCanvas)
axisPanel.AddTickLabels(addOnCanvas)

Desenha as etiquetas de marcação.

ArrangeOverride
protected override Size ArrangeOverride(Size finalSize)
result = axisPanel.ArrangeOverride(finalSize)

Realiza o passe de organização em AxisPanel.

ClearLabels
public void ClearLabels()
axisPanel.ClearLabels()

Limpa o AxisPanel

DrawTick
private void DrawTick(IRenderContext2D renderContext, IPen2D tickPen, float coord, float offset, double tickSize)
axisPanel.DrawTick(renderContext, tickPen, coord, offset, tickSize)

Desenha um tick único no eixo, usando a caneta especificada (TargetType IPen2D), XyDirection e coordenadas inteiras.

renderContext
A tela para desenhar.
tickPen
A caneta (TargetType IPen2D) a aplicar à linha de carrapatos
coord
A coordenada inteira a desenhar. Se a direcção for a XDirection, o coodinate é uma coordenada X, caso contrário é uma coordenada Y
offset
tickSize
O tamanho do tique
DrawTicks
protected virtual void DrawTicks(IRenderContext2D renderContext, Style tickStyle, double tickSize, float[] tickCoords, float offset)
axisPanel.DrawTicks(renderContext, tickStyle, tickSize, tickCoords, offset)

Desenha os tiques no mapa de bits do eixo

renderContext
tickStyle
tickSize
tickCoords
offset
DrawTicks
public virtual void DrawTicks(TickCoordinates tickCoords, float offset)
axisPanel.DrawTicks(tickCoords, offset)

Desenha os tiques no eixo

tickCoords
offset
GetRenderContextSize
protected virtual Size GetRenderContextSize()
result = axisPanel.GetRenderContextSize()

Obtém tamanho da imagem para desenhar os tiques

MeasureOverride
protected override Size MeasureOverride(Size availableSize)
result = axisPanel.MeasureOverride(availableSize)

Realiza a medida passar em AxisPanel.

MeasureTickSize
private double MeasureTickSize(Style lineStyle)
result = axisPanel.MeasureTickSize(lineStyle)

Mede o tamanho necessário para desenhar marcas de carrapatos no eixo

OnPropertyChanged
protected virtual void OnPropertyChanged(string propertyName)
axisPanel.OnPropertyChanged(propertyName)

INotifyPropertyChanged implementation

propertyName
Nome da propriedade.

Eventos

PropertyChanged
public event PropertyChangedEventHandler PropertyChanged
axisPanel.PropertyChanged += handler

Ocorre quando um valor de propriedade muda.

Campos

AxisAlignmentProperty
public static readonly DependencyProperty AxisAlignmentProperty
value = AxisPanel.AxisAlignmentProperty

A propriedade de alinhamento do eixo

AxisLabelToTickIndentProperty
public static readonly DependencyProperty AxisLabelToTickIndentProperty
value = AxisPanel.AxisLabelToTickIndentProperty

A propriedade AxisLabelToTickIndent

DrawLabelsProperty
public static readonly DependencyProperty DrawLabelsProperty
value = AxisPanel.DrawLabelsProperty

A propriedade de desenhar rótulos

DrawMajorTicksProperty
public static readonly DependencyProperty DrawMajorTicksProperty
value = AxisPanel.DrawMajorTicksProperty

A propriedade de traços principais do sorteio

DrawMinorTicksProperty
public static readonly DependencyProperty DrawMinorTicksProperty
value = AxisPanel.DrawMinorTicksProperty

A propriedade de traços de menor desenho

IsLabelCullingEnabledProperty
public static readonly DependencyProperty IsLabelCullingEnabledProperty
value = AxisPanel.IsLabelCullingEnabledProperty

A IsLabelCullingEnabled DependencyProperty

MajorTickLineStyleProperty
public static readonly DependencyProperty MajorTickLineStyleProperty
value = AxisPanel.MajorTickLineStyleProperty

A principal propriedade de estilo de linha de tiquetaque

MinorTickLineStyleProperty
public static readonly DependencyProperty MinorTickLineStyleProperty
value = AxisPanel.MinorTickLineStyleProperty

A propriedade de estilo de linha de tique menor