Class ChartModifierBase
Defines the base class to a Chart Modifier, which can be used to extend the interactivity or rendering of the SciChartSurface
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public abstract class ChartModifierBase extends ChartModifierCore implements IChartModifier
Constructors
ChartModifierBase()
Declaration
public ChartModifierBase()
Methods
<T>getMasterModifier(T modifier, IReceiveMotionEvents target)
Declaration
protected static T <T>getMasterModifier(T modifier, IReceiveMotionEvents target)
Parameters
Type | Name | Description |
---|---|---|
T | modifier | |
IReceiveMotionEvents | target |
Returns
Type | Description |
---|---|
T |
attachTo(IServiceContainer services)
Declaration
public void attachTo(IServiceContainer services)
Parameters
Type | Name | Description |
---|---|---|
IServiceContainer | services |
Overrides
detach()
Declaration
public void detach()
Overrides
getContext()
Declaration
public final Context getContext()
Returns
Type | Description |
---|---|
android.content.Context |
getModifierSurface()
Gets the parent SciChartSurface#getModifierSurface()
Declaration
public final IChartModifierSurface getModifierSurface()
Returns
Type | Description |
---|---|
IChartModifierSurface |
getParentSurface()
Gets the parent surface that this instance is associated with
Declaration
public final ISciChartSurface getParentSurface()
Returns
Type | Description |
---|---|
ISciChartSurface |
getPointRelativeTo(PointF point, IHitTestable relativeTo)
Transforms point with coordinates relative to parent surface and transforms it relative to specified IHitTestable instance
Declaration
public final boolean getPointRelativeTo(PointF point, IHitTestable relativeTo)
Parameters
Type | Name | Description |
---|---|---|
android.graphics.PointF | point | The point to translate |
IHitTestable | relativeTo | The target IHitTestable instance |
Returns
Type | Description |
---|---|
boolean | True if translate was successful |
getRenderableSeries()
Gets the parent SciChartSurface#getRenderableSeries() collection
Declaration
public final List<renderableSeries.IRenderableSeries> getRenderableSeries()
Returns
Type | Description |
---|---|
List<IRenderableSeries> |
getRenderableSeriesArea()
Gets the parent SciChartSurface#getRenderableSeriesArea()
Declaration
protected final IRenderableSeriesArea getRenderableSeriesArea()
Returns
Type | Description |
---|---|
IRenderableSeriesArea | The renderable series area |
getXAxes()
Gets the parent SciChartSurface#getXAxes() collection
Declaration
public final List<IAxis> getXAxes()
Returns
Type | Description |
---|---|
List<IAxis> |
getXAxis()
Gets the primary XAxis, this is the first axis in the XAxes collection
Declaration
public IAxis getXAxis()
Returns
Type | Description |
---|---|
IAxis |
getXAxis(String axisId)
Gets XAxis specified by id if it exists, otherwise returns null
Declaration
protected final IAxis getXAxis(String axisId)
Parameters
Type | Name | Description |
---|---|---|
String | axisId | The XAxis id |
Returns
Type | Description |
---|---|
IAxis | The XAxis instance |
getYAxes()
Gets the parent SciChartSurface#getYAxes() collection
Declaration
public final List<IAxis> getYAxes()
Returns
Type | Description |
---|---|
List<IAxis> |
getYAxis()
Gets the primary YAxis, this is the first axis in the YAxes collection
Declaration
public IAxis getYAxis()
Returns
Type | Description |
---|---|
IAxis |
getYAxis(String axisId)
Gets YAxis specified by id if it exists, otherwise returns null
Declaration
protected final IAxis getYAxis(String axisId)
Parameters
Type | Name | Description |
---|---|---|
String | axisId | The YAxis id |
Returns
Type | Description |
---|---|
IAxis | The YAxis instance |
isWithinSourceBounds(float x, float y, boolean isMaster, IReceiveMotionEvents source)
Performs a check whether the point is inside the boundaries of the initial IChartModifierSurface.
Declaration
protected boolean isWithinSourceBounds(float x, float y, boolean isMaster, IReceiveMotionEvents source)
Parameters
Type | Name | Description |
---|---|---|
float | x | The x-coordinate of the point to check. |
float | y | The y-coordinate of the point to check. |
boolean | isMaster | Indicates whether this check is performed on the master IChartModifierSurface instance. |
IReceiveMotionEvents | source | The IReceiveMotionEvents instance. |
Returns
Type | Description |
---|---|
boolean | True if the point is inside the boundaries of the initial IChartModifierSurface. |
onAnnotationsCollectionChanged(CollectionChangedEventArgs<IAnnotation> args)
Called when parent SciChartSurface#getAnnotations() collection changes
Declaration
public void onAnnotationsCollectionChanged(CollectionChangedEventArgs<IAnnotation> args)
Parameters
Type | Name | Description |
---|---|---|
CollectionChangedEventArgs<IAnnotation> | args |
onAnnotationsDrasticallyChanged()
Called when parent SciChartSurface#getAnnotations() collection drastically changed
Declaration
public void onAnnotationsDrasticallyChanged()
onParentSurfaceResized(ResizedMessage message)
Called when chart resized.
Declaration
public void onParentSurfaceResized(ResizedMessage message)
Parameters
Type | Name | Description |
---|---|---|
ResizedMessage | message |
onRenderSurfaceRendered(RenderedMessage message)
Called when parent SciChartSurface#getRenderSurface() rendered
Declaration
public void onRenderSurfaceRendered(RenderedMessage message)
Parameters
Type | Name | Description |
---|---|---|
RenderedMessage | message |
onXAxesCollectionChanged(CollectionChangedEventArgs<IAxis> args)
Called when parent SciChartSurface#getXAxes() collection changes
Declaration
public void onXAxesCollectionChanged(CollectionChangedEventArgs<IAxis> args)
Parameters
Type | Name | Description |
---|---|---|
CollectionChangedEventArgs<IAxis> | args |
onXAxesDrasticallyChanged()
Called when parent SciChartSurface#getXAxes() collection drastically changed
Declaration
public void onXAxesDrasticallyChanged()
onYAxesCollectionChanged(CollectionChangedEventArgs<IAxis> args)
Called when parent SciChartSurface#getYAxes() collection changes
Declaration
public void onYAxesCollectionChanged(CollectionChangedEventArgs<IAxis> args)
Parameters
Type | Name | Description |
---|---|---|
CollectionChangedEventArgs<IAxis> | args |
onYAxesDrasticallyChanged()
Called when parent SciChartSurface#getYAxes() collection drastically changed
Declaration
public void onYAxesDrasticallyChanged()