Class ViewportManagerBase<TParentSurface>
Defines a base class for a ViewportManager, which may be used to control visible range and ranging on a SciChartSurface
Inheritance
ViewportManagerBase<TParentSurface>
Namespace:
Assembly: .dll
Syntax
public abstract class ViewportManagerBase<TParentSurface> implements viewportManagers.IViewportManager
Type Parameters
| Name |
Description |
| TParentSurface |
|
Constructors
ViewportManagerBase(Class<TParentSurface> parentSurfaceType)
Declaration
protected ViewportManagerBase(Class<TParentSurface> parentSurfaceType)
Parameters
| Type |
Name |
Description |
| Class<TParentSurface> |
parentSurfaceType |
|
Fields
parentSurface
Declaration
protected TParentSurface parentSurface
Field Value
| Type |
Description |
| TParentSurface |
|
Methods
attachTo(IServiceContainer services)
Declaration
public void attachTo(IServiceContainer services)
Parameters
decrementSuspend()
Declaration
public void decrementSuspend()
detach()
Declaration
getIsSuspended()
Declaration
public final boolean getIsSuspended()
Returns
getUpdateSuspenderCount()
Declaration
public final AtomicInteger getUpdateSuspenderCount()
Returns
invalidateElement()
Declaration
public final void invalidateElement()
invalidateParentSurface()
May be called to trigger a redraw on the parent surface
Declaration
public final void invalidateParentSurface()
isAttached()
Declaration
public boolean isAttached()
Returns
onApplyAutoRange(IAxisCore axis)
Applies auto range on specified axis
Declaration
protected void onApplyAutoRange(IAxisCore axis)
Parameters
| Type |
Name |
Description |
| IAxisCore |
axis |
The axis to perform auto range on
|
onUpdateXAxis(IAxisCore xAxis)
Updates XAxis and its Visible Range
Declaration
protected abstract void onUpdateXAxis(IAxisCore xAxis)
Parameters
| Type |
Name |
Description |
| IAxisCore |
xAxis |
The xAxis to update
|
onUpdateYAxis(IAxisCore yAxis)
Updates YAxis and its Visible Range
Declaration
protected abstract void onUpdateYAxis(IAxisCore yAxis)
Parameters
| Type |
Name |
Description |
| IAxisCore |
yAxis |
The yAxis to update
|
onVisibleRangeChanged(IAxisCore axis, IRange oldRange, IRange newRange, boolean isAnimating)
Called when the VisibleRange changes for an axis. Override in derived types to get a notification of this occurring
Declaration
public void onVisibleRangeChanged(IAxisCore axis, IRange oldRange, IRange newRange, boolean isAnimating)
Parameters
resumeUpdates(IUpdateSuspender suspender)
Declaration
public void resumeUpdates(IUpdateSuspender suspender)
Parameters
suspendUpdates()
Declaration
public final IUpdateSuspender suspendUpdates()
Returns
Called during render to perform autoranging. Override in derived types to set a custom value
Declaration
public final void tryPerformAutoRange(IAxisCore axis)
Parameters
updateXAxis(IAxisCore xAxis)
Called during render to update XAxis VisibleRange. Override in derived types to set a custom value
Declaration
public final void updateXAxis(IAxisCore xAxis)
Parameters
updateYAxis(IAxisCore yAxis)
Called during render to update YAxis VisibleRange. Override in derived types to set a custom value
Declaration
public final void updateYAxis(IAxisCore yAxis)
Parameters
Implements