Package org.pepstock.charba.client.items
Class TooltipLabelColor
- java.lang.Object
- 
- org.pepstock.charba.client.commons.NativeObjectContainer
- 
- org.pepstock.charba.client.items.TooltipLabelColor
 
 
- 
 public final class TooltipLabelColor extends NativeObjectContainer This object contains the color info when a label in the tooltip.
 It must be used in the label tooltip callback.- Author:
- Andrea "Stock" Stocchero
 
- 
- 
Nested Class SummaryNested Classes Modifier and Type Class Description static classTooltipLabelColor.TooltipLabelColorFactoryInner class to create tooltip label color by a native object.
 - 
Field SummaryFields Modifier and Type Field Description static TooltipLabelColor.TooltipLabelColorFactoryFACTORYTooltip color factory to create label color objects.
 - 
Constructor SummaryConstructors Constructor Description TooltipLabelColor()Creates the object with an empty native object.TooltipLabelColor(String backgroundColor)Creates the object with initial colors.TooltipLabelColor(String backgroundColor, String borderColor)Creates the object with initial colors.TooltipLabelColor(IsColor backgroundColor)Creates the object with initial colors.TooltipLabelColor(IsColor backgroundColor, IsColor borderColor)Creates the object with initial colors.
 - 
Method SummaryAll Methods Instance Methods Concrete Methods Modifier and Type Method Description IsColorgetBackgroundColor()Returns the background color of the label.CanvasGradientItemgetBackgroundColorAsCanvasGradient()Returns the background color as canvas gradient.CanvasPatternItemgetBackgroundColorAsCanvasPattern()Returns the background color as canvas pattern.GradientgetBackgroundColorAsGradient()Returns the background color as gradient.PatterngetBackgroundColorAsPattern()Returns the background color as pattern.StringgetBackgroundColorAsString()Returns the background color of the label.IsColorgetBorderColor()Returns the border color of the label.CanvasGradientItemgetBorderColorAsCanvasGradient()Returns the border color as canvas gradient.GradientgetBorderColorAsGradient()Returns the border color as gradient.StringgetBorderColorAsString()Returns the border color of the label.List<Integer>getBorderDash()Returns the line dash pattern used when stroking borders, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.intgetBorderRadius()Returns the bar border radius (in pixels).intgetBorderWidth()Returns the border width.booleanisBackgroundColorAsColor()Returnstrueif the background color of the tooltip item is defined as color.booleanisBackgroundColorAsGradient()Returnstrueif the background color of the tooltip item is defined as gradient.booleanisBackgroundColorAsPattern()Returnstrueif the background color of the tooltip item is defined as canvas pattern.booleanisBorderColorAsColor()Returnstrueif the border color of the tooltip item is defined as color.booleanisBorderColorAsGradient()Returnstrueif the border color of the tooltip item is defined as gradient.NativeObjectnativeObject()Wraps the protected method to get the java script object in order to consume it.voidsetBackgroundColor(String backgroundColor)Sets the background color of the tooltip item as string.voidsetBackgroundColor(IsColor backgroundColor)Sets the background color of the tooltip item.voidsetBackgroundColor(TooltipItem tooltipItem, Gradient gradient)Sets the background color of the tooltip item as gradient.voidsetBackgroundColor(TooltipItem tooltipItem, Pattern pattern)Sets the background color of the tooltip item as patternvoidsetBorderColor(String borderColor)Sets border color as stringvoidsetBorderColor(IsColor borderColor)Sets border colorvoidsetBorderColor(CanvasGradientItem gradient)Sets the border color of the tooltip item as canvas gradient.voidsetBorderColor(TooltipItem tooltipItem, Gradient gradient)Sets the border color of the tooltip item as gradient.voidsetBorderDash(int... borderDash)Sets the line dash pattern used when stroking borders, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.voidsetBorderRadius(int borderRadius)Sets the bar border radius (in pixels).voidsetBorderWidth(int borderWidth)Sets the border width.- 
Methods inherited from class org.pepstock.charba.client.commons.NativeObjectContainercheckDefaultValuesArgument, empty, getArrayValue, getElement, getIncrementalId, getNativeChart, getNativeEvent, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, isType, keys, loadNativeObject, remove, remove, setArrayValue, setArrayValue, setArrayValue, setElement, setEmptyValue, setNewIncrementalId, setNewIncrementalId, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
 
- 
 
- 
- 
- 
Field Detail- 
FACTORYpublic static final TooltipLabelColor.TooltipLabelColorFactory FACTORY Tooltip color factory to create label color objects.
 
- 
 - 
Constructor Detail- 
TooltipLabelColorpublic TooltipLabelColor() Creates the object with an empty native object.
 - 
TooltipLabelColorpublic TooltipLabelColor(IsColor backgroundColor) Creates the object with initial colors.- Parameters:
- backgroundColor- background color to be set
 
 - 
TooltipLabelColorpublic TooltipLabelColor(IsColor backgroundColor, IsColor borderColor) Creates the object with initial colors.- Parameters:
- backgroundColor- background color to be set
- borderColor- border color to be set
 
 - 
TooltipLabelColorpublic TooltipLabelColor(String backgroundColor) Creates the object with initial colors.- Parameters:
- backgroundColor- background color to be set
 
 
- 
 - 
Method Detail- 
setBackgroundColorpublic void setBackgroundColor(String backgroundColor) Sets the background color of the tooltip item as string.- Parameters:
- backgroundColor- the background color of the tooltip item
 
 - 
setBackgroundColorpublic void setBackgroundColor(IsColor backgroundColor) Sets the background color of the tooltip item.- Parameters:
- backgroundColor- the background color of the tooltip item
 
 - 
setBackgroundColorpublic void setBackgroundColor(TooltipItem tooltipItem, Pattern pattern) Sets the background color of the tooltip item as pattern- Parameters:
- tooltipItem- tooltip item related to this label
- pattern- the background color of the tooltip item as pattern
 
 - 
setBackgroundColorpublic void setBackgroundColor(TooltipItem tooltipItem, Gradient gradient) Sets the background color of the tooltip item as gradient.- Parameters:
- tooltipItem- tooltip item related to this label
- gradient- the background color of the tooltip item as gradient
 
 - 
isBackgroundColorAsColorpublic boolean isBackgroundColorAsColor() Returnstrueif the background color of the tooltip item is defined as color.- Returns:
- trueif the background color of the tooltip item is defined as color
 
 - 
isBackgroundColorAsGradientpublic boolean isBackgroundColorAsGradient() Returnstrueif the background color of the tooltip item is defined as gradient.- Returns:
- trueif the background color of the tooltip item is defined as gradient
 
 - 
isBackgroundColorAsPatternpublic boolean isBackgroundColorAsPattern() Returnstrueif the background color of the tooltip item is defined as canvas pattern.- Returns:
- trueif the background color of the tooltip item is defined as canvas pattern
 
 - 
getBackgroundColorAsStringpublic String getBackgroundColorAsString() Returns the background color of the label.- Returns:
- the background color of the label.
 
 - 
getBackgroundColorpublic IsColor getBackgroundColor() Returns the background color of the label.- Returns:
- the background color of the label.
 
 - 
getBackgroundColorAsPatternpublic Pattern getBackgroundColorAsPattern() Returns the background color as pattern.- Returns:
- the background color or nullif is not a pattern
 
 - 
getBackgroundColorAsCanvasPatternpublic CanvasPatternItem getBackgroundColorAsCanvasPattern() Returns the background color as canvas pattern.- Returns:
- the background color or nullif is not a canvas pattern
 
 - 
getBackgroundColorAsGradientpublic Gradient getBackgroundColorAsGradient() Returns the background color as gradient.- Returns:
- the background color or nullif is not a gradient
 
 - 
getBackgroundColorAsCanvasGradientpublic CanvasGradientItem getBackgroundColorAsCanvasGradient() Returns the background color as canvas gradient.- Returns:
- the background color or nullif is not a canvas gradient
 
 - 
isBorderColorAsColorpublic boolean isBorderColorAsColor() Returnstrueif the border color of the tooltip item is defined as color.- Returns:
- trueif the border color of the tooltip item is defined as color
 
 - 
isBorderColorAsGradientpublic boolean isBorderColorAsGradient() Returnstrueif the border color of the tooltip item is defined as gradient.- Returns:
- trueif the border color of the tooltip item is defined as gradient
 
 - 
setBorderColorpublic void setBorderColor(String borderColor) Sets border color as string- Parameters:
- borderColor- border color
 
 - 
setBorderColorpublic void setBorderColor(IsColor borderColor) Sets border color- Parameters:
- borderColor- border color
 
 - 
setBorderColorpublic void setBorderColor(CanvasGradientItem gradient) Sets the border color of the tooltip item as canvas gradient.- Parameters:
- gradient- the border color of the tooltip item as canvas gradient
 
 - 
setBorderColorpublic void setBorderColor(TooltipItem tooltipItem, Gradient gradient) Sets the border color of the tooltip item as gradient.- Parameters:
- tooltipItem- tooltip item related to this label
- gradient- the border color of the tooltip item as gradient
 
 - 
getBorderColorAsStringpublic String getBorderColorAsString() Returns the border color of the label.- Returns:
- the border color of the label.
 
 - 
getBorderColorpublic IsColor getBorderColor() Returns the border color of the label.- Returns:
- the border color of the label.
 
 - 
getBorderColorAsGradientpublic Gradient getBorderColorAsGradient() Returns the border color as gradient.- Returns:
- the border color or nullif is not a gradient
 
 - 
getBorderColorAsCanvasGradientpublic CanvasGradientItem getBorderColorAsCanvasGradient() Returns the border color as canvas gradient.- Returns:
- the border color or nullif is not a canvas gradient
 
 - 
setBorderWidthpublic void setBorderWidth(int borderWidth) Sets the border width.- Parameters:
- borderWidth- the border width.
 
 - 
getBorderWidthpublic int getBorderWidth() Returns the border width.- Returns:
- the border width.
 
 - 
setBorderRadiuspublic void setBorderRadius(int borderRadius) Sets the bar border radius (in pixels).- Parameters:
- borderRadius- the bar border radius (in pixels).
 
 - 
getBorderRadiuspublic int getBorderRadius() Returns the bar border radius (in pixels).- Returns:
- the bar border radius (in pixels).
 
 - 
setBorderDashpublic void setBorderDash(int... borderDash) Sets the line dash pattern used when stroking borders, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Parameters:
- borderDash- the line dash pattern used when stroking borders, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
 
 - 
getBorderDashpublic List<Integer> getBorderDash() Returns the line dash pattern used when stroking borders, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.- Returns:
- the line dash pattern used when stroking borders, using an array of values which specify alternating lengths of lines and gaps which describe the pattern.
 
 - 
nativeObjectpublic NativeObject nativeObject() Wraps the protected method to get the java script object in order to consume it.- Returns:
- the java script object in order to consume it.
 
 
- 
 
-