Class ViewRoundBase
- Namespace
- LightningChartLib.WinForms.Charting.Views.ViewRound
- Assembly
- LightningChart.WinForms.Charting.NET4.dll
Base class for all round views. These are Smith -and Polar views.
[TypeConverter(typeof(ExpandableObjectConverter))]
public abstract class ViewRoundBase : View2D, IChartNode, IDisposable
- Inheritance
-
ViewRoundBase
- Implements
- Derived
- Inherited Members
Properties
AutoSizeMargins
Automatically size margins based on LegendBox position and size.
public bool AutoSizeMargins { get; set; }
Property Value
Border
Border Options for View.
public ThinBorder Border { get; set; }
Property Value
ZoomScale
Current zooming scale. 1 is the default zoom that shows the circle at it's maximum size so that it just fills the view area reduced by the margins.
public double ZoomScale { get; set; }
Property Value
Methods
CalcMarginEffects()
re-calculates the margin area and drawcenter, marks all affected to dirty.
protected override void CalcMarginEffects()
CalcRadius(double)
Calculates radius in pixels for given zoom factor.
protected abstract double CalcRadius(double zoomFactor)
Parameters
zoomFactordoubleLightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.m_dZoomScale
Returns
- double
Radius in pixels.
CalcRadius(double, AxisRoundBase)
Calculates radius in pixels for given zoom factor.
protected double CalcRadius(double zoomFactor, AxisRoundBase axis)
Parameters
zoomFactordoubleViewRound.ViewRoundBase.m_fZoomScale
axisAxisRoundBase
Returns
- double
Radius in pixels.
Construct()
Virtual construction / initialization method. Called by all constructors.
protected virtual void Construct()
CoordsToUCValue(PointFloat, bool)
Convert absolute screen coordinates to relative unit circle coordinates.
public PointUnitCircle CoordsToUCValue(PointFloat screenCoords, bool useDip = true)
Parameters
screenCoordsPointFloatCoords in screen space.
useDipboolUse DIPs instead of pixels as parameters.
Returns
- PointUnitCircle
Given coordinates in relative unit circle space, with origo at the center of the circle.
CoordsToUCValue(ref PointFloat, bool)
Convert absolute screen coordinates to relative unit circle coordinates. The given pointfloat is modified.
public void CoordsToUCValue(ref PointFloat screenCoords, bool useDip = true)
Parameters
screenCoordsPointFloatCoordinates in screen space on entry. On exit contains matching unit circle coordinates.
useDipboolUse DIPs instead of pixels as parameters.
CreateLegendBox()
Required method that creates proper legend box and sets the m_LegendBox property
protected abstract void CreateLegendBox()
CreatetbMarginBorder()
Create Border
protected virtual void CreatetbMarginBorder()
DeviceButtonClickCheck(ObjectType, UserInteractiveDeviceEventArgs, UserInteractiveDeviceEventType, bool, bool)
User interactive device click handler for given object types.
protected virtual bool DeviceButtonClickCheck(View2D.ObjectType type, UserInteractiveDeviceEventArgs eventArguments, UserInteractiveDeviceEventType eventType, bool bIsOutsideGraphArea, bool front = true)
Parameters
typeView2D.ObjectTypeparam type M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClickCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean) eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClickCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean) eventTypeUserInteractiveDeviceEventTypeparam eventType M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClickCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean) bIsOutsideGraphAreaboolparam bIsOutsideGraphArea M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClickCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean) frontboolparam front M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClickCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClickCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean)
Remarks
This implementation is intentionally empty.
DeviceButtonClicked(UserInteractiveDeviceEventArgs, UserInteractiveDeviceEventType, LightningChart)
User interactive device button has been clicked.
protected override bool DeviceButtonClicked(UserInteractiveDeviceEventArgs eventArguments, UserInteractiveDeviceEventType eventType, LightningChart chart)
Parameters
eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClicked(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) eventTypeUserInteractiveDeviceEventTypeparam eventType M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClicked(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) chartLightningChartparam chart M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClicked(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonClicked(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
Remarks
Note that we come here on button up. Clicked event comes first, then up.
DeviceButtonDown(UserInteractiveDeviceEventArgs, UserInteractiveDeviceEventType, LightningChart)
Mouse button has been clicked down.
protected override bool DeviceButtonDown(UserInteractiveDeviceEventArgs eventArguments, UserInteractiveDeviceEventType eventType, LightningChart chart)
Parameters
eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonDown(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) eventTypeUserInteractiveDeviceEventTypeparam eventType M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonDown(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) chartLightningChartparam chart M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonDown(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonDown(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
DeviceButtonDownCheck(ObjectType, UserInteractiveDeviceEventArgs, bool, bool)
Virtual method to override if the class wants to handle mouse down event of axis on proper time.
protected virtual bool DeviceButtonDownCheck(View2D.ObjectType type, UserInteractiveDeviceEventArgs eventArguments, bool bIsOutsideGraphArea, bool front = true)
Parameters
typeView2D.ObjectTypeparam type M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonDownCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,System.Boolean) eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonDownCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,System.Boolean) bIsOutsideGraphAreaboolparam bIsOutsideGraphArea M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonDownCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,System.Boolean) frontboolDetermines if the object is considered being in front or in back. Actual meaning differs between ObjectTypes
Returns
- bool
True if the event was consumed.
Remarks
This version does nothing.
DeviceButtonUp(UserInteractiveDeviceEventArgs, UserInteractiveDeviceEventType, LightningChart)
Mouse button has been released.
protected override bool DeviceButtonUp(UserInteractiveDeviceEventArgs eventArguments, UserInteractiveDeviceEventType eventType, LightningChart chart)
Parameters
eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUp(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) eventTypeUserInteractiveDeviceEventTypeparam eventType M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUp(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) chartLightningChartparam chart M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUp(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUp(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
DeviceButtonUpCheck(ObjectType, UserInteractiveDeviceEventArgs, UserInteractiveDeviceEventType, bool, ref bool, ref bool, bool)
Checks if the user interactive device up event applies to the given item.
protected virtual void DeviceButtonUpCheck(View2D.ObjectType type, UserInteractiveDeviceEventArgs eventArguments, UserInteractiveDeviceEventType eventType, bool bIsOutsideGraphArea, ref bool interactedObjectFirst, ref bool bExit, bool front = true)
Parameters
typeView2D.ObjectTypeparam type M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUpCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,System.Boolean) eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUpCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,System.Boolean) eventTypeUserInteractiveDeviceEventTypeparam eventType M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUpCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,System.Boolean) bIsOutsideGraphAreaboolparam bIsOutsideGraphArea M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUpCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,System.Boolean) interactedObjectFirstboolparam interactedObjectFirst M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUpCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,System.Boolean) bExitboolparam bExit M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUpCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,System.Boolean) frontboolparam front M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.DeviceButtonUpCheck(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,System.Boolean)
Dispose(bool)
Clean up any resources being used.
protected override void Dispose(bool disposing)
Parameters
disposingbooltrue if managed resources should be disposed, otherwise false.
FireAfterZoomingEvent(float)
Event launcher for zoom scale changes. Called after the zooming. Suits like this for polar, override for smith
protected virtual bool FireAfterZoomingEvent(float OldScale)
Parameters
OldScalefloatOld zoom scale
Returns
- bool
True if rendering frame should be stopped.
FireBeforePanningEvent(PointUnitCircle)
Event launcher for zoom center changes. Suits like this for polar, override for smith
protected virtual bool FireBeforePanningEvent(PointUnitCircle newCenter)
Parameters
newCenterPointUnitCircleNew zoom center as UC
Returns
- bool
True if zoom was successful. False if canceled.
FireBeforeZoomingEvent(float)
Event launcher for zoom scale changes. Called before the zooming. Suits like this for polar, override for smith
protected virtual bool FireBeforeZoomingEvent(float NewScale)
Parameters
NewScalefloatNew zoom scale
Returns
- bool
True if value change is ok, false if zoom should not happen.
FirePannedEvent(PointUnitCircle)
Event launcher for zoom center changes. Called after the pan. Suits like this for polar, override for smith
protected virtual bool FirePannedEvent(PointUnitCircle oldCenter)
Parameters
oldCenterPointUnitCircleOld center as UC
Returns
- bool
True if rendering should be canceled.
FixAspectRatio(ref RectangleXYF, bool)
Fixes aspect ratio to match the view aspect ratio. Keeps X,Y coords if Center property is false (default), negative sizes allowed (suggested in some cases). Does not reduce the rect size, only increases it.
protected void FixAspectRatio(ref RectangleXYF rect, bool center = false)
Parameters
rectRectangleXYFIncreases the size same amount on both directions.
centerboolIf true, keep the rect center in place. Otherwise the X/Y is kept in place (which is not necessarily the left/top)
Remarks
Center property can be used to increase the size on both directions.
FreeMarkersDrawData(bool)
Free marker draw data.
public virtual void FreeMarkersDrawData(bool creatingDeviceOrDisposing = false)
Parameters
creatingDeviceOrDisposingboolparam creatingDeviceOrDisposing M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.FreeMarkersDrawData(System.Boolean)
FreeZoomDrawData()
Free DD of the zoom system. Rects etc.
protected override void FreeZoomDrawData()
GetChartDiameterAndCenter(out int, out int, out int)
Get Smith or Polar charts outer diameter and center point in screen coordinates.
public bool GetChartDiameterAndCenter(out int diameter, out int centerX, out int centerY)
Parameters
Returns
- bool
True if successfully resolved.
Remarks
Note that each axis is smaller than the outer diameter. returned here.
GetDataBounds()
Getter of the bounds of the data in screen pixels (zoomed) for determination of the correct scale and center offset for the zooming so that all data is fit to view.
protected abstract RectangleXYF GetDataBounds()
Returns
- RectangleXYF
Bounding box of the data in screen coordinates.
HandleDeviceButtonUpAction(UserInteractiveDeviceEventArgs, UserInteractiveDeviceEventType, bool, ref bool, ref bool, UserInteractiveObject)
Handle user interactive device up event.
protected override void HandleDeviceButtonUpAction(UserInteractiveDeviceEventArgs eventArguments, UserInteractiveDeviceEventType eventType, bool bIsOutsideGraphArea, ref bool bMousedObjectFirst, ref bool bExit, UserInteractiveObject item)
Parameters
eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceButtonUpAction(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,LightningChartLib.WinForms.Charting.UserInteractiveObject) eventTypeUserInteractiveDeviceEventTypeparam eventType M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceButtonUpAction(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,LightningChartLib.WinForms.Charting.UserInteractiveObject) bIsOutsideGraphAreaboolparam bIsOutsideGraphArea M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceButtonUpAction(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,LightningChartLib.WinForms.Charting.UserInteractiveObject) bMousedObjectFirstboolparam bMousedObjectFirst M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceButtonUpAction(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,LightningChartLib.WinForms.Charting.UserInteractiveObject) bExitboolparam bExit M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceButtonUpAction(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,LightningChartLib.WinForms.Charting.UserInteractiveObject) itemUserInteractiveObjectparam item M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceButtonUpAction(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,System.Boolean,System.Boolean@,System.Boolean@,LightningChartLib.WinForms.Charting.UserInteractiveObject)
HandleDeviceMoved(ObjectType, UserInteractiveDeviceEventArgs, bool, UserInteractiveObject, bool)
Handles user interactive device move events of the given type.
protected virtual bool HandleDeviceMoved(View2D.ObjectType type, UserInteractiveDeviceEventArgs eventArguments, bool bIsOutsideGraphArea, UserInteractiveObject mibHandled, bool front = true)
Parameters
typeView2D.ObjectTypeparam type M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceMoved(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,LightningChartLib.WinForms.Charting.UserInteractiveObject,System.Boolean) eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceMoved(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,LightningChartLib.WinForms.Charting.UserInteractiveObject,System.Boolean) bIsOutsideGraphAreaboolparam bIsOutsideGraphArea M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceMoved(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,LightningChartLib.WinForms.Charting.UserInteractiveObject,System.Boolean) mibHandledUserInteractiveObjectparam mibHandled M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceMoved(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,LightningChartLib.WinForms.Charting.UserInteractiveObject,System.Boolean) frontboolparam front M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceMoved(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,LightningChartLib.WinForms.Charting.UserInteractiveObject,System.Boolean)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.HandleDeviceMoved(LightningChartLib.WinForms.Charting.Views.View2D.ObjectType,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,System.Boolean,LightningChartLib.WinForms.Charting.UserInteractiveObject,System.Boolean)
Remarks
This implementation intentionally empty.
HandleViewChanged()
Virtual method that is called when zoom or panning properties have changed or engine changed or margins changed or ... The Chart update cycle has not been ended yet.
protected virtual void HandleViewChanged()
Remarks
Remember to call the base classes method. It might be prudent to mark somewhere we're dirty, or just refresh the chart.
OnDeserialized(StreamingContext)
OnDeserialized is called just after the object has been deserialized
[OnDeserialized]
protected void OnDeserialized(StreamingContext context)
Parameters
contextStreamingContextContext
PositionOverGraph(CoordXY)
Check if position is over circular graph area. Meaning if it's inside the radius of the chart.
protected override bool PositionOverGraph(CoordXY coord)
Parameters
coordCoordXYPosition
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.PositionOverGraph(LightningChartLib.WinForms.Charting.CoordXY)
SetLegendBox(LegendBoxRound)
Set LegendBox
protected void SetLegendBox(LegendBoxRound value)
Parameters
valueLegendBoxRoundparam value M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.SetLegendBox(LightningChartLib.WinForms.Charting.Views.ViewRound.LegendBoxRound)
SetZoomCenter(PointUnitCircle, bool)
Setter of the Zoom center in UC coords. Emits corresponding zoom events if allowed.
protected virtual bool SetZoomCenter(PointUnitCircle newCenter, bool emitEvents = true)
Parameters
newCenterPointUnitCircleNew center of the view in UC coords.
emitEventsboolIf true, emits events that the user can use to cancel rendering or prevent the zoom operation.
Returns
- bool
True if zoom center changed
ToString()
Convert class description to string
public override string ToString()
Returns
- string
String
UCValueToCoord(PointFloat, bool)
Convert relative unit circle coordinates to absolute screen coordinates.
public PointFloat UCValueToCoord(PointFloat ucValue, bool useDip = true)
Parameters
ucValuePointFloatUnit circle coordinates to convert.
useDipboolUse DIPs instead of pixels as parameters.
Returns
- PointFloat
Absolute screen coordinates matching the given parameter.
UCValueToCoord(ref PointFloat, bool)
Convert relative unit circle coordinates to absolute screen coordinates. The given pointfloat is modified.
public void UCValueToCoord(ref PointFloat coords, bool useDip = true)
Parameters
coordsPointFloatScreen coordinates to convert into unit circle coordinates.
useDipboolUse DIPs instead of pixels as parameters.
UCValueToCoord(PointUnitCircle, bool)
Convert relative unit circle coordinates to absolute screen coordinates.
public PointFloat UCValueToCoord(PointUnitCircle ucValue, bool useDip = true)
Parameters
ucValuePointUnitCircleUnit circle coordinates to convert.
useDipboolUse DIPs instead of pixels as parameters.
Returns
- PointFloat
Absolute screen coordinates matching the given parameter.
UserDeviceCheckStarting()
To be called as beginning of mouse move and mouse click checks / handling to cleanup states.
protected virtual void UserDeviceCheckStarting()
UserInteractiveDeviceMoved(UserInteractiveDeviceEventArgs, UserInteractiveDeviceEventType, LightningChart)
User interactive device has been moved.
protected override bool UserInteractiveDeviceMoved(UserInteractiveDeviceEventArgs eventArguments, UserInteractiveDeviceEventType eventType, LightningChart chart)
Parameters
eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.UserInteractiveDeviceMoved(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) eventTypeUserInteractiveDeviceEventTypeparam eventType M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.UserInteractiveDeviceMoved(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart) chartLightningChartparam chart M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.UserInteractiveDeviceMoved(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.UserInteractiveDeviceMoved(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventType,LightningChartLib.WinForms.Charting.LightningChart)
WheelScrolled(UserInteractiveDeviceEventArgs, LightningChart)
Mouse wheel has been scrolled.
public override bool WheelScrolled(UserInteractiveDeviceEventArgs eventArguments, LightningChart chart)
Parameters
eventArgumentsUserInteractiveDeviceEventArgsparam eventArguments M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.WheelScrolled(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.LightningChart) chartLightningChartparam chart M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.WheelScrolled(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.LightningChart)
Returns
- bool
returns M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.WheelScrolled(LightningChartLib.WinForms.Charting.UserInteractiveDeviceEventArgs,LightningChartLib.WinForms.Charting.LightningChart)
Zoom(int, int, int, int)
Zoom the chart in or out. If stop point X is greater than start point X, zooms in. If stop point X is less than start point X action follows RightToLeftZoom property.
public void Zoom(int startX, int startY, int stopX, int stopY)
Parameters
startXintZoom start point X.
startYintZoom start point Y.
stopXintZoom stop point X.
stopYintZoom stop point Y.
ZoomByFactor(PointInt, float, bool)
Zoom by given factor and around given view center as DIP or screen coordinates.
public void ZoomByFactor(PointInt zoomCenterCoord, float zoomFactor, bool UseDIP = true)
Parameters
zoomCenterCoordPointIntScreen coordinates of the new center point [default input in DIPs]
zoomFactorfloatFactor to modify the zoom scale by.
UseDIPboolDefines if the input value is in DIP or PX
ZoomCenterChanged()
Reacts to changes in ZoomCenter property, updates drawing center quietly from zoom center.
protected virtual void ZoomCenterChanged()
ZoomToFit(ZoomAreaRound)
Zooms the view so that the data is visible at maximum possible size.
Area is either the full drawing area inside Margins or are further limited by ZoomPadding, depending on case. For more information, see options at ZoomAreaRound.
public void ZoomToFit(ZoomAreaRound zoomArea = ZoomAreaRound.Data)
Parameters
zoomAreaZoomAreaRoundparam zoomArea M:LightningChartLib.WinForms.Charting.Views.ViewRound.ViewRoundBase.ZoomToFit(LightningChartLib.WinForms.Charting.ZoomAreaRound)
ZoomToLabelsArea()
Zooms the round view so that labels area is fitted to area inside
ZoomPadding.
Publicly accessible via ZoomToFit(ZoomAreaRound) method and ZoomToData.
public void ZoomToLabelsArea()
Events
BeforePanning
Panning is about to start.
public event ViewRoundBase.BeforePanningEventHandler BeforePanning
Event Type
BeforeZooming
Zooming is about to start.
public event ViewRoundBase.BeforeZoomingEventHandler BeforeZooming
Event Type
Panned
Panning has ended.
public event ViewRoundBase.PannedEventHandler Panned
Event Type
Zoomed
Zooming has ended.
public event ViewRoundBase.ZoomedEventHandler Zoomed