Class AbstractTooltipPositioner
- java.lang.Object
-
- org.pepstock.charba.client.positioner.AbstractTooltipPositioner
-
- All Implemented Interfaces:
TooltipPositioner
public abstract class AbstractTooltipPositioner extends Object implements TooltipPositioner
Abstract class which implements a positioner. It helps to create a custom positioner, creating a custom tooltip position using the name as string passed as argument.- Author:
- Andrea "Stock" Stocchero
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractTooltipPositioner(String name)
Creates the positioner passing the name of tooltip position as argument.
If the name is one of out of the box ones, seeTooltipPosition
, an exception is launched.
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CustomTooltipPosition
getName()
Returns the name of tooltip position which must be used in chart options.-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pepstock.charba.client.positioner.TooltipPositioner
computePosition
-
-
-
-
Constructor Detail
-
AbstractTooltipPositioner
protected AbstractTooltipPositioner(String name)
Creates the positioner passing the name of tooltip position as argument.
If the name is one of out of the box ones, seeTooltipPosition
, an exception is launched.- Parameters:
name
- of tooltip position.
-
-
Method Detail
-
getName
public final CustomTooltipPosition getName()
Description copied from interface:TooltipPositioner
Returns the name of tooltip position which must be used in chart options.- Specified by:
getName
in interfaceTooltipPositioner
- Returns:
- the name of tooltip position.
- See Also:
Tooltips.setPosition(org.pepstock.charba.client.enums.IsTooltipPosition)
-
-