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, setFontStylecheckAndAddToParent, getChildKey, getDefaultValues, getParent, setCallbackToModel, setEventToModelgetArrayValue, 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, typeclone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetFontColorAsString, getFontFamily, getFontSize, getFontStylepublic 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 IsDefaultLegendLabelstrue 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 IsDefaultLegendLabelspublic void setPadding(int padding)
padding - padding to apply around labels. Only top and bottom are implemented.public int getPadding()
getPadding in interface IsDefaultLegendLabels