public class LegendLabels extends Object
Constructor and Description |
---|
LegendLabels() |
Modifier and Type | Method and Description |
---|---|
Integer |
getBoxWidth() |
Color |
getFontColor() |
String |
getFontFamily() |
Integer |
getFontSize() |
FontStyle |
getFontStyle() |
JavaScriptFunction |
getGenerateLabels() |
Integer |
getPadding() |
Boolean |
getUsePointStyle() |
LegendLabels |
setBoxWidth(Integer boxWidth)
Width of coloured box
|
LegendLabels |
setFontColor(Color fontColor)
Font color inherited from global configuration
|
LegendLabels |
setFontFamily(String fontFamily)
Font family inherited from global configuration
|
LegendLabels |
setFontSize(Integer fontSize)
Font size inherited from global configuration
|
LegendLabels |
setFontStyle(FontStyle fontStyle)
Font style inherited from global configuration
|
LegendLabels |
setGenerateLabels(JavaScriptFunction generateLabels)
Generates legend items for each thing in the legend.
|
LegendLabels |
setPadding(Integer padding)
Padding between rows of colored boxes
|
LegendLabels |
setUsePointStyle(Boolean usePointStyle)
Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).
|
public Integer getBoxWidth()
setBoxWidth(Integer)
public LegendLabels setBoxWidth(Integer boxWidth)
Width of coloured box
Default 40
public Integer getFontSize()
setFontSize(Integer)
public LegendLabels setFontSize(Integer fontSize)
Font size inherited from global configuration
Default 12
public FontStyle getFontStyle()
setFontStyle(FontStyle)
public LegendLabels setFontStyle(FontStyle fontStyle)
Font style inherited from global configuration
Default "normal"
public Color getFontColor()
setFontColor(Color)
public LegendLabels setFontColor(Color fontColor)
Font color inherited from global configuration
Default "#666"
public String getFontFamily()
setFontFamily(String)
public LegendLabels setFontFamily(String fontFamily)
Font family inherited from global configuration
Default "'Helvetica Neue', 'Helvetica', 'Arial', sans-serif"
public Integer getPadding()
setPadding(Integer)
public LegendLabels setPadding(Integer padding)
Padding between rows of colored boxes
Default 10
public JavaScriptFunction getGenerateLabels()
setGenerateLabels(JavaScriptFunction)
public LegendLabels setGenerateLabels(JavaScriptFunction generateLabels)
Generates legend items for each thing in the legend. Default implementation returns the text + styling for the color box. See Legend Item for details.
Default function(chart) { }
public Boolean getUsePointStyle()
setUsePointStyle(Boolean)
public LegendLabels setUsePointStyle(Boolean usePointStyle)
Label style will match corresponding point style (size is based on fontSize, boxWidth is not used in this case).
Default false
Copyright © 2020. All rights reserved.