Class ChartSegment
Inheritance
System.Object
ChartSegment
Namespace: Com.Syncfusion.Charts
Assembly: Syncfusion.SfChart.Android.dll
Syntax
public abstract class ChartSegment : Object
Constructors
ChartSegment()
Declaration
public ChartSegment()
Properties
Alpha
Gets or sets float value that indicates series fill color's alpha value.
Declaration
public float Alpha { get; set; }
Property Value
Type |
---|
System.Single |
Color
Gets or sets Color which indicates corresponding segment fill color.
Declaration
public Color Color { get; set; }
Property Value
Type |
---|
Android.Graphics.Color |
Series
Gets the series.
Declaration
public ChartSeries Series { get; }
Property Value
Type | Description |
---|---|
ChartSeries | The series. |
StrokeColor
Gets or sets Color value that indicates segment border color.
Declaration
public Color StrokeColor { get; set; }
Property Value
Type |
---|
Android.Graphics.Color |
StrokeWidth
Gets or sets float value that indicates segment border thickness.
Declaration
public float StrokeWidth { get; set; }
Property Value
Type |
---|
System.Single |
Methods
ApplyGradientColors(Paint)
Applies the LinearGradient or RadialGradient into paint.
Declaration
protected virtual void ApplyGradientColors(Paint paint)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Paint | paint | The paint. |
GetFillPaint()
Declaration
protected virtual Paint GetFillPaint()
Returns
Type |
---|
Android.Graphics.Paint |
GetStrokePaint()
Declaration
protected virtual Paint GetStrokePaint()
Returns
Type |
---|
Android.Graphics.Paint |
HitTest(Single, Single)
Declaration
protected virtual int HitTest(float valueX, float valueY)
Parameters
Type | Name | Description |
---|---|---|
System.Single | valueX | |
System.Single | valueY |
Returns
Type |
---|
System.Int32 |
OnDraw(Canvas)
Method used to draw segment in series bounds.
Declaration
public virtual void OnDraw(Canvas canvas)
Parameters
Type | Name | Description |
---|---|---|
Android.Graphics.Canvas | canvas |
OnLayout()
Method used to calculate rendering bounds of segment.
Declaration
public virtual void OnLayout()