public class SwitchableModifierGroup extends ModifierGroup implements SimpleTwoFingerDoubleTapDetector.OnTwoFingerDoubleTapListener
ModifierGroup
which allows to organize child modifiers in groups and switch between themModifier and Type | Class and Description |
---|---|
static class |
SwitchableModifierGroup.GroupManager |
Modifier and Type | Field and Description |
---|---|
protected SwitchableModifierGroup.GroupManager |
manager |
services
Constructor and Description |
---|
SwitchableModifierGroup() |
Modifier and Type | Method and Description |
---|---|
void |
addModifier(IChartModifier modifier)
Adds modifier outside any group so it works all the time
|
void |
addModifierWithGroup(IChartModifier modifier,
java.lang.String group)
Adds modifier to specified group
|
protected boolean |
isTouchArgsValidForModifier(com.scichart.core.utility.touch.ModifierTouchEventArgs args,
IChartModifier modifier)
Checks if
ModifierTouchEventArgs are valid for specified modifier |
void |
onTouch(com.scichart.core.utility.touch.ModifierTouchEventArgs args) |
void |
onTwoFingerDoubleTap()
Notified when a double-tap occurs.
|
void |
removeModifigierWithGroup(IChartModifier modifier)
Removes modifier and deregister it from all groups
|
applyThemeProvider, attachTo, detach, getChildModifierByTag, getChildModifiers, getEventsSource, getMotionEventGroup, onAnnotationsCollectionChanged, onAnnotationsDrasticallyChanged, onGenericMotion, onIsEnabledChanged, onParentSurfaceResized, onRenderableSeriesCollectionChanged, onRenderableSeriesDrasticallyChanged, onRenderSurfaceRendered, onSelectedSeriesCollectionChanged, onXAxesCollectionChanged, onXAxesDrasticallyChanged, onYAxesCollectionChanged, onYAxesDrasticallyChanged, setChildModifiers, setMotionEventGroup
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
protected final SwitchableModifierGroup.GroupManager manager
public void addModifier(IChartModifier modifier)
modifier
- The modifier to addpublic void addModifierWithGroup(IChartModifier modifier, java.lang.String group)
modifier
- The modifier to addgroup
- The target grouppublic void removeModifigierWithGroup(IChartModifier modifier)
modifier
- The modifier to removepublic void onTouch(com.scichart.core.utility.touch.ModifierTouchEventArgs args)
ModifierGroup
onTouch
in interface com.scichart.core.utility.touch.IReceiveMotionEvents
onTouch
in class ModifierGroup
public void onTwoFingerDoubleTap()
SimpleTwoFingerDoubleTapDetector.OnTwoFingerDoubleTapListener
onTwoFingerDoubleTap
in interface SimpleTwoFingerDoubleTapDetector.OnTwoFingerDoubleTapListener
protected boolean isTouchArgsValidForModifier(com.scichart.core.utility.touch.ModifierTouchEventArgs args, IChartModifier modifier)
ModifierGroup
ModifierTouchEventArgs
are valid for specified modifierisTouchArgsValidForModifier
in class ModifierGroup
args
- The args to process by modifiermodifier
- The target modifier