public interface TooltipPositioner
Modifier and Type | Method and Description |
---|---|
Point |
computePosition(IsChart chart,
List<DatasetReference> items,
Point eventPoint)
Applies own logic to returns the point where the tooltip must be showed.
|
CustomTooltipPosition |
getName()
Returns the name of tooltip position which must be used in chart options.
|
static boolean |
isValid(TooltipPositioner tooltipPositioner)
Returns
true if tooltip positioner passed as argument is not null and its name is not null as well. |
static boolean isValid(TooltipPositioner tooltipPositioner)
true
if tooltip positioner passed as argument is not null
and its name is not null
as well.tooltipPositioner
- tooltip positioner to be checkedtrue
if tooltip positioner passed as argument is not null
and its name is not null
CustomTooltipPosition getName()
Tooltips.setPosition(org.pepstock.charba.client.enums.IsTooltipPosition)
Point computePosition(IsChart chart, List<DatasetReference> items, Point eventPoint)
chart
- chart instanceitems
- list of dataset reference itemseventPoint
- the point of event when the method has been invokednull
, the default tooltip positioner will be used to provide a consistent point where tooltip will be
showed