public abstract class ViewportManagerBase extends java.lang.Object implements IViewportManager
SciChartSurface
Constructor and Description |
---|
ViewportManagerBase() |
Modifier and Type | Method and Description |
---|---|
void |
animateZoomExtents(long duration)
Zooms to extents with the specified animation duration
|
void |
animateZoomExtentsX(long duration)
Zooms the chart to the extents of the data in the X-Direction
|
void |
animateZoomExtentsY(long duration)
Zooms the chart to the extents of the data in the Y-Direction, accounting for the current data in view in the X-direction
|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
decrementSuspend() |
void |
detach() |
boolean |
getIsSuspended() |
void |
invalidateElement() |
void |
invalidateParentSurface()
May be called to trigger a redraw on the parent
SciChartSurface |
boolean |
isAttached() |
protected abstract void |
onApplyAutoRange(IAxis axis)
Applies auto range on specified axis
|
protected abstract void |
onUpdateXAxis(IAxis xAxis)
Updates XAxis and its Visible Range
|
protected abstract void |
onUpdateYAxis(IAxis yAxis)
Updates YAxis and its Visible Range
|
void |
onVisibleRangeChanged(IAxis 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(IAxis axis)
Called by the
SciChartSurface during render to perform autoranging. |
void |
updateXAxis(IAxis xAxis)
Called by the
SciChartSurface during render to update XAxis VisibleRange. |
void |
updateYAxis(IAxis yAxis)
Called by the
SciChartSurface during render to update YAxis VisibleRange. |
void |
zoomExtents()
Zooms the chart to the extents of the data, plus any X or Y Grow By fraction set on the X and Y Axes
|
void |
zoomExtentsX()
Zooms the chart to the extents of the data in the X-Direction
|
void |
zoomExtentsY()
Zooms the chart to the extents of the data in the Y-Direction, accounting for the current data in view in the X-direction
|
public boolean isAttached()
isAttached
in interface com.scichart.core.framework.IAttachable
public void attachTo(@NonNull 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 void invalidateElement()
invalidateElement
in interface com.scichart.core.framework.IInvalidatableElement
public final void zoomExtents()
zoomExtents
in interface ISciChartController
public final void animateZoomExtents(long duration)
animateZoomExtents
in interface ISciChartController
duration
- The duration of animation when zooming to extentspublic final void zoomExtentsY()
zoomExtentsY
in interface ISciChartController
public final void animateZoomExtentsY(long duration)
animateZoomExtentsY
in interface ISciChartController
duration
- The duration of animation when zooming to extentspublic final void zoomExtentsX()
zoomExtentsX
in interface ISciChartController
public final void animateZoomExtentsX(long duration)
animateZoomExtentsX
in interface ISciChartController
duration
- The duration of animation when zooming to extentspublic final void tryPerformAutoRange(IAxis axis)
SciChartSurface
during render to perform autoranging. Override in derived types to set a custom valuetryPerformAutoRange
in interface IViewportManager
axis
- The IAxis
instance to perform autorange onprotected abstract void onApplyAutoRange(IAxis axis)
axis
- The axis to perform auto range onpublic final void updateYAxis(IAxis yAxis)
SciChartSurface
during render to update YAxis VisibleRange. Override in derived types to set a custom valueupdateYAxis
in interface IViewportManager
yAxis
- The YAxis to updateprotected abstract void onUpdateYAxis(IAxis yAxis)
yAxis
- The yAxis to updatepublic final void updateXAxis(IAxis xAxis)
SciChartSurface
during render to update XAxis VisibleRange. Override in derived types to set a custom valueupdateXAxis
in interface IViewportManager
xAxis
- The XAxis to updateprotected abstract void onUpdateXAxis(IAxis xAxis)
xAxis
- The xAxis to updatepublic void onVisibleRangeChanged(IAxis axis, com.scichart.data.model.IRange oldRange, com.scichart.data.model.IRange newRange, boolean isAnimating)
onVisibleRangeChanged
in interface IViewportManager
axis
- THe axis instanceoldRange
- The old VisibleRangenewRange
- The new VisibleRangeisAnimating
- Flag indicating whether the VisibleRange is animatingpublic void invalidateParentSurface()
SciChartSurface
invalidateParentSurface
in interface IViewportManager