AxisPanel
Ein Panel, das eine Bitmap und ein Labels Canvas zur Verwendung auf Axis in Ultrachart bereitstellt
Erbt von: Panel
Implementiert: IAxisPanel, INotifyPropertyChanged
Eigenschaften
public Action<AxisCanvas> AddLabels { get; set; }
value = axisPanel.AddLabels
axisPanel.AddLabels = value
Intern verwendet: Gibt ein Verfahren an, mit dem das Panel mit Tick-Etiketten gefüllt wird.
public AxisAlignment AxisAlignment { get; set; }
value = axisPanel.AxisAlignment
axisPanel.AxisAlignment = value
Bekommt oder setzt die Achsenausrichtung.
public bool DrawLabels { get; set; }
value = axisPanel.DrawLabels
axisPanel.DrawLabels = value
Bekommt oder legt einen Wert fest, der angibt, ob dieses Panel Etiketten zeichnet
public bool DrawMajorTicks { get; set; }
value = axisPanel.DrawMajorTicks
axisPanel.DrawMajorTicks = value
Bekommt oder setzt einen Wert, der angibt, ob dieses Panel Major tickt
public bool DrawMinorTicks { get; set; }
value = axisPanel.DrawMinorTicks
axisPanel.DrawMinorTicks = value
Bekommt oder setzt einen Wert, der angibt, ob dieses Panel Minor ticks zeichnet
public bool IsHorizontalAxis { get; }
value = axisPanel.IsHorizontalAxis
Erhält einen Wert, der angibt, ob dieses Pabel eine horizontale Achse ist.
public bool IsLabelCullingEnabled { get; set; }
value = axisPanel.IsLabelCullingEnabled
axisPanel.IsLabelCullingEnabled = value
Bekommt oder legt einen Wert fest, der angibt, ob Label Culling aktiviert ist (wenn sich Labels überschneiden) in dieser AxisPanel Instanz
public Thickness LabelToTickIndent { get; }
value = axisPanel.LabelToTickIndent
Das Etikett kreuzt den Einschnitt an.
public Style MajorTickLineStyle { get; set; }
value = axisPanel.MajorTickLineStyle
axisPanel.MajorTickLineStyle = value
Bekommt oder setzt den Haupt-Tick-Linien-Stil.
public double MajorTickSize { get; private set; }
value = axisPanel.MajorTickSize
axisPanel.MajorTickSize = value
Bekommt die Größe eines großen Ticks.
public Style MinorTickLineStyle { get; set; }
value = axisPanel.MinorTickLineStyle
axisPanel.MinorTickLineStyle = value
Bekommt oder setzt den Moll Tick Line Style.
public double MinorTickSize { get; private set; }
value = axisPanel.MinorTickSize
axisPanel.MinorTickSize = value
Bekommt die Größe eines kleinen Ticks.
Methoden
public void AddTickLabels(Action<AxisCanvas> addOnCanvas)
axisPanel.AddTickLabels(addOnCanvas)
Zeichnet die Tick-Etiketten.
protected override Size ArrangeOverride(Size finalSize)
result = axisPanel.ArrangeOverride(finalSize)
Führt den Arrangieren Pass auf AxisPanel.
private void DrawTick(IRenderContext2D renderContext, IPen2D tickPen, float coord, float offset, double tickSize)
axisPanel.DrawTick(renderContext, tickPen, coord, offset, tickSize)
Zeichnet ein einzelnes Häkchen auf der Achse mit dem angegebenen Stift (TargetTypeIPen2D), XyDirection und der Ganzzahlkoordinate.
- renderContext
- Die Leinwand, auf die man sich stützen kann.
- tickPen
- Der Stift (TargetTypeIPen2D) für die Tick-Linie
- coord
- Wenn die Richtung XDirection ist, ist das Coodinat eine X-Koordinate, andernfalls ist es eine Y-Koordinate.
- offset
- tickSize
- Die Größe der Zecke
protected virtual void DrawTicks(IRenderContext2D renderContext, Style tickStyle, double tickSize, float[] tickCoords, float offset)
axisPanel.DrawTicks(renderContext, tickStyle, tickSize, tickCoords, offset)
Zeichnet Zecken auf Achse Bitmap
- renderContext
- tickStyle
- tickSize
- tickCoords
- offset
public virtual void DrawTicks(TickCoordinates tickCoords, float offset)
axisPanel.DrawTicks(tickCoords, offset)
Zeichnet Zecken auf der Achse
- tickCoords
- offset
protected virtual Size GetRenderContextSize()
result = axisPanel.GetRenderContextSize()
Bekommt Größe des Bildes für Ticks Zeichnung
protected override Size MeasureOverride(Size availableSize)
result = axisPanel.MeasureOverride(availableSize)
Führt die Maßnahme übergeben auf AxisPanel.
private double MeasureTickSize(Style lineStyle)
result = axisPanel.MeasureTickSize(lineStyle)
misst die Größe, die erforderlich ist, um Ticks auf der Achse zu zeichnen
protected virtual void OnPropertyChanged(string propertyName)
axisPanel.OnPropertyChanged(propertyName)
INotifyPropertyChanged@ Implementierung
- propertyName
- Name der Immobilie.
Ereignisse
public event PropertyChangedEventHandler PropertyChanged
axisPanel.PropertyChanged += handler
Tritt auf, wenn sich ein Eigenschaftswert ändert.
Felder
public static readonly DependencyProperty AxisAlignmentProperty
value = AxisPanel.AxisAlignmentProperty
Die Achsausrichtungseigenschaft
public static readonly DependencyProperty AxisLabelToTickIndentProperty
value = AxisPanel.AxisLabelToTickIndentProperty
Die AxisLabelToTickIndent-Eigenschaft
public static readonly DependencyProperty DrawLabelsProperty
value = AxisPanel.DrawLabelsProperty
Die Eigenschaft der Draw Labels
public static readonly DependencyProperty DrawMajorTicksProperty
value = AxisPanel.DrawMajorTicksProperty
Die Eigenschaft der Draw Major Ticks
public static readonly DependencyProperty DrawMinorTicksProperty
value = AxisPanel.DrawMinorTicksProperty
Die Eigenschaft Draw Minor Ticks
public static readonly DependencyProperty IsLabelCullingEnabledProperty
value = AxisPanel.IsLabelCullingEnabledProperty
Die IsLabelCullingEnabled DependencyProperty
public static readonly DependencyProperty MajorTickLineStyleProperty
value = AxisPanel.MajorTickLineStyleProperty
Die Haupt Tick Line Style Eigenschaft
public static readonly DependencyProperty MinorTickLineStyleProperty
value = AxisPanel.MinorTickLineStyleProperty
Die Minor Tick Line Style Eigenschaft