public class

DefaultTooltipView

extends RelativeLayout
java.lang.Object
   ↳ android.view.View
     ↳ android.view.ViewGroup
       ↳ android.widget.RelativeLayout
         ↳ com.shinobicontrols.charts.DefaultTooltipView

Class Overview

The android.view.View used by default by the Tooltip to present information to the user in response to a tracking gesture, such as a long press to activate the Crosshair or a swipe while the crosshair is active to move it.

The way the information is presented depends on the type of data point the tooltip is using to update its content. For a data point that implements MultiValueData, on a BandSeries the X, High, and Low values will be displayed. For a CandlestickSeries or an OHLCSeries the Open and Close values will be shown in addition. For all other series types, or for data points that only implement Data, an X and Y value will be displayed.

Only an instance of DefaultTooltipView will adhere to the styling options chosen in the Crosshair's CrosshairStyle object. Equally, only this class will be updated by default as user gestures occur, assuming no overriding ShinobiChart.OnTrackingInfoChangedForTooltipListener has been set on the chart. The default updating behavior, however, can be obtained through the updateTooltipContent(Tooltip, DataPoint) method.

Summary

[Expand]
Inherited Constants
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
[Expand]
Inherited Fields
From class android.view.View
Public Constructors
DefaultTooltipView(Context context)
Constructs a DefaultTooltipView.
Public Methods
final void setText(CharSequence text)
Sets the content displayed in this view to text.
final void setText(int resid)
Sets the content displayed in this view to the specified string resource.
[Expand]
Inherited Methods
From class android.widget.RelativeLayout
From class android.view.ViewGroup
From class android.view.View
From class java.lang.Object
From interface android.graphics.drawable.Drawable.Callback
From interface android.view.KeyEvent.Callback
From interface android.view.ViewManager
From interface android.view.ViewParent
From interface android.view.accessibility.AccessibilityEventSource

Public Constructors

public DefaultTooltipView (Context context)

Constructs a DefaultTooltipView.

Parameters
context the Context the view is running in, through which it can access the current theme, resources, etc.

Public Methods

public final void setText (CharSequence text)

Sets the content displayed in this view to text.

Parameters
text the text to display in this view

public final void setText (int resid)

Sets the content displayed in this view to the specified string resource.

Parameters
resid the string resource containing the text to display in this view