public abstract class ViewportManagerBase<TParentSurface extends ISciChartSurfaceBase> extends java.lang.Object implements IViewportManager
SciChartSurface
Modifier and Type | Field and Description |
---|---|
protected TParentSurface |
parentSurface |
Modifier | Constructor and Description |
---|---|
protected |
ViewportManagerBase(java.lang.Class<TParentSurface> parentSurfaceType) |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
decrementSuspend() |
void |
detach() |
boolean |
getIsSuspended() |
java.util.concurrent.atomic.AtomicInteger |
getUpdateSuspenderCount() |
void |
invalidateElement() |
void |
invalidateParentSurface()
May be called to trigger a redraw on the parent surface
|
boolean |
isAttached() |
protected void |
onApplyAutoRange(IAxisCore axis)
Applies auto range on specified axis
|
protected abstract void |
onUpdateXAxis(IAxisCore xAxis)
Updates XAxis and its Visible Range
|
protected abstract void |
onUpdateYAxis(IAxisCore yAxis)
Updates YAxis and its Visible Range
|
void |
onVisibleRangeChanged(IAxisCore axis,
com.scichart.data.model.IRange oldRange,
com.scichart.data.model.IRange newRange,
boolean isAnimating)
Called when the VisibleRange changes for an axis.
|
void |
resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender) |
com.scichart.core.framework.IUpdateSuspender |
suspendUpdates() |
void |
tryPerformAutoRange(IAxisCore axis)
Called during render to perform autoranging.
|
void |
updateXAxis(IAxisCore xAxis)
Called during render to update XAxis VisibleRange.
|
void |
updateYAxis(IAxisCore yAxis)
Called during render to update YAxis VisibleRange.
|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
animateZoomExtents, animateZoomExtentsX, animateZoomExtentsY, zoomExtents, zoomExtentsX, zoomExtentsY
protected TParentSurface extends ISciChartSurfaceBase parentSurface
protected ViewportManagerBase(java.lang.Class<TParentSurface> parentSurfaceType)
public boolean isAttached()
isAttached
in interface com.scichart.core.framework.IAttachable
public void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
public final boolean getIsSuspended()
getIsSuspended
in interface com.scichart.core.framework.ISuspendable
public final com.scichart.core.framework.IUpdateSuspender suspendUpdates()
suspendUpdates
in interface com.scichart.core.framework.ISuspendable
public void resumeUpdates(com.scichart.core.framework.IUpdateSuspender suspender)
resumeUpdates
in interface com.scichart.core.framework.ISuspendable
public void decrementSuspend()
decrementSuspend
in interface com.scichart.core.framework.ISuspendable
public final java.util.concurrent.atomic.AtomicInteger getUpdateSuspenderCount()
getUpdateSuspenderCount
in interface com.scichart.core.framework.ISuspendable
public final void invalidateElement()
invalidateElement
in interface com.scichart.core.framework.IInvalidatableElement
public final void invalidateParentSurface()
invalidateParentSurface
in interface IViewportManagerBase
public final void tryPerformAutoRange(IAxisCore axis)
tryPerformAutoRange
in interface IViewportManagerBase
axis
- The IAxis
instance to perform autorange onprotected void onApplyAutoRange(IAxisCore axis)
axis
- The axis to perform auto range onpublic final void updateYAxis(IAxisCore yAxis)
updateYAxis
in interface IViewportManagerBase
yAxis
- The YAxis to updateprotected abstract void onUpdateYAxis(IAxisCore yAxis)
yAxis
- The yAxis to updatepublic final void updateXAxis(IAxisCore xAxis)
updateXAxis
in interface IViewportManagerBase
xAxis
- The XAxis to updateprotected abstract void onUpdateXAxis(IAxisCore xAxis)
xAxis
- The xAxis to updatepublic void onVisibleRangeChanged(IAxisCore axis, com.scichart.data.model.IRange oldRange, com.scichart.data.model.IRange newRange, boolean isAnimating)
onVisibleRangeChanged
in interface IViewportManagerBase
axis
- THe axis instanceoldRange
- The old VisibleRangenewRange
- The new VisibleRangeisAnimating
- Flag indicating whether the VisibleRange is animating