public class ModifierGroup extends ChartModifierBase implements com.scichart.core.utility.touch.IReceiveMotionEventGroup
SciChartSurface.getChartModifiers()
.
Child modifiers are stored in the childModifiers
collection.services
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() |
protected boolean |
isTouchArgsValidForModifier(com.scichart.core.utility.touch.ModifierTouchEventArgs args,
IChartModifier modifier)
Checks if
ModifierTouchEventArgs are valid for specified modifier |
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 |
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 chart resized.
|
void |
onRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<? extends IRenderableSeriesCore> args)
Called when RenderableSeries changes
|
void |
onRenderableSeriesDrasticallyChanged()
Called when RenderableSeries collection drastically changed
|
void |
onRenderSurfaceRendered(RenderedMessage message)
Called when parent
SciChartSurface.getRenderSurface() rendered |
void |
onSelectedSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<? extends IRenderableSeriesCore> args)
Called when SelectedSeries 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()
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 |
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, getMasterModifier, getModifierSurface, getParentSurface, getPointRelativeTo, getRenderableSeries, getRenderableSeriesArea, getXAxes, getXAxis, getXAxis, getYAxes, getYAxis, getYAxis, isWithinSourceBounds
checkPointerCounter, getEventsGroupTag, getIsEnabled, getReceiveHandledEvents, getServices, isAttached, setEventsGroupTag, setIsEnabled, setReceiveHandledEvents
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getPointRelativeTo
getIsEnabled, getName, getReceiveHandledEvents
getEventsGroupTag, getIsEnabled, setIsEnabled
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(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 ChartModifierCore
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 ChartModifierCore
public void onGenericMotion(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
onGenericMotion
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
onGenericMotion
in class ChartModifierCore
protected boolean isTouchArgsValidForModifier(com.scichart.core.utility.touch.ModifierTouchEventArgs args, IChartModifier modifier)
ModifierTouchEventArgs
are valid for specified modifierargs
- The args to process by modifiermodifier
- The target modifierprotected void onIsEnabledChanged(boolean isEnabled)
onIsEnabledChanged
in class ChartModifierCore
isEnabled
- The new isEnabled valuepublic void onParentSurfaceResized(ResizedMessage message)
onParentSurfaceResized
in interface IChartResizeListener
onParentSurfaceResized
in class ChartModifierBase
message
- The resized message.public void onRenderSurfaceRendered(RenderedMessage message)
SciChartSurface.getRenderSurface()
renderedonRenderSurfaceRendered
in interface ISciChartSurfaceChangeListener
onRenderSurfaceRendered
in class ChartModifierBase
message
- The rendered messagepublic void onXAxesDrasticallyChanged()
SciChartSurface.getXAxes()
collection drastically changedonXAxesDrasticallyChanged
in interface IAxesChangeListener
onXAxesDrasticallyChanged
in class ChartModifierBase
public void onYAxesDrasticallyChanged()
SciChartSurface.getYAxes()
collection drastically changedonYAxesDrasticallyChanged
in interface IAxesChangeListener
onYAxesDrasticallyChanged
in class ChartModifierBase
public void onRenderableSeriesDrasticallyChanged()
onRenderableSeriesDrasticallyChanged
in interface IRenderableSeriesChangeListener
onRenderableSeriesDrasticallyChanged
in class ChartModifierCore
public void onAnnotationsDrasticallyChanged()
SciChartSurface.getAnnotations()
collection drastically changedonAnnotationsDrasticallyChanged
in interface ISciChartSurfaceChangeListener
onAnnotationsDrasticallyChanged
in class ChartModifierBase
public void onXAxesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<IAxis> args)
SciChartSurface.getXAxes()
collection changesonXAxesCollectionChanged
in interface IAxesChangeListener
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 IAxesChangeListener
onYAxesCollectionChanged
in class ChartModifierBase
args
- The collection changed event argspublic void onRenderableSeriesCollectionChanged(com.scichart.core.observable.CollectionChangedEventArgs<? extends IRenderableSeriesCore> args)
onRenderableSeriesCollectionChanged
in interface IRenderableSeriesChangeListener
onRenderableSeriesCollectionChanged
in class ChartModifierCore
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<? extends IRenderableSeriesCore> args)
onSelectedSeriesCollectionChanged
in interface IRenderableSeriesChangeListener
onSelectedSeriesCollectionChanged
in class ChartModifierCore
args
- The collection changed event args