public class PieChartTooltipModifier extends PieChartTooltipModifierBase
SciPieChartSurface
and set PieChartModifierBase.isEnabled
to True to enable this behaviour.showTooltipProperty, sourceModeProperty, tooltipBehavior
Modifier | Constructor and Description |
---|---|
|
PieChartTooltipModifier()
Creates a new instance of the
PieChartTooltipModifier class. |
|
PieChartTooltipModifier(PieChartDrawableBehavior<?> drawableBehavior)
Creates a new instance of the
PieChartTooltipModifier class with the PieChartDrawableBehavior instance. |
|
PieChartTooltipModifier(PieChartDrawableBehavior<?> drawableBehavior,
int tooltipContainerLayoutResId)
Creates a new instance of the
PieChartTooltipModifier class. |
protected |
PieChartTooltipModifier(PieChartTooltipBehavior<?> tooltipBehavior,
PieChartDrawableBehavior<?> drawableBehavior)
Creates a new instance of the
PieChartTooltipModifier class. |
Modifier and Type | Method and Description |
---|---|
void |
attachTo(com.scichart.core.IServiceContainer services) |
protected void |
clearAll()
When overridden in a derived class, this method should clear all markers and tooltips from the
SciPieChartSurface.chartModifierSurface . |
void |
detach() |
android.graphics.PointF |
getCustomPointOffset()
Gets the
PointF value which will replace offset and will be used to shift tooltip and the marker in custom x and y directions. |
Placement |
getMarkerPlacement()
Gets the
Placement mode, to determine where to place tooltip and the marker relatively to the Hit-test point. |
float |
getOffset()
Gets the offset on which tooltip and the marker will be shifted in x and y directions.
|
android.graphics.Paint |
getTooltipPointMarkerPaint()
Gets the
Paint instance which will be used by PieChartCrossDrawableBehavior do draw the marker. |
TooltipPosition |
getTooltipPosition()
Gets the
TooltipPosition mode, to determine where to place tooltip relatively to the marker. |
protected void |
handleMasterTouchDownEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_DOWN |
protected void |
handleMasterTouchMoveEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_MOVE |
protected void |
handleMasterTouchUpEvent(android.graphics.PointF point)
When overridden in a derived class, called to handle the Master
ChartModifierBase MotionEvent.ACTION_UP |
void |
setCustomPointOffset(android.graphics.PointF customPointOffset)
Sets the
PointF value which will replace offset and will be used to shift tooltip and the marker in custom x and y directions. |
void |
setMarkerPlacement(Placement markerPlacement)
Sets the
Placement mode, to determine where to place tooltip and the marker relatively to the Hit-test point. |
void |
setOffset(float offset)
Sets the offset on which tooltip and the marker will be shifted in x and y directions.
|
void |
setTooltipPosition(TooltipPosition tooltipPosition)
Sets the
TooltipPosition mode, to determine where to place tooltip relatively to the marker. |
protected void |
updateCurrentPoint(android.graphics.PointF currentPoint,
com.scichart.core.utility.touch.ModifierTouchEventArgs args)
Updates the passed in current point when one of the following methods was called:
MasterSlaveTouchModifierBase.onTouchDown(ModifierTouchEventArgs) ,
MasterSlaveTouchModifierBase.onTouchMove(ModifierTouchEventArgs) ,
MasterSlaveTouchModifierBase.onTouchUp(ModifierTouchEventArgs) . |
getObservableSeries, getShowTooltip, getSourceMode, handleSlaveTouchDownEvent, handleSlaveTouchMoveEvent, handleSlaveTouchUpEvent, onPieRenderableSeriesDrasticallyChanged, setShowTooltip, setSourceMode
isEnabledAt, onTouchDown, onTouchMove, onTouchUp
onTouch, onTouchCancel
applyThemeProvider, getContext, getEventsGroupTag, getIsEnabled, getModifierSurface, getParentSurface, getPointRelativeTo, getReceiveHandledEvents, getRenderableSeries, getServices, isAttached, onGenericMotion, onIsEnabledChanged, onParentPieSurfaceResized, onPieRenderableSeriesCollectionChanged, onPieRenderSurfaceRendered, onSegmentCollectionDrasticallyChanged, onSegmentsCollectionChanged, onSelectedPieSeriesCollectionChanged, onSelectedSegmentsCollectionChanged, setIsEnabled, setReceiveHandledEvents
public PieChartTooltipModifier()
PieChartTooltipModifier
class.public PieChartTooltipModifier(PieChartDrawableBehavior<?> drawableBehavior)
PieChartTooltipModifier
class with the PieChartDrawableBehavior
instance.drawableBehavior
- The PieChartDrawableBehavior
instance which will be use to show marker which will identify what point will be Hit-tested.public PieChartTooltipModifier(PieChartDrawableBehavior<?> drawableBehavior, @LayoutRes int tooltipContainerLayoutResId)
PieChartTooltipModifier
class.drawableBehavior
- The PieChartDrawableBehavior
instance which will be use to show marker which will identify what point will be Hit-tested.tooltipContainerLayoutResId
- The layout resource id which will be used to inflate tooltip container.protected PieChartTooltipModifier(PieChartTooltipBehavior<?> tooltipBehavior, PieChartDrawableBehavior<?> drawableBehavior)
PieChartTooltipModifier
class.tooltipBehavior
- The PieChartTooltipBehavior
which will be associated with this modifier.drawableBehavior
- The PieChartDrawableBehavior
instance which will be use to show marker which will identify what point will be Hit-tested.public float getOffset()
public void setOffset(float offset)
offset
- Value which indicates the offset on which tooltip and the marker will be shifted in x and y directions.public android.graphics.PointF getCustomPointOffset()
PointF
value which will replace offset
and will be used to shift tooltip and the marker in custom x and y directions.PointF
offset to shift tooltip.public void setCustomPointOffset(android.graphics.PointF customPointOffset)
PointF
value which will replace offset
and will be used to shift tooltip and the marker in custom x and y directions.customPointOffset
- The new PointF
value which will replace offset
and will be used to shift tooltip and the marker in custom x and y directions.public Placement getMarkerPlacement()
Placement
mode, to determine where to place tooltip and the marker relatively to the Hit-test point.Placement
modes, to place tooltip properly.public void setMarkerPlacement(Placement markerPlacement)
Placement
mode, to determine where to place tooltip and the marker relatively to the Hit-test point.markerPlacement
- The new Placement
mode, to determine where to place tooltip and the marker relatively to the Hit-test point.public TooltipPosition getTooltipPosition()
TooltipPosition
mode, to determine where to place tooltip relatively to the marker.TooltipPosition
modes, to place tooltip properly.public void setTooltipPosition(TooltipPosition tooltipPosition)
TooltipPosition
mode, to determine where to place tooltip relatively to the marker.tooltipPosition
- The new TooltipPosition
mode, to determine where to place tooltip relatively to the marker.public final android.graphics.Paint getTooltipPointMarkerPaint()
Paint
instance which will be used by PieChartCrossDrawableBehavior
do draw the marker.Paint
instance which will be used by PieChartCrossDrawableBehavior
do draw the marker.public void attachTo(@NonNull com.scichart.core.IServiceContainer services)
attachTo
in interface com.scichart.core.framework.IAttachable
attachTo
in class PieChartTooltipModifierBase
public void detach()
detach
in interface com.scichart.core.framework.IAttachable
detach
in class PieChartTooltipModifierBase
protected void clearAll()
SciPieChartSurface.chartModifierSurface
.clearAll
in class PieChartTooltipModifierBase
protected void handleMasterTouchDownEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_DOWN
handleMasterTouchDownEvent
in class PieChartTooltipModifierBase
point
- The current touch pointprotected void handleMasterTouchUpEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_UP
handleMasterTouchUpEvent
in class PieChartTooltipModifierBase
point
- The current touch pointprotected void handleMasterTouchMoveEvent(android.graphics.PointF point)
ChartModifierBase
MotionEvent.ACTION_MOVE
handleMasterTouchMoveEvent
in class PieChartTooltipModifierBase
point
- The current touch pointprotected void updateCurrentPoint(android.graphics.PointF currentPoint, com.scichart.core.utility.touch.ModifierTouchEventArgs args)
MasterSlaveTouchModifierBase.onTouchDown(ModifierTouchEventArgs)
,
MasterSlaveTouchModifierBase.onTouchMove(ModifierTouchEventArgs)
,
MasterSlaveTouchModifierBase.onTouchUp(ModifierTouchEventArgs)
.updateCurrentPoint
in class PieChartMasterSlaveTouchModifierBase
currentPoint
- The point which will be updated.args
- The ModifierTouchEventArgs
which is used to update the passed in currentPoint.