public final class PointLabels extends NativeObjectContainer implements IsDefaultPointLabels
true
.Modifier and Type | Method and Description |
---|---|
protected void |
checkAndAddToParent()
Called recursively when a property has been set in the item.
This is mandatory because it could happen that the parent item is not present, therefore it must be added. |
protected Key |
getChildKey()
Returns the property name to use to add this element to its parent.
|
protected D |
getDefaultValues()
Returns the default provider instance.
|
IsColor |
getFontColor()
Returns the font color.
|
String |
getFontColorAsString()
Returns the font color
|
List<IsColor> |
getFontColors()
Returns the font colors as list.
|
List<String> |
getFontColorsAsString()
Returns the font colors as list.
|
Fonter |
getFonter()
Returns a fonter instance to use into default methods of this interface.
|
double |
getLineHeight()
Returns the height of an individual line of text.
|
String |
getLineHeightAsString()
Returns the height of an individual line of text.
|
protected P |
getParent()
Returns the parent element.
|
boolean |
isDisplay()
If
true , labels are shown. |
protected void |
setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for callbacks) to a model at the specific key.
|
void |
setDisplay(boolean display)
If
true , labels are shown. |
protected void |
setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model,
Key key,
CallbackProxy.Proxy proxy)
Adds a proxy function (for events) to a model at the specific key.
|
void |
setFontColor(IsColor... fontColors)
Sets an array of font colors.
|
void |
setFontColor(String... fontColors)
Sets an array of font colors.
|
void |
setLineHeight(double lineHeight)
Sets the height of an individual line of text.
|
void |
setLineHeight(String lineHeight)
Sets the height of an individual line of text.
|
checkValue, empty, getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueForMultipleKeyTypes, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, getValueOrArray, has, has, keys, remove, remove, removeIfExists, setArrayValue, setArrayValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValue, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, setValueOrArray, toJSON, type
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getLineHeight
getFontFamily, getFontSize, getFontStyle
getFontFamily, getFontSize, getFontStyle, setFontColor, setFontColor, setFontFamily, setFontSize, setFontStyle
public void setDisplay(boolean display)
true
, labels are shown.display
- if true
, labels are shown.public boolean isDisplay()
true
, labels are shown.isDisplay
in interface IsDefaultPointLabels
true
, labels are shown.public void setFontColor(IsColor... fontColors)
fontColors
- an array of font colorspublic void setFontColor(String... fontColors)
fontColors
- an array of font colorspublic String getFontColorAsString()
IsDefaultFontItem
getFontColorAsString
in interface IsDefaultFontItem
getFontColorAsString
in interface HasFont
public IsColor getFontColor()
HasFont
getFontColor
in interface HasFont
public List<String> getFontColorsAsString()
public List<IsColor> getFontColors()
public final Fonter getFonter()
HasFont
public final void setLineHeight(double lineHeight)
lineHeight
- height of an individual line of text.public final void setLineHeight(String lineHeight)
lineHeight
- height of an individual line of text.public final double getLineHeight()
public final String getLineHeightAsString()
protected final Key getChildKey()
null
if is a root element.protected final P getParent()
null
if is a root element.protected final D getDefaultValues()
protected final void setEventToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model, Key key, CallbackProxy.Proxy proxy)
model
- element where adding the function proxykey
- property name to use to add the function proxyproxy
- the function proxy instance to addprotected final void setCallbackToModel(org.pepstock.charba.client.options.AbstractModel<?,?> model, Key key, CallbackProxy.Proxy proxy)
model
- element where adding the function proxykey
- property name to use to add the function proxyproxy
- the function proxy instance to addprotected final void checkAndAddToParent()