Class CrosshairLabels
- java.lang.Object
-
- org.pepstock.charba.client.impl.plugins.CrosshairLabels
-
public final class CrosshairLabels extends Object
Utility provided to the user in order to set the same values to all labels, X and Y.- Author:
- Andrea "Stock" Stocchero
-
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description CrosshairLabelsFont
getFont()
Returns the font object.void
setBackgroundColor(String color)
Sets the background color.void
setBackgroundColor(IsColor color)
Sets the background color.void
setBorderColor(String borderColor)
Sets the border color.void
setBorderColor(IsColor borderColor)
Sets the border color.void
setBorderRadius(int borderRadius)
Sets the label border radius (in pixels).void
setBorderWidth(int borderWidth)
Sets the border width.void
setColor(String color)
Sets the crosshair label font color.void
setColor(IsColor color)
Set the crosshair label font color.void
setDisplay(boolean display)
Setstrue
if label will be applied in the chart, otherwisefalse
.void
setPadding(int padding)
Sets the padding of crosshair label.
-
-
-
Method Detail
-
getFont
public CrosshairLabelsFont getFont()
Returns the font object.- Returns:
- the font object.
-
setDisplay
public void setDisplay(boolean display)
Setstrue
if label will be applied in the chart, otherwisefalse
.- Parameters:
display
-true
if label will be applied in the chart, otherwisefalse
-
setColor
public void setColor(String color)
Sets the crosshair label font color.- Parameters:
color
- the crosshair label font color.
-
setColor
public void setColor(IsColor color)
Set the crosshair label font color.- Parameters:
color
- the crosshair label font color.
-
setPadding
public void setPadding(int padding)
Sets the padding of crosshair label.- Parameters:
padding
- padding of crosshair label
-
setBackgroundColor
public void setBackgroundColor(String color)
Sets the background color.- Parameters:
color
- the background color.
-
setBackgroundColor
public void setBackgroundColor(IsColor color)
Sets the background color.- Parameters:
color
- the background color.
-
setBorderRadius
public void setBorderRadius(int borderRadius)
Sets the label border radius (in pixels).- Parameters:
borderRadius
- the label border radius (in pixels).
-
setBorderColor
public void setBorderColor(IsColor borderColor)
Sets the border color.- Parameters:
borderColor
- the border color.
-
setBorderColor
public void setBorderColor(String borderColor)
Sets the border color.- Parameters:
borderColor
- the border color.
-
setBorderWidth
public void setBorderWidth(int borderWidth)
Sets the border width.- Parameters:
borderWidth
- the border width.
-
-