Class CursorTooltipWrapper
Defines a wrapper tooltip for ISeriesTooltip tooltip instance. It used with CursorModifier, to have transparent colors of inner ISeriesTooltip inside ITooltipContainer.
Implements
Inherited Members
Namespace:
Assembly: .dll
Syntax
public class CursorTooltipWrapper implements renderableSeriesISeriesTooltip
Constructors
CursorTooltipWrapper(renderableSeriesISeriesTooltip tooltip)
Creates a new instance of CursorTooltipWrapper class.
Declaration
public CursorTooltipWrapper(renderableSeriesISeriesTooltip tooltip)
Parameters
| Type | Name | Description |
|---|---|---|
| renderableSeriesISeriesTooltip | tooltip | The ISeriesTooltip instance which will be wrapped. |
Methods
applyThemeProvider(IThemeProvider themeProvider)
Applies specified theme to current instance
Declaration
public final void applyThemeProvider(IThemeProvider themeProvider)
Parameters
| Type | Name | Description |
|---|---|---|
| IThemeProvider | themeProvider |
attachTo(IServiceContainer services)
Declaration
public void attachTo(IServiceContainer services)
Parameters
| Type | Name | Description |
|---|---|---|
| IServiceContainer | services |
clear()
Declaration
public final void clear()
containsHitRenderableSeries(renderableSeries.IRenderableSeries renderableSeries)
Checks whether series info contains passed in IRenderableSeries instance. Used mostly StackedSeriesTooltipBase and inheritors.
Declaration
public final boolean containsHitRenderableSeries(renderableSeries.IRenderableSeries renderableSeries)
Parameters
| Type | Name | Description |
|---|---|---|
| renderableSeries.IRenderableSeries | renderableSeries |
Returns
| Type | Description |
|---|---|
| boolean |
detach()
Declaration
public void detach()
getRenderableSeries()
Gets the parent renderable series
Declaration
public final renderableSeries.IRenderableSeries getRenderableSeries()
Returns
| Type | Description |
|---|---|
| renderableSeries.IRenderableSeries |
getSeriesInfo()
Gets the associated SeriesInfo instance.
Declaration
public final renderableSeries.hitTest.SeriesInfo getSeriesInfo()
Returns
| Type | Description |
|---|---|
| SeriesInfo |
invalidate()
Invalidate ISeriesTooltip views using View#invalidate()
Declaration
public final void invalidate()
isAttached()
Declaration
public final boolean isAttached()
Returns
| Type | Description |
|---|---|
| boolean |
onDrawTooltipOverlay(Canvas canvas)
Draws overlay provided by this tooltip.
Declaration
public final void onDrawTooltipOverlay(Canvas canvas)
Parameters
| Type | Name | Description |
|---|---|---|
| android.graphics.Canvas | canvas |
placeInto(IViewContainer viewContainer)
Places this tooltip into provided IViewContainer
Declaration
public final void placeInto(IViewContainer viewContainer)
Parameters
| Type | Name | Description |
|---|---|---|
| IViewContainer | viewContainer |
removeFrom(IViewContainer viewContainer)
Removes this tooltip from provided IViewContainer
Declaration
public final void removeFrom(IViewContainer viewContainer)
Parameters
| Type | Name | Description |
|---|---|---|
| IViewContainer | viewContainer |
requestLayout()
Requests layout for ISeriesTooltip views using View#requestLayout()
Declaration
public final void requestLayout()
setTooltipBackgroundColor(int color)
Sets the background color for this ISeriesTooltip instance.
Declaration
public void setTooltipBackgroundColor(int color)
Parameters
| Type | Name | Description |
|---|---|---|
| int | color |
setTooltipStroke(int color)
Sets the stroke color for this ISeriesTooltip instance.
Declaration
public void setTooltipStroke(int color)
Parameters
| Type | Name | Description |
|---|---|---|
| int | color |
setTooltipTextColor(int color)
Sets the text color for this ISeriesTooltip instance.
Declaration
public void setTooltipTextColor(int color)
Parameters
| Type | Name | Description |
|---|---|---|
| int | color |
update(renderableSeries.hitTest.HitTestInfo hitTestInfo, boolean interpolate)
Updates this instance with information provided by hitTestInfo instance
Declaration
public final void update(renderableSeries.hitTest.HitTestInfo hitTestInfo, boolean interpolate)
Parameters
| Type | Name | Description |
|---|---|---|
| renderableSeries.hitTest.HitTestInfo | hitTestInfo | |
| boolean | interpolate |
updateTooltip(Action2<View,PointF> updateAction, PointF xyCoordinate)
Updates tooltips with specified updateAction.
Declaration
public final void updateTooltip(Action2<View,PointF> updateAction, PointF xyCoordinate)
Parameters
| Type | Name | Description |
|---|---|---|
| Action2<android.view.View,android.graphics.PointF> | updateAction | |
| android.graphics.PointF | xyCoordinate |