IViewportManager

StockSharp.Xaml.Charting

Defines the interface to a ViewportManager, which may be used to intercept the X,Y axis ranging during render and invalidate the parent surface

Implementiert: IUltrachartController, ISuspendable, IInvalidatableElement

Eigenschaften

IsAttached : bool

Returns True when a ViewportManagerBase has the UltrachartSurface attached to.

Services : IServiceContainer

Gets the ServiceContainer which provides access to services throughout Ultrachart. ServiceContainers are created one per UltrachartSurface instance, and shared between peripheral components such as AxisBase, BaseRenderableSeries, ChartModifierBase instances. For a full list of available services, see the remarks on ServiceContainer

Methoden

AttachUltrachartSurface(IUltrachartSurface)

Called when the UltrachartSurface is attached to a ViewportManagerBase. May be overridden to get notification of attachment.

scs
The UltrachartSurface instance
CalculateAutoRange(IAxis) : IRange

Called by the UltrachartSurface during render to perform autoranging. Override in derived types to return a custom value

axis
The axis to calculate for

Rückgabe: The new IRange VisibleRange for the axis

CalculateNewXAxisRange(IAxis) : IRange

Called by the UltrachartSurface during render to calculate the new XAxis VisibleRange. Override in derived types to return a custom value

xAxis
The XAxis to calculate for

Rückgabe: The new IRange VisibleRange for the axis

CalculateNewYAxisRange(IAxis, RenderPassInfo) : IRange

Called by the UltrachartSurface during render to calculate the new YAxis VisibleRange. Override in derived types to return a custom value

yAxis
The YAxis to calculate for
renderPassInfo
The current RenderPassInfo containing render data

Rückgabe: The new IRange VisibleRange for the axis

DetachUltrachartSurface()

Called when the UltrachartSurface is detached from a ViewportManagerBase. May be overridden to get notification of detachment.

InvalidateParentSurface(RangeMode)

May be called to trigger a redraw on the parent UltrachartSurface. See tne RangeMode for available options.

rangeMode
Tne RangeMode with options for the re-draw
OnParentSurfaceRendered(IUltrachartSurface)

Called when the IUltrachartSurface is rendered.

ultraChartSurface
The UltrachartSurface instance
OnVisibleRangeChanged(IAxis)

Called when the VisibleRange changes for an axis. Override in derived types to get a notification of this occurring

axis
The IAxisinstance