T
- The modifier to which this behavior will be attached.public class CursorTooltipBehavior<T extends CursorModifier> extends TooltipBehavior<T>
CursorModifier
and inheritors.CURSOR_XY_OFFSET
lastUpdatePoint, modifier, modifierType, parentSurface, services
Constructor and Description |
---|
CursorTooltipBehavior(java.lang.Class<T> modifierType,
int tooltipContainerLayoutResId)
Creates a new instance of
CursorTooltipBehavior class. |
Modifier and Type | Method and Description |
---|---|
protected boolean |
isHitPointValid(HitTestInfo hitTestInfo)
Gets the value indicating whether the
HitTestInfo instance is valid. |
void |
onBeginUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch down event. |
void |
onEndUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch up event. |
void |
onUpdate(android.graphics.PointF point,
boolean isMaster)
Called when associated
IChartModifier instance handle touch move event. |
protected void |
updateHitTestInfo(HitTestInfo hitTestInfo,
IRenderableSeries rs,
float x,
float y) |
applyThemeProvider, attachTo, clear, detach, getTooltipPosition, onObservableSeriesDrasticallyChanged, setTooltipPosition, tryUpdateTooltip
func, getObservableSeries, getSourceMode, getUseInterpolation, isSeriesValid, setObservableSeries, setSourceMode, setUseInterpolation
attachTo, getIsEnabled, isAttached, isLastPointValid, onIsEnabledChanged, resetLastUpdatePoint, setIsEnabled
public CursorTooltipBehavior(java.lang.Class<T> modifierType, int tooltipContainerLayoutResId)
CursorTooltipBehavior
class.modifierType
- The type of the associated IChartModifier
.tooltipContainerLayoutResId
- The layout resource id which will be used to inflate tooltip container.protected void updateHitTestInfo(HitTestInfo hitTestInfo, IRenderableSeries rs, float x, float y)
updateHitTestInfo
in class TooltipBehavior<T extends CursorModifier>
protected boolean isHitPointValid(HitTestInfo hitTestInfo)
HitTestInfo
instance is valid.isHitPointValid
in class TooltipBehaviorBase<T extends CursorModifier>
hitTestInfo
- The HitTestInfo
instance to test.public void onBeginUpdate(android.graphics.PointF point, boolean isMaster)
TooltipBehavior
IChartModifier
instance handle touch down event.onBeginUpdate
in class TooltipBehavior<T extends CursorModifier>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.public void onUpdate(android.graphics.PointF point, boolean isMaster)
TooltipBehavior
IChartModifier
instance handle touch move event.onUpdate
in class TooltipBehavior<T extends CursorModifier>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.public void onEndUpdate(android.graphics.PointF point, boolean isMaster)
IChartModifier
instance handle touch up event.onEndUpdate
in class TooltipBehavior<T extends CursorModifier>
point
- The current touch point.isMaster
- Indicates whether this behavior is called on the master chart.