public class LegendLabel extends Object implements Serializable
| Constructor and Description | 
|---|
| LegendLabel() | 
| Modifier and Type | Method and Description | 
|---|---|
| String | encode()Write the options of scale label | 
| Number | getBoxWidth()width of colored box | 
| String | getFontColor()Font color for the label. | 
| String | getFontFamily()Font family for the label, follows CSS font-family options. | 
| Number | getFontSize()Font size for the label. | 
| String | getFontStyle()Font style for the label, follows CSS font-style options. | 
| Number | getPadding()Padding between rows of colored boxes. | 
| boolean | isUsePointStyle()Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case). | 
| void | setBoxWidth(Number boxWidth)width of colored box | 
| void | setFontColor(String fontColor)Font color for the label. | 
| void | setFontFamily(String fontFamily)Font family for the label, follows CSS font-family options. | 
| void | setFontSize(Number fontSize)Font size for the label. | 
| void | setFontStyle(String fontStyle)Font style for the label, follows CSS font-style options. | 
| void | setPadding(Number padding)Padding between rows of colored boxes. | 
| void | setUsePointStyle(boolean usePointStyle)Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case). | 
public Number getBoxWidth()
public void setBoxWidth(Number boxWidth)
boxWidth - the boxWidth to setpublic String getFontColor()
public void setFontColor(String fontColor)
fontColor - the fontColor to setpublic String getFontFamily()
public void setFontFamily(String fontFamily)
fontFamily - the fontFamily to setpublic Number getFontSize()
public void setFontSize(Number fontSize)
fontSize - the fontSize to setpublic String getFontStyle()
public void setFontStyle(String fontStyle)
fontStyle - the fontStyle to setpublic Number getPadding()
public void setPadding(Number padding)
padding - the padding to setpublic boolean isUsePointStyle()
public void setUsePointStyle(boolean usePointStyle)
usePointStyle - the usePointStyle to setpublic String encode() throws IOException
IOException - If an I/O error occursCopyright © 2020. All rights reserved.