public class ModifierGroup extends ChartModifierBase implements com.scichart.core.utility.touch.IReceiveMotionEventGroup
SciChartSurface.chartModifiers
.
Child modifiers are stored in the childModifiers
collection.Constructor and Description |
---|
ModifierGroup()
Creates a new
ModifierGroup instance. |
ModifierGroup(IChartModifier... childModifiers)
Creates a new
ModifierGroup instance. |
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() |
IChartModifier |
getChildModifierByTag(java.lang.String eventsGroupTag)
Looks for a
IChartModifier with the specified eventsGroupTag in the collection of child modifiers. |
ChartModifierCollection |
getChildModifiers()
Gets the list of
IChartModifier in this group. |
com.scichart.core.framework.IHitTestable |
getEventsSource()
Gets the (@Link IChartModifierSurface) associated with this (@Link ModifierGroup).
|
java.lang.String |
getMotionEventGroup() |
void |
onAnnotationsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAnnotation> args)
Called when parent
SciChartSurface.getAnnotations() collection changes |
void |
onAnnotationsDrasticallyChanged(ISciChartSurface surface)
Called when parent
SciChartSurface.getAnnotations() collection drastically changed |
void |
onGenericMotion(com.scichart.core.utility.touch.ModifierTouchEventArgs args) |
protected void |
onIsEnabledChanged(boolean isEnabled)
Called when isEnabled value has changed
|
void |
onParentSurfaceResized(ResizedMessage message)
Called when parent
SciChartSurface resized |
void |
onRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IRenderableSeries> args)
Called when parent
SciChartSurface.getRenderableSeries() collection changes |
void |
onRenderableSeriesDrasticallyChanged(ISciChartSurface surface)
Called when parent
SciChartSurface.getRenderableSeries() collection drastically changed |
void |
onRenderSurfaceRendered(RenderedMessage message)
Called when parent
SciChartSurface.getRenderSurface() rendered |
void |
onSelectedSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IRenderableSeries> args)
Called when parent
SciChartSurface.getSelectedRenderableSeries() collection changes |
void |
onTouch(com.scichart.core.utility.touch.ModifierTouchEventArgs args) |
void |
onXAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
Called when parent
SciChartSurface.getXAxes() collection changes |
void |
onXAxesDrasticallyChanged(ISciChartSurface surface)
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(ISciChartSurface surface)
Called when parent
SciChartSurface.getYAxes() collection drastically changed |
void |
setChildModifiers(ChartModifierCollection childModifiers)
Sets the list of
IChartModifier in this group. |
void |
setMotionEventGroup(java.lang.String eventGroup)
Sets the ID of the motion event group, which is used to share motion events across multiple targets.
|
getContext, getEventsGroupTag, getIsEnabled, getMasterModifier, getModifierSurface, getParentSurface, getPointRelativeTo, getReceiveHandledEvents, getRenderableSeries, getRenderableSeriesArea, getServices, getXAxes, getXAxis, getXAxis, getYAxes, getYAxis, getYAxis, isAttached, isWithinSourceBounds, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
public ModifierGroup()
ModifierGroup
instance.public ModifierGroup(IChartModifier... childModifiers)
ModifierGroup
instance.childModifiers
- The child modifiers.public final java.lang.String getMotionEventGroup()
getMotionEventGroup
in interface com.scichart.core.utility.touch.IReceiveMotionEventGroup
public com.scichart.core.framework.IHitTestable getEventsSource()
getEventsSource
in interface com.scichart.core.utility.touch.IReceiveMotionEventGroup
public final void setMotionEventGroup(java.lang.String eventGroup)
eventGroup
- The String
tag of the motion event group.public final ChartModifierCollection getChildModifiers()
IChartModifier
in this group.public final IChartModifier getChildModifierByTag(java.lang.String eventsGroupTag)
IChartModifier
with the specified eventsGroupTag in the collection of child modifiers.eventsGroupTag
- Tag of the event group.IChartModifier
instance associated with eventsGroupTag.public final void setChildModifiers(ChartModifierCollection childModifiers)
IChartModifier
in this group.childModifiers
- The new list of modifiers in this group.public void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class ChartModifierBase
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class ChartModifierBase
public void applyThemeProvider(IThemeProvider themeProvider)
applyThemeProvider
in interface IThemeable
applyThemeProvider
in class ChartModifierBase
themeProvider
- The IThemeProvider
instance which provides new theme for current instancepublic void onTouch(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
onTouch
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
onTouch
in class ChartModifierBase
public void onGenericMotion(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
onGenericMotion
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
onGenericMotion
in class ChartModifierBase
protected void onIsEnabledChanged(boolean isEnabled)
onIsEnabledChanged
in class ChartModifierBase
isEnabled
- The new isEnabled valuepublic void onParentSurfaceResized(ResizedMessage message)
SciChartSurface
resizedonParentSurfaceResized
in interface ISciChartSurfaceChangeListener
onParentSurfaceResized
in class ChartModifierBase
message
- The resized messagepublic void onRenderSurfaceRendered(RenderedMessage message)
SciChartSurface.getRenderSurface()
renderedonRenderSurfaceRendered
in interface ISciChartSurfaceChangeListener
onRenderSurfaceRendered
in class ChartModifierBase
message
- The rendered messagepublic void onXAxesDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getXAxes()
collection drastically changedonXAxesDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onXAxesDrasticallyChanged
in class ChartModifierBase
surface
- The parent surfacepublic void onYAxesDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getYAxes()
collection drastically changedonYAxesDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onYAxesDrasticallyChanged
in class ChartModifierBase
surface
- The parent surfacepublic void onRenderableSeriesDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getRenderableSeries()
collection drastically changedonRenderableSeriesDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onRenderableSeriesDrasticallyChanged
in class ChartModifierBase
surface
- The parent surfacepublic void onAnnotationsDrasticallyChanged(ISciChartSurface surface)
SciChartSurface.getAnnotations()
collection drastically changedonAnnotationsDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onAnnotationsDrasticallyChanged
in class ChartModifierBase
surface
- The parent surfacepublic void onXAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
SciChartSurface.getXAxes()
collection changesonXAxesCollectionChanged
in interface ISciChartSurfaceChangeListener
onXAxesCollectionChanged
in class ChartModifierBase
args
- The collection changed event argspublic void onYAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
SciChartSurface.getYAxes()
collection changesonYAxesCollectionChanged
in interface ISciChartSurfaceChangeListener
onYAxesCollectionChanged
in class ChartModifierBase
args
- The collection changed event argspublic void onRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IRenderableSeries> args)
SciChartSurface.getRenderableSeries()
collection changesonRenderableSeriesCollectionChanged
in interface ISciChartSurfaceChangeListener
onRenderableSeriesCollectionChanged
in class ChartModifierBase
args
- The collection changed event argspublic void onAnnotationsCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAnnotation> args)
SciChartSurface.getAnnotations()
collection changesonAnnotationsCollectionChanged
in interface ISciChartSurfaceChangeListener
onAnnotationsCollectionChanged
in class ChartModifierBase
args
- The collection changed event argspublic void onSelectedSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IRenderableSeries> args)
SciChartSurface.getSelectedRenderableSeries()
collection changesonSelectedSeriesCollectionChanged
in interface ISciChartSurfaceChangeListener
onSelectedSeriesCollectionChanged
in class ChartModifierBase
args
- The collection changed event args