public abstract class ChartModifierBase extends ChartModifierCore implements IChartModifier
SciChartSurface
services
Constructor and Description |
---|
ChartModifierBase() |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
detach() |
android.content.Context |
getContext() |
protected static <T extends IChartModifier> |
getMasterModifier(T modifier,
com.scichart.core.utility.touch.IReceiveMotionEvents source) |
IChartModifierSurface |
getModifierSurface()
Gets the parent
SciChartSurface.getModifierSurface() |
ISciChartSurface |
getParentSurface()
Gets the parent surface that this instance is associated with
|
boolean |
getPointRelativeTo(android.graphics.PointF point,
com.scichart.core.framework.IHitTestable relativeTo)
Transforms point with coordinates relative to parent surface and transforms it relative to specified
IHitTestable instance |
java.util.List<IRenderableSeries> |
getRenderableSeries()
Gets the parent
SciChartSurface.getRenderableSeries() collection |
protected IRenderableSeriesArea |
getRenderableSeriesArea()
Gets the parent
SciChartSurface.getRenderableSeriesArea() |
java.util.List<IAxis> |
getXAxes()
Gets the parent
SciChartSurface.getXAxes() collection |
IAxis |
getXAxis()
Gets the primary XAxis, this is the first axis in the XAxes collection
|
protected IAxis |
getXAxis(java.lang.String axisId)
Gets XAxis specified by id if it exists, otherwise returns null
|
java.util.List<IAxis> |
getYAxes()
Gets the parent
SciChartSurface.getYAxes() collection |
IAxis |
getYAxis()
Gets the primary YAxis, this is the first axis in the YAxes collection
|
protected IAxis |
getYAxis(java.lang.String axisId)
Gets YAxis specified by id if it exists, otherwise returns null
|
protected boolean |
isWithinSourceBounds(float x,
float y,
boolean isMaster,
com.scichart.core.utility.touch.IReceiveMotionEvents source)
Performs a check whether the point is inside the boundaries of the initial
IChartModifierSurface . |
void |
onAnnotationsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAnnotation> args)
Called when parent
SciChartSurface.getAnnotations() collection changes |
void |
onAnnotationsDrasticallyChanged()
Called when parent
SciChartSurface.getAnnotations() collection drastically changed |
void |
onParentSurfaceResized(ResizedMessage message)
Called when chart resized.
|
void |
onRenderSurfaceRendered(RenderedMessage message)
Called when parent
SciChartSurface.getRenderSurface() rendered |
void |
onXAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
Called when parent
SciChartSurface.getXAxes() collection changes |
void |
onXAxesDrasticallyChanged()
Called when parent
SciChartSurface.getXAxes() collection drastically changed |
void |
onYAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
Called when parent
SciChartSurface.getYAxes() collection changes |
void |
onYAxesDrasticallyChanged()
Called when parent
SciChartSurface.getYAxes() collection drastically changed |
applyThemeProvider, checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, onGenericMotion, onIsEnabledChanged, onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onSelectedSeriesCollectionChanged, onTouch, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getEventsGroupTag, getIsEnabled, setIsEnabled
getName, getReceiveHandledEvents, onGenericMotion, onTouch
applyThemeProvider
onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onSelectedSeriesCollectionChanged
public final ISciChartSurface getParentSurface()
getParentSurface
in interface ISciChartSurfaceProvider
public void attachTo(com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class ChartModifierCore
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class ChartModifierCore
protected boolean isWithinSourceBounds(float x, float y, boolean isMaster, com.scichart.core.utility.touch.IReceiveMotionEvents source)
IChartModifierSurface
.x
- The x-coordinate of the point to check.y
- The y-coordinate of the point to check.isMaster
- Indicates whether this check is performed on the master IChartModifierSurface
instance.source
- The IReceiveMotionEvents
instance.IChartModifierSurface
.public final java.util.List<IRenderableSeries> getRenderableSeries()
SciChartSurface.getRenderableSeries()
collectiongetRenderableSeries
in interface IChartModifier
public final java.util.List<IAxis> getXAxes()
SciChartSurface.getXAxes()
collectiongetXAxes
in interface IChartModifier
public final java.util.List<IAxis> getYAxes()
SciChartSurface.getYAxes()
collectiongetYAxes
in interface IChartModifier
protected final IAxis getXAxis(java.lang.String axisId)
axisId
- The XAxis idprotected final IAxis getYAxis(java.lang.String axisId)
axisId
- The YAxis idpublic IAxis getXAxis()
getXAxis
in interface IChartModifier
public IAxis getYAxis()
getYAxis
in interface IChartModifier
public final IChartModifierSurface getModifierSurface()
SciChartSurface.getModifierSurface()
getModifierSurface
in interface IChartModifierCore
protected final IRenderableSeriesArea getRenderableSeriesArea()
SciChartSurface.getRenderableSeriesArea()
public final android.content.Context getContext()
getContext
in interface com.scichart.core.framework.IContextProvider
public final boolean getPointRelativeTo(android.graphics.PointF point, com.scichart.core.framework.IHitTestable relativeTo)
IHitTestable
instancepoint
- The point to translaterelativeTo
- The target IHitTestable
instancepublic void onParentSurfaceResized(ResizedMessage message)
onParentSurfaceResized
in interface IChartResizeListener
message
- The resized message.public void onRenderSurfaceRendered(RenderedMessage message)
SciChartSurface.getRenderSurface()
renderedonRenderSurfaceRendered
in interface ISciChartSurfaceChangeListener
message
- The rendered messagepublic void onXAxesDrasticallyChanged()
SciChartSurface.getXAxes()
collection drastically changedonXAxesDrasticallyChanged
in interface IAxesChangeListener
public void onYAxesDrasticallyChanged()
SciChartSurface.getYAxes()
collection drastically changedonYAxesDrasticallyChanged
in interface IAxesChangeListener
public void onAnnotationsDrasticallyChanged()
SciChartSurface.getAnnotations()
collection drastically changedonAnnotationsDrasticallyChanged
in interface ISciChartSurfaceChangeListener
public void onXAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
SciChartSurface.getXAxes()
collection changesonXAxesCollectionChanged
in interface IAxesChangeListener
args
- The collection changed event argspublic void onYAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
SciChartSurface.getYAxes()
collection changesonYAxesCollectionChanged
in interface IAxesChangeListener
args
- The collection changed event argspublic void onAnnotationsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAnnotation> args)
SciChartSurface.getAnnotations()
collection changesonAnnotationsCollectionChanged
in interface ISciChartSurfaceChangeListener
args
- The collection changed event argsprotected static <T extends IChartModifier> T getMasterModifier(T modifier, com.scichart.core.utility.touch.IReceiveMotionEvents source)