public final class TooltipLabelColor extends NativeObjectContainer
Modifier and Type | Class and Description |
---|---|
static class |
TooltipLabelColor.TooltipLabelColorFactory
Inner class to create tooltip label color by a native object.
|
Modifier and Type | Field and Description |
---|---|
static TooltipLabelColor.TooltipLabelColorFactory |
FACTORY
Tooltip color factory to create label color objects.
|
Constructor and Description |
---|
TooltipLabelColor()
Creates the object with an empty native object.
|
TooltipLabelColor(IsColor backgroundColor)
Creates the object with initial colors.
|
TooltipLabelColor(IsColor backgroundColor,
IsColor borderColor)
Creates the object with initial colors.
|
TooltipLabelColor(String backgroundColor)
Creates the object with initial colors.
|
TooltipLabelColor(String backgroundColor,
String borderColor)
Creates the object with initial colors.
|
Modifier and Type | Method and Description |
---|---|
IsColor |
getBackgroundColor()
Returns the background color of the label.
|
CanvasGradientItem |
getBackgroundColorAsCanvasGradient()
Returns the background color as canvas gradient.
|
CanvasPatternItem |
getBackgroundColorAsCanvasPattern()
Returns the background color as canvas pattern.
|
Gradient |
getBackgroundColorAsGradient()
Returns the background color as gradient.
|
Pattern |
getBackgroundColorAsPattern()
Returns the background color as pattern.
|
String |
getBackgroundColorAsString()
Returns the background color of the label.
|
IsColor |
getBorderColor()
Returns the border color of the label.
|
CanvasGradientItem |
getBorderColorAsCanvasGradient()
Returns the border color as canvas gradient.
|
Gradient |
getBorderColorAsGradient()
Returns the border color as gradient.
|
String |
getBorderColorAsString()
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.
|
int |
getBorderRadius()
Returns the bar border radius (in pixels).
|
int |
getBorderWidth()
Returns the border width.
|
boolean |
isBackgroundColorAsColor()
Returns
true if the background color of the tooltip item is defined as color. |
boolean |
isBackgroundColorAsGradient()
Returns
true if the background color of the tooltip item is defined as gradient. |
boolean |
isBackgroundColorAsPattern()
Returns
true if the background color of the tooltip item is defined as canvas pattern. |
boolean |
isBorderColorAsColor()
Returns
true if the border color of the tooltip item is defined as color. |
boolean |
isBorderColorAsGradient()
Returns
true if the border color of the tooltip item is defined as gradient. |
NativeObject |
nativeObject()
Wraps the protected method to get the java script object in order to consume it.
|
void |
setBackgroundColor(IsColor backgroundColor)
Sets the background color of the tooltip item.
|
void |
setBackgroundColor(String backgroundColor)
Sets the background color of the tooltip item as string.
|
void |
setBackgroundColor(TooltipItem tooltipItem,
Gradient gradient)
Sets the background color of the tooltip item as gradient.
|
void |
setBackgroundColor(TooltipItem tooltipItem,
Pattern pattern)
Sets the background color of the tooltip item as pattern
|
void |
setBorderColor(CanvasGradientItem gradient)
Sets the border color of the tooltip item as canvas gradient.
|
void |
setBorderColor(IsColor borderColor)
Sets border color
|
void |
setBorderColor(String borderColor)
Sets border color as string
|
void |
setBorderColor(TooltipItem tooltipItem,
Gradient gradient)
Sets the border color of the tooltip item as gradient.
|
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.
|
void |
setBorderRadius(int borderRadius)
Sets the bar border radius (in pixels).
|
void |
setBorderWidth(int borderWidth)
Sets the border width.
|
checkDefaultValuesArgument, 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, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
public static final TooltipLabelColor.TooltipLabelColorFactory FACTORY
public TooltipLabelColor()
public TooltipLabelColor(IsColor backgroundColor)
backgroundColor
- background color to be setpublic TooltipLabelColor(IsColor backgroundColor, IsColor borderColor)
backgroundColor
- background color to be setborderColor
- border color to be setpublic TooltipLabelColor(String backgroundColor)
backgroundColor
- background color to be setpublic void setBackgroundColor(String backgroundColor)
backgroundColor
- the background color of the tooltip itempublic void setBackgroundColor(IsColor backgroundColor)
backgroundColor
- the background color of the tooltip itempublic void setBackgroundColor(TooltipItem tooltipItem, Pattern pattern)
tooltipItem
- tooltip item related to this labelpattern
- the background color of the tooltip item as patternpublic void setBackgroundColor(TooltipItem tooltipItem, Gradient gradient)
tooltipItem
- tooltip item related to this labelgradient
- the background color of the tooltip item as gradientpublic boolean isBackgroundColorAsColor()
true
if the background color of the tooltip item is defined as color.true
if the background color of the tooltip item is defined as colorpublic boolean isBackgroundColorAsGradient()
true
if the background color of the tooltip item is defined as gradient.true
if the background color of the tooltip item is defined as gradientpublic boolean isBackgroundColorAsPattern()
true
if the background color of the tooltip item is defined as canvas pattern.true
if the background color of the tooltip item is defined as canvas patternpublic String getBackgroundColorAsString()
public IsColor getBackgroundColor()
public Pattern getBackgroundColorAsPattern()
null
if is not a patternpublic CanvasPatternItem getBackgroundColorAsCanvasPattern()
null
if is not a canvas patternpublic Gradient getBackgroundColorAsGradient()
null
if is not a gradientpublic CanvasGradientItem getBackgroundColorAsCanvasGradient()
null
if is not a canvas gradientpublic boolean isBorderColorAsColor()
true
if the border color of the tooltip item is defined as color.true
if the border color of the tooltip item is defined as colorpublic boolean isBorderColorAsGradient()
true
if the border color of the tooltip item is defined as gradient.true
if the border color of the tooltip item is defined as gradientpublic void setBorderColor(String borderColor)
borderColor
- border colorpublic void setBorderColor(IsColor borderColor)
borderColor
- border colorpublic void setBorderColor(CanvasGradientItem gradient)
gradient
- the border color of the tooltip item as canvas gradientpublic void setBorderColor(TooltipItem tooltipItem, Gradient gradient)
tooltipItem
- tooltip item related to this labelgradient
- the border color of the tooltip item as gradientpublic String getBorderColorAsString()
public IsColor getBorderColor()
public Gradient getBorderColorAsGradient()
null
if is not a gradientpublic CanvasGradientItem getBorderColorAsCanvasGradient()
null
if is not a canvas gradientpublic void setBorderWidth(int borderWidth)
borderWidth
- the border width.public int getBorderWidth()
public void setBorderRadius(int borderRadius)
borderRadius
- the bar border radius (in pixels).public int getBorderRadius()
public void setBorderDash(int... borderDash)
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.public List<Integer> getBorderDash()
public NativeObject nativeObject()