| Constructor and Description |
|---|
Builder()
Constructor with parameters for the required properties of
Legend. |
| Modifier and Type | Method and Description |
|---|---|
Legend |
build() |
Legend.Builder |
setAlignment(java.lang.String alignment)
Possible values are:
Legend.ALIGNMENT_HORIZONTAL Legend.ALIGNMENT_VERTICAL
Describes the alignment of legend. |
Legend.Builder |
setDisplayCount(java.lang.Boolean displayCount)
If set to true, it will display the counts in legend.
|
Legend.Builder |
setDisplayMode(java.lang.String displayMode)
Possible values are:
Legend.DISPLAY_MODE_ALL_LEGENDS
Legend.DISPLAY_MODE_MIN_NO_OF_LEGENDS
Legend.DISPLAY_MODE_OTHER_GROUP_WITH_LEGENDS
Display mode for legends. |
Legend.Builder |
setFilterable(java.lang.Boolean filterable)
Show checkbox along with legends if value is set to true.
|
Legend.Builder |
setMinLegendsDisplayCount(java.lang.Long minLegendsDisplayCount)
A minimum number of legends to be displayed upfront.
|
Legend.Builder |
setOtherGroupLegendLabel(java.lang.String otherGroupLegendLabel)
A translated label for showing other category label in legends.
|
Legend.Builder |
setPosition(java.lang.String position)
Possible values are:
Legend.POSITION_TOP Legend.POSITION_BOTTOM Legend.POSITION_LEFT Legend.POSITION_RIGHT Legend.POSITION_TOP_RIGHT
Describes the relative placement of legend. |
Legend.Builder |
setType(java.lang.String type)
Possible values are:
Legend.TYPE_CIRCLE Describes the
render type for the legend. |
Legend.Builder |
setUnit(java.lang.String unit)
Show unit of entities in the legend.
|
public Builder()
Legend.public Legend.Builder setAlignment(java.lang.String alignment)
alignment - New value for the property.public Legend.Builder setDisplayCount(java.lang.Boolean displayCount)
displayCount - New value for the property.public Legend.Builder setDisplayMode(java.lang.String displayMode)
displayMode - New value for the property.public Legend.Builder setFilterable(java.lang.Boolean filterable)
filterable - New value for the property.public Legend.Builder setMinLegendsDisplayCount(java.lang.Long minLegendsDisplayCount)
minLegendsDisplayCount - New value for the property.public Legend.Builder setOtherGroupLegendLabel(java.lang.String otherGroupLegendLabel)
otherGroupLegendLabel - New value for the property.public Legend.Builder setPosition(java.lang.String position)
position - New value for the property.public Legend.Builder setType(java.lang.String type)
type - New value for the property.public Legend.Builder setUnit(java.lang.String unit)
unit - New value for the property.public Legend build()