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 CrosshairLabelsFontgetFont()Returns the font object.voidsetBackgroundColor(String color)Sets the background color.voidsetBackgroundColor(IsColor color)Sets the background color.voidsetBorderColor(String borderColor)Sets the border color.voidsetBorderColor(IsColor borderColor)Sets the border color.voidsetBorderRadius(int borderRadius)Sets the label border radius (in pixels).voidsetBorderWidth(int borderWidth)Sets the border width.voidsetColor(String color)Sets the crosshair label font color.voidsetColor(IsColor color)Set the crosshair label font color.voidsetDisplay(boolean display)Setstrueif label will be applied in the chart, otherwisefalse.voidsetPadding(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)
Setstrueif label will be applied in the chart, otherwisefalse.- Parameters:
display-trueif 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.
-
-