Class AxisPolarBase
- Namespace
- LightningChartLib.WinForms.Charting.Axes
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Base class for polar axes.
[TypeConverter(typeof(ExpandableObjectConverter))]
public class AxisPolarBase : AxisRoundBase, IChartNode, IDisposable, IHighlightingItem
- Inheritance
-
AxisPolarBase
- Implements
- Derived
- Inherited Members
Constructors
AxisPolarBase()
Constructor.
public AxisPolarBase()
AxisPolarBase(ViewPolarBase)
Constructor
protected AxisPolarBase(ViewPolarBase owner)
Parameters
ownerViewPolarBaseparam owner M:LightningChartLib.WinForms.Charting.Axes.AxisPolarBase.#ctor(LightningChartLib.WinForms.Charting.Views.ViewPolar.ViewPolarBase)
Properties
AllowScrolling
Allow axis scrolling by user. Drag from axis line.
public bool AllowScrolling { get; set; }
Property Value
AmplitudeAxisAngle
Amplitude axis angle.
public double AmplitudeAxisAngle { get; set; }
Property Value
AmplitudeAxisAngleType
Amplitude axis placement angle decider (with respect to mathematical origin i.e, absolute or user defined origin i.e, relative).
public AxisAngleType AmplitudeAxisAngleType { get; set; }
Property Value
AmplitudeAxisLineVisible
Show amplitude axis.
public bool AmplitudeAxisLineVisible { get; set; }
Property Value
AmplitudeLabelsAngle
Offset of the axis labels angle in degrees.
public double AmplitudeLabelsAngle { get; set; }
Property Value
Remarks
Note that AxisAngleDrawn can be read to get the default angle of the labels in Polar. In smith the axis is always at 0 angle.
AmplitudeLabelsVisible
Amplitude labels visible.
public bool AmplitudeLabelsVisible { get; set; }
Property Value
AmplitudeReversed
Amplitude Axis direction is reversed. If false, amplitudes increase from center to edge, if true, they increase from edge to center. Does not affect the angular axis in any way.
public bool AmplitudeReversed { get; set; }
Property Value
AngleOrigin
Axis' angle offset from original estimate. Multiple polar axes added equally spaced on a circle starting from East direction.
public double AngleOrigin { get; set; }
Property Value
AngularReversed
Axis angle direction is reversed. If false, angles increase counter clockwise, if true, they increase towards clockwise direction. Does not affect the amplitude axis in any way.
public bool AngularReversed { get; set; }
Property Value
AngularTicksVisible
Defines if the angular axis ticks are shown or not.
public bool AngularTicksVisible { get; set; }
Property Value
DragSnapToDiv
Axis scrolling or scaling snaps to divisions.
public bool DragSnapToDiv { get; set; }
Property Value
InnerCircleRadiusPercentage
Inner circle radius as percentage of full circle.
public int InnerCircleRadiusPercentage { get; set; }
Property Value
KeepDivCountOnRangeChange
When true, keeps division count instead of division magnitude, when axis min or max is changed. When false, keeps division magnitude instead of count.
public bool KeepDivCountOnRangeChange { get; set; }
Property Value
MajorDiv
Major tick interval (units / div).
public double MajorDiv { get; set; }
Property Value
MajorDivCount
Major division count.
public int MajorDivCount { get; set; }
Property Value
MajorDivTickStyle
Major division ticks style.
public AxisTickStyleRound MajorDivTickStyle { get; set; }
Property Value
MajorGrid
Grid at major divisions.
public GridOptionsRound MajorGrid { get; set; }
Property Value
MarginInner
Inner margin between this and the next axis (the one inside this one). Note that this does nothing if there is no axis inside this one.
public int MarginInner { get; set; }
Property Value
MaxAmplitude
Maximum axis amplitude value.
public double MaxAmplitude { get; set; }
Property Value
MinAmplitude
Minimum axis amplitude value.
public double MinAmplitude { get; set; }
Property Value
MinorDivCount
Minor division count. The count of divisions inside a major division.
public int MinorDivCount { get; set; }
Property Value
MinorDivTickStyle
Minor division ticks style.
public AxisTickStyleRound MinorDivTickStyle { get; set; }
Property Value
MinorGrid
Grid at minor divisions.
public GridOptionsRound MinorGrid { get; set; }
Property Value
UsePreviousAxisDiameter
Defines if the axis shares the same space with the previous axis in the view's axis collection. If the OuterMargin, font size, TickMark location and other angular axis position affecting settings are the same as with the previous axis, the axis lines are aligned.
public bool UsePreviousAxisDiameter { get; set; }
Property Value
Methods
Construct()
Create members.
protected override void Construct()
CoordToValue(PointFloat, bool)
Coordinate to value converter.
public PointPolar CoordToValue(PointFloat Coord, bool UseDip = true)
Parameters
CoordPointFloatScreen coordinate to convert into polar value
UseDipboolFlag useDip
Returns
- PointPolar
Polar value matching the given screen coordinates.
CoordToValue(int, int, out double, out double, bool)
Coordinate to value.
public void CoordToValue(int x, int y, out double angle, out double amplitude, bool UseDip = true)
Parameters
xintx-coordinate
yinty-coordinate
angledoubleAngle as degrees.
amplitudedoubleValue as axis units.
UseDipboolFlag useDip
CreateLabelsFont()
Create font for labels
protected override void CreateLabelsFont()
CreateMajorGrid()
Create major grid
protected void CreateMajorGrid()
CreateMinorGrid()
Create minor grid
protected void CreateMinorGrid()
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
OnDeserialized(StreamingContext)
OnDeserialized is called just after the object has been deserialized
[OnDeserialized]
protected void OnDeserialized(StreamingContext context)
Parameters
contextStreamingContextContext
SetProperCursor()
Set proper cursor.
public override void SetProperCursor()
SetRange(double, double)
Set axis range.
public void SetRange(double minimum, double maximum)
Parameters
ToString()
Item to string.
public override string ToString()
Returns
- string
returns M:LightningChartLib.WinForms.Charting.Axes.AxisPolarBase.ToString
ValueToCoord(IPointPolar, bool)
Value to coordinates.
public PointFloat ValueToCoord(IPointPolar point, bool useDip = true)
Parameters
pointIPointPolarPolar axis values to convert into screen coordinates. Angle in the point is in relation to normal 0 angle, not the current axis drawing angle.
useDipboolFlag useDip
Returns
- PointFloat
Screen coordinates matching the requested polar axis values.
ValueToCoord(IPointRound, bool)
Value to coordinates.
public override PointFloat ValueToCoord(IPointRound Point, bool UseDip = true)
Parameters
PointIPointRoundparam Point M:LightningChartLib.WinForms.Charting.Axes.AxisPolarBase.ValueToCoord(LightningChartLib.WinForms.Charting.IPointRound,System.Boolean) UseDipboolFlag useDip
Returns
- PointFloat
returns M:LightningChartLib.WinForms.Charting.Axes.AxisPolarBase.ValueToCoord(LightningChartLib.WinForms.Charting.IPointRound,System.Boolean)
ValueToCoordDouble(double, double, bool)
Value to coordinates.
public PointFloat ValueToCoordDouble(double angle, double amplitude, bool UseDip = true)
Parameters
angledoubleparam angle M:LightningChartLib.WinForms.Charting.Axes.AxisPolarBase.ValueToCoordDouble(System.Double,System.Double,System.Boolean) amplitudedoubleparam amplitude M:LightningChartLib.WinForms.Charting.Axes.AxisPolarBase.ValueToCoordDouble(System.Double,System.Double,System.Boolean) UseDipboolFlag useDip
Returns
- PointFloat
returns M:LightningChartLib.WinForms.Charting.Axes.AxisPolarBase.ValueToCoordDouble(System.Double,System.Double,System.Boolean)
ValueToString(SupplyCustomAmplitudeStringEventArgs)
Convert value to string.
protected void ValueToString(SupplyCustomAmplitudeStringEventArgs args)
Parameters
argsSupplyCustomAmplitudeStringEventArgsArguments
Events
RangeChanged
Range has changed (Minimum or Maximum value)
public event AxisPolarBase.RangeChangedEventHandler RangeChanged
Event Type
SupplyCustomAmplitudeString
Event to format amplitude as a custom string.
public event AxisPolarBase.SupplyCustomAmplitudeStringEventHandler SupplyCustomAmplitudeString