public final class LegendLabels extends FontItem<Legend,IsDefaultLegendLabels> implements IsDefaultLegendLabels
Modifier and Type | Method and Description |
---|---|
int |
getBoxWidth()
Returns the width of colored box.
|
int |
getPadding()
Returns the padding to apply around labels.
|
boolean |
isUsePointStyle()
Returns if label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this
case).
|
void |
setBoxWidth(int boxWidth)
Sets the width of colored box.
|
void |
setPadding(int padding)
Sets the padding to apply around labels.
|
void |
setUsePointStyle(boolean usePointStyle)
Sets if label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).
|
getFontColor, getFontColorAsString, getFontFamily, getFontSize, getFontStyle, setFontColor, setFontColor, setFontFamily, setFontSize, setFontStyle
checkAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModel
getArrayValue, getNativeObject, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, getValue, 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
getFontColorAsString, getFontFamily, getFontSize, getFontStyle
public void setUsePointStyle(boolean usePointStyle)
usePointStyle
- if label style will match corresponding point style (size is based on fontSize, boxWidth is not used
in this case).public boolean isUsePointStyle()
isUsePointStyle
in interface IsDefaultLegendLabels
true
if label style will match corresponding point style (size is based on fontSize, boxWidth is not
used in this case).public void setBoxWidth(int boxWidth)
boxWidth
- width of colored box.public int getBoxWidth()
getBoxWidth
in interface IsDefaultLegendLabels
public void setPadding(int padding)
padding
- padding to apply around labels. Only top and bottom are implemented.public int getPadding()
getPadding
in interface IsDefaultLegendLabels