AxisPanel
Un panel que proporciona un mapa de bits y etiquetas de lienzo para uso en el eje dentro de Ultrachart
Hereda de: Panel
Implementa: IAxisPanel, INotifyPropertyChanged
Propiedades
public Action<AxisCanvas> AddLabels { get; set; }
value = axisPanel.AddLabels
axisPanel.AddLabels = value
Utilizado internamente. Especifica un método que se utiliza para llenar el panel con etiquetas de garrapata.
public AxisAlignment AxisAlignment { get; set; }
value = axisPanel.AxisAlignment
axisPanel.AxisAlignment = value
Obtiene o establece la alineación del eje.
public bool DrawLabels { get; set; }
value = axisPanel.DrawLabels
axisPanel.DrawLabels = value
Obtiene o establece un valor indicando si este panel dibuja etiquetas
public bool DrawMajorTicks { get; set; }
value = axisPanel.DrawMajorTicks
axisPanel.DrawMajorTicks = value
Obtiene o establece un valor indicando si este panel dibuja las garrapatas principales
public bool DrawMinorTicks { get; set; }
value = axisPanel.DrawMinorTicks
axisPanel.DrawMinorTicks = value
Obtiene o establece un valor indicando si este panel dibuja garrapatas menores
public bool IsHorizontalAxis { get; }
value = axisPanel.IsHorizontalAxis
Obtiene un valor indicando si este pabellón es eje horizontal.
public bool IsLabelCullingEnabled { get; set; }
value = axisPanel.IsLabelCullingEnabled
axisPanel.IsLabelCullingEnabled = value
Obtiene o establece un valor indicando si Label Culling está habilitado (cuando las etiquetas se superponen) en este ejemplo AxisPanel
public Thickness LabelToTickIndent { get; }
value = axisPanel.LabelToTickIndent
Consigue que la etiqueta se haga la indentidad.
public Style MajorTickLineStyle { get; set; }
value = axisPanel.MajorTickLineStyle
axisPanel.MajorTickLineStyle = value
Consigue o establece el estilo de línea de garrapatas principal.
public double MajorTickSize { get; private set; }
value = axisPanel.MajorTickSize
axisPanel.MajorTickSize = value
Tiene el tamaño de una garrapata mayor.
public Style MinorTickLineStyle { get; set; }
value = axisPanel.MinorTickLineStyle
axisPanel.MinorTickLineStyle = value
Consigue o establece el estilo de línea de garrapata menor.
public double MinorTickSize { get; private set; }
value = axisPanel.MinorTickSize
axisPanel.MinorTickSize = value
Tiene el tamaño de una garrapata menor.
Métodos
public void AddTickLabels(Action<AxisCanvas> addOnCanvas)
axisPanel.AddTickLabels(addOnCanvas)
Dibuja las etiquetas de garrapata.
protected override Size ArrangeOverride(Size finalSize)
result = axisPanel.ArrangeOverride(finalSize)
Realiza el pase de arreglos a AxisPanel.
private void DrawTick(IRenderContext2D renderContext, IPen2D tickPen, float coord, float offset, double tickSize)
axisPanel.DrawTick(renderContext, tickPen, coord, offset, tickSize)
Dibuja una sola garrapata en el eje, utilizando la bolígrafo especificada (TargetTypeIPen2D), XyDirection e integer coordinate.
- renderContext
- El lienzo que dibujar.
- tickPen
- El bolígrafo (TargetType IPen2D) para solicitar la línea de garrapatas
- coord
- La coordenadas entero a dibujar. Si la dirección es XDirección, el coodinado es un X-coordinado, de lo contrario es un Y-coordinado
- offset
- tickSize
- El tamaño de la garrapata
protected virtual void DrawTicks(IRenderContext2D renderContext, Style tickStyle, double tickSize, float[] tickCoords, float offset)
axisPanel.DrawTicks(renderContext, tickStyle, tickSize, tickCoords, offset)
Dibuja garrapatas en el bitmap del eje
- renderContext
- tickStyle
- tickSize
- tickCoords
- offset
public virtual void DrawTicks(TickCoordinates tickCoords, float offset)
axisPanel.DrawTicks(tickCoords, offset)
Dibuja garrapatas en el eje
- tickCoords
- offset
protected virtual Size GetRenderContextSize()
result = axisPanel.GetRenderContextSize()
Consigue tamaño de imagen para el dibujo de garrapatas
protected override Size MeasureOverride(Size availableSize)
result = axisPanel.MeasureOverride(availableSize)
Realiza el paso de la medida AxisPanel.
private double MeasureTickSize(Style lineStyle)
result = axisPanel.MeasureTickSize(lineStyle)
Mide el tamaño requerido para dibujar marcas de garrapatas en el eje
protected virtual void OnPropertyChanged(string propertyName)
axisPanel.OnPropertyChanged(propertyName)
INotifyPropertyChanged@
- propertyName
- Nombre de la propiedad.
Eventos
public event PropertyChangedEventHandler PropertyChanged
axisPanel.PropertyChanged += handler
Ocurre cuando un valor de propiedad cambia.
Campos
public static readonly DependencyProperty AxisAlignmentProperty
value = AxisPanel.AxisAlignmentProperty
La propiedad de alineación del eje
public static readonly DependencyProperty AxisLabelToTickIndentProperty
value = AxisPanel.AxisLabelToTickIndentProperty
El establecimiento AxisLabelToTickIndent
public static readonly DependencyProperty DrawLabelsProperty
value = AxisPanel.DrawLabelsProperty
La propiedad de etiquetas de sorteo
public static readonly DependencyProperty DrawMajorTicksProperty
value = AxisPanel.DrawMajorTicksProperty
El sorteo principal garrapatas propiedad
public static readonly DependencyProperty DrawMinorTicksProperty
value = AxisPanel.DrawMinorTicksProperty
El sorteo menor garrapatas propiedad
public static readonly DependencyProperty IsLabelCullingEnabledProperty
value = AxisPanel.IsLabelCullingEnabledProperty
El IsLabelCullingEnabled DependencyProperty
public static readonly DependencyProperty MajorTickLineStyleProperty
value = AxisPanel.MajorTickLineStyleProperty
La propiedad principal de estilo de línea de garrapatas
public static readonly DependencyProperty MinorTickLineStyleProperty
value = AxisPanel.MinorTickLineStyleProperty
La propiedad de estilo de línea de garrapata menor