Skip to end of metadata
Go to start of metadata

Represents a chart view control.

Definition

public class ChartView : FrameLayout, IChartView

Summary

The following table summarizes the members exposed in this class.

Public Constructors

ChartView Constructor(Context) Initializes a new instance of the ChartView class.
ChartView Constructor(Context, IAttributeSet) Initializes a new instance of the ChartView class.

Public Properties

Area Gets or sets the area.
AvailableHeight Gets or sets the height of the available.
AvailableWidth Gets or sets the width of the available.
DependentAxisAppearance Gets or sets the dependent axis appearance.
IndependentAxisAppearance Gets or sets the independent axis appearance.
Legend Gets or sets the legend.
Margin Gets or sets the margin.
ScaledDensity Gets or sets the scaled density.
Title Gets or sets the title.
UsePercentageValue Gets or sets a value indicating whether [use percentage value].

Public Methods

GetLegendAreaHeight() Gets the height of the legend area.
GetMaxTextWidthInLegend() Gets the maximum text width in legend.
GetTextAscent(Font) Gets the text ascent.
GetTextHeight(Font) Gets the height of the text.
GetTextWidth(string, Font) Gets the width of the text.
Invalidate() Invalidate the whole view.

Protected Methods

OnLayout(bool, int, int, int, int) Called from layout when this view should assign a size and position to each of its children.

Public Constructors

public ChartView(Context context)

Initializes a new instance of the ChartView class.

Parameters

context The context.

public ChartView(Context context, IAttributeSet attrs)

Initializes a new instance of the ChartView class.

Parameters

context The context.
attrs The attrs.

Public Properties

public Rectangle Area { get; set; }

Gets or sets the area.

Remarks

Used for internal mechanism.

public int AvailableHeight { get; set; }

Gets or sets the height of the available.

Remarks

Used for internal mechanism.

public int AvailableWidth { get; set; }

Gets or sets the width of the available.

Remarks

Used for internal mechanism.

public Axis DependentAxisAppearance { get; set; }

Gets or sets the dependent axis appearance.

Remarks

Used for internal mechanism.

public Axis IndependentAxisAppearance { get; set; }

Gets or sets the independent axis appearance.

Remarks

Used for internal mechanism.

public Legend Legend { get; set; }

Gets or sets the legend.

Remarks

Used for internal mechanism.

public Thickness Margin { get; set; }

Gets or sets the margin.

Remarks

Used for internal mechanism.

public float ScaledDensity { get; set; }

Gets or sets the scaled density.

Remarks

Used for internal mechanism.

public Title Title { get; set; }

Gets or sets the title.

Remarks

Used for internal mechanism.

public bool UsePercentageValue { get; set; }

Gets or sets a value indicating whether [use percentage value].

Remarks

Used for internal mechanism.

Public Methods

public int GetLegendAreaHeight()

Gets the height of the legend area.

Remarks

Used for internal mechanism.

Return Types

Height of the legend area.

public int GetMaxTextWidthInLegend()

Gets the maximum text width in legend.

Remarks

Used for internal mechanism.

Return Types

Maximum text width in legend.

public int GetTextAscent(Font font)

Gets the text ascent.

Remarks

Used for internal mechanism.

Parameters

font The font.

Return Types

Ascent of the text.

public int GetTextHeight(Font font)

Gets the height of the text.

Remarks

Used for internal mechanism.

Parameters

font The font.

Return Types

Height of the text.

public int GetTextWidth(string text, Font font)

Gets the width of the text.

Remarks

Used for internal mechanism.

Parameters

text The text.
font The font.

Return Types

Width of the text.

public void Invalidate()

Invalidate the whole view.

Remarks

Invalidate the whole view. If the view is visible, will be called at some point in the future. This must be called from a UI thread. To call from a non-UI thread, call . <format type="text/html"> <a href="http://developer.android.com/reference/android/view/View.html#invalidate()" target="_blank">[Android Documentation]</a> </format>

Protected Methods

protected void OnLayout(bool changed, int left, int top, int right, int bottom)

Called from layout when this view should assign a size and position to each of its children.

Remarks

Called from layout when this view should assign a size and position to each of its children. Derived classes with children should override this method and call layout on each of their children. <format type="text/html"> <a href="http://developer.android.com/reference/android/widget/FrameLayout.html#onLayout(boolean, int, int, int, int)" target="_blank">[Android Documentation]</a> </format>

Parameters

changed This is a new size or position for this view
left Left position, relative to parent
top Top position, relative to parent
right Right position, relative to parent
bottom Bottom position, relative to parent
  • No labels