public abstract class PieChartModifierBase extends com.scichart.core.utility.touch.ReceiveMotionEventsBase implements IPieChartModifier, ISciPieChartSurfaceProvider
Constructor and Description |
---|
PieChartModifierBase() |
Modifier and Type | Method and Description |
---|---|
void |
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
|
void |
attachTo(com.scichart.core.IServiceContainer services) |
void |
detach() |
android.content.Context |
getContext() |
java.lang.String |
getEventsGroupTag()
Gets a string ID used for propagating motion events from the master chart.
|
boolean |
getIsEnabled()
Get whether the modifier is enabled for interaction
|
IChartModifierSurface |
getModifierSurface()
Gets the parent
SciChartSurface.getModifierSurface() |
ISciPieChartSurface |
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 |
boolean |
getReceiveHandledEvents() |
java.util.List<IPieRenderableSeries> |
getRenderableSeries()
Gets the parent
SciPieChartSurface.getRenderableSeries() collection |
com.scichart.core.IServiceContainer |
getServices() |
boolean |
isAttached() |
void |
onGenericMotion(com.scichart.core.utility.touch.ModifierTouchEventArgs args) |
protected void |
onIsEnabledChanged(boolean isEnabled)
Called when isEnabled value has changed
|
void |
onParentPieSurfaceResized(ResizedMessage message)
Called when parent
SciChartSurface resized. |
void |
onPieRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieRenderableSeries> args)
Called when parent
SciPieChartSurface.getRenderableSeries() collection changes. |
void |
onPieRenderableSeriesDrasticallyChanged(ISciPieChartSurface surface)
Called when parent
SciPieChartSurface.getRenderableSeries() collection drastically changed. |
void |
onPieRenderSurfaceRendered(PieChartRenderedMessage message)
Called when parent
SciPieChartSurface rendered. |
void |
onSegmentCollectionDrasticallyChanged(IPieRenderableSeries series)
Called when parent
PieDonutRenderableSeriesBase.getSegmentsCollection() collection drastically changed. |
void |
onSegmentsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieSegment> args)
Called when parent
PieDonutRenderableSeriesBase.getSegmentsCollection() collection changes. |
void |
onSelectedPieSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieRenderableSeries> args)
Called when parent
SciPieChartSurface.getSelectedRenderableSeries() collection changes. |
void |
onSelectedSegmentsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieSegment> args)
Called when parent
PieDonutRenderableSeriesBase.getSelectedSegmentsCollection() collection changes. |
void |
onTouch(com.scichart.core.utility.touch.ModifierTouchEventArgs args) |
void |
setIsEnabled(boolean isEnabled)
Sets whether the modifier is enabled for interaction
|
void |
setReceiveHandledEvents(boolean receiveHandledEvents)
Sets a value indicating whether motion events should be propagated to the target.
|
public com.scichart.core.IServiceContainer getServices()
getServices
in interface com.scichart.core.IServiceProvider
public ISciPieChartSurface getParentSurface()
getParentSurface
in interface ISciPieChartSurfaceProvider
public boolean getReceiveHandledEvents()
getReceiveHandledEvents
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
public final void setReceiveHandledEvents(boolean receiveHandledEvents)
receiveHandledEvents
- The new receiveHandledEvents. True if motion events should be propagated to the target.public java.lang.String getEventsGroupTag()
getEventsGroupTag
in interface IChartModifierBase
public final boolean getIsEnabled()
getIsEnabled
in interface IChartModifierBase
getIsEnabled
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
public final void setIsEnabled(boolean isEnabled)
setIsEnabled
in interface IChartModifierBase
isEnabled
- The new isEnabled valueprotected void onIsEnabledChanged(boolean isEnabled)
isEnabled
- The new isEnabled valuepublic 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 isAttached()
isAttached
in interface com.scichart.core.framework.IAttachable
public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic final java.util.List<IPieRenderableSeries> getRenderableSeries()
SciPieChartSurface.getRenderableSeries()
collectiongetRenderableSeries
in interface IPieChartModifier
public final IChartModifierSurface getModifierSurface()
SciChartSurface.getModifierSurface()
getModifierSurface
in interface IChartModifierBase
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 onTouch(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
onTouch
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
public void onGenericMotion(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
onGenericMotion
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
public void onParentPieSurfaceResized(ResizedMessage message)
SciChartSurface
resized.onParentPieSurfaceResized
in interface ISciPieChartSurfaceChangeListener
message
- The resized message.public void onPieRenderSurfaceRendered(PieChartRenderedMessage message)
SciPieChartSurface
rendered.onPieRenderSurfaceRendered
in interface ISciPieChartSurfaceChangeListener
message
- The rendered message.public void onPieRenderableSeriesDrasticallyChanged(ISciPieChartSurface surface)
SciPieChartSurface.getRenderableSeries()
collection drastically changed.onPieRenderableSeriesDrasticallyChanged
in interface ISciPieChartSurfaceChangeListener
surface
- The parent surface.public void onPieRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieRenderableSeries> args)
SciPieChartSurface.getRenderableSeries()
collection changes.onPieRenderableSeriesCollectionChanged
in interface ISciPieChartSurfaceChangeListener
args
- The collection changed event args.public void onSelectedPieSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieRenderableSeries> args)
SciPieChartSurface.getSelectedRenderableSeries()
collection changes.onSelectedPieSeriesCollectionChanged
in interface ISciPieChartSurfaceChangeListener
args
- The collection changed event args.public void onSegmentCollectionDrasticallyChanged(IPieRenderableSeries series)
PieDonutRenderableSeriesBase.getSegmentsCollection()
collection drastically changed.onSegmentCollectionDrasticallyChanged
in interface ISciPieChartSurfaceChangeListener
series
- The associated IPieRenderableSeries
.public void onSegmentsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieSegment> args)
PieDonutRenderableSeriesBase.getSegmentsCollection()
collection changes.onSegmentsCollectionChanged
in interface ISciPieChartSurfaceChangeListener
args
- The collection changed event args.public void onSelectedSegmentsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IPieSegment> args)
PieDonutRenderableSeriesBase.getSelectedSegmentsCollection()
collection changes.onSelectedSegmentsCollectionChanged
in interface ISciPieChartSurfaceChangeListener
args
- The collection changed event args.