DefaultViewportManager
The DefaultViewportManager performs a naive calculation for X and Y Axis VisibleRange. On each render of the parent UltrachartSurface, either autorange to fit the data (depending on the Axis.AutoRange property value), or return the original axis range (no change)
Inherits: ViewportManagerBase
Methods
protected override IRange OnCalculateNewXRange(IAxis xAxis)
result = defaultViewportManager.OnCalculateNewXRange(xAxis)
Overridden by derived types, called when the parent UltrachartSurface requests the XAxis VisibleRange. The Range returned by this method will be applied to the chart on render
- xAxis
- The XAxis
Returns: The new VisibleRange for the XAxis
protected override IRange OnCalculateNewYRange(IAxis yAxis, RenderPassInfo renderPassInfo)
result = defaultViewportManager.OnCalculateNewYRange(yAxis, renderPassInfo)
Overridden by derived types, called when the parent UltrachartSurface requests a YAxis VisibleRange. The Range returned by this method will be applied to the chart on render
- yAxis
- The YAxis
- renderPassInfo
Returns: The new VisibleRange for the YAxis
public override void OnParentSurfaceRendered(IUltrachartSurface ultraChartSurface)
defaultViewportManager.OnParentSurfaceRendered(ultraChartSurface)
Called when the IUltrachartSurface is rendered.
- ultraChartSurface
- The UltrachartSurface instance
public override void OnVisibleRangeChanged(IAxis axis)
defaultViewportManager.OnVisibleRangeChanged(axis)
Called when the VisibleRange changes for an axis. Override in derived types to get a notification of this occurring
- axis
- The IAxisinstance