public final class Legend
extends java.lang.Object
implements java.io.Serializable, com.vmware.vapi.bindings.StaticStructure
Modifier and Type | Class and Description |
---|---|
static class |
Legend.Builder
Builder class for
Legend . |
Modifier and Type | Field and Description |
---|---|
protected com.vmware.vapi.data.StructValue |
__dynamicStructureFields |
static java.lang.String |
ALIGNMENT_HORIZONTAL |
static java.lang.String |
ALIGNMENT_VERTICAL |
static java.lang.String |
DISPLAY_MODE_ALL_LEGENDS |
static java.lang.String |
DISPLAY_MODE_MIN_NO_OF_LEGENDS |
static java.lang.String |
DISPLAY_MODE_OTHER_GROUP_WITH_LEGENDS |
static java.lang.String |
POSITION_BOTTOM |
static java.lang.String |
POSITION_LEFT |
static java.lang.String |
POSITION_RIGHT |
static java.lang.String |
POSITION_TOP |
static java.lang.String |
POSITION_TOP_RIGHT |
static java.lang.String |
TYPE_CIRCLE |
Modifier | Constructor and Description |
---|---|
|
Legend()
Default constructor.
|
protected |
Legend(com.vmware.vapi.data.StructValue __dynamicStructureFields) |
Modifier and Type | Method and Description |
---|---|
<T extends com.vmware.vapi.bindings.Structure> |
_convertTo(java.lang.Class<T> clazz) |
java.lang.String |
_getCanonicalName() |
static java.lang.String |
_getCanonicalTypeName()
Returns the canonical type name.
|
static com.vmware.vapi.bindings.type.StructType |
_getClassType()
WARNING: Internal method, subject to change in future versions.
|
com.vmware.vapi.data.StructValue |
_getDataValue() |
com.vmware.vapi.data.DataValue |
_getDynamicField(java.lang.String fieldName) |
java.util.Set<java.lang.String> |
_getDynamicFieldNames() |
com.vmware.vapi.bindings.type.StructType |
_getType() |
boolean |
_hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz) |
static Legend |
_newInstance(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Returns new instance of this binding class and injects the provided data value. WARNING: The returned object is not fully initialized. |
static Legend |
_newInstance2(com.vmware.vapi.data.StructValue structValue)
WARNING: Internal method, subject to change in future versions.
Serves as a versioning mechanism. |
void |
_setDynamicField(java.lang.String fieldName,
com.vmware.vapi.data.DataValue fieldValue) |
protected void |
_updateDataValue(com.vmware.vapi.data.StructValue structValue) |
void |
_validate() |
boolean |
equals(java.lang.Object obj) |
java.lang.String |
getAlignment()
Possible values are:
ALIGNMENT_HORIZONTAL ALIGNMENT_VERTICAL Describes the
alignment of legend. |
java.lang.Boolean |
getDisplayCount()
If set to true, it will display the counts in legend.
|
java.lang.String |
getDisplayMode()
Possible values are:
DISPLAY_MODE_ALL_LEGENDS DISPLAY_MODE_MIN_NO_OF_LEGENDS DISPLAY_MODE_OTHER_GROUP_WITH_LEGENDS
Display mode for legends. |
java.lang.Boolean |
getFilterable()
Show checkbox along with legends if value is set to true.
|
java.lang.Long |
getMinLegendsDisplayCount()
A minimum number of legends to be displayed upfront.
|
java.lang.String |
getOtherGroupLegendLabel()
A translated label for showing other category label in legends.
|
java.lang.String |
getPosition()
Possible values are:
POSITION_TOP POSITION_BOTTOM POSITION_LEFT POSITION_RIGHT POSITION_TOP_RIGHT Describes the
relative placement of legend. |
java.lang.String |
getType()
Possible values are:
TYPE_CIRCLE Describes the render type
for the legend. |
java.lang.String |
getUnit()
Show unit of entities in the legend.
|
int |
hashCode() |
void |
setAlignment(java.lang.String alignment)
Possible values are:
ALIGNMENT_HORIZONTAL ALIGNMENT_VERTICAL Describes the
alignment of legend. |
void |
setDisplayCount(java.lang.Boolean displayCount)
If set to true, it will display the counts in legend.
|
void |
setDisplayMode(java.lang.String displayMode)
Possible values are:
DISPLAY_MODE_ALL_LEGENDS DISPLAY_MODE_MIN_NO_OF_LEGENDS DISPLAY_MODE_OTHER_GROUP_WITH_LEGENDS
Display mode for legends. |
void |
setFilterable(java.lang.Boolean filterable)
Show checkbox along with legends if value is set to true.
|
void |
setMinLegendsDisplayCount(java.lang.Long minLegendsDisplayCount)
A minimum number of legends to be displayed upfront.
|
void |
setOtherGroupLegendLabel(java.lang.String otherGroupLegendLabel)
A translated label for showing other category label in legends.
|
void |
setPosition(java.lang.String position)
Possible values are:
POSITION_TOP POSITION_BOTTOM POSITION_LEFT POSITION_RIGHT POSITION_TOP_RIGHT Describes the
relative placement of legend. |
void |
setType(java.lang.String type)
Possible values are:
TYPE_CIRCLE Describes the render type
for the legend. |
void |
setUnit(java.lang.String unit)
Show unit of entities in the legend.
|
java.lang.String |
toString() |
public static final java.lang.String ALIGNMENT_HORIZONTAL
public static final java.lang.String ALIGNMENT_VERTICAL
public static final java.lang.String DISPLAY_MODE_ALL_LEGENDS
public static final java.lang.String DISPLAY_MODE_MIN_NO_OF_LEGENDS
public static final java.lang.String DISPLAY_MODE_OTHER_GROUP_WITH_LEGENDS
public static final java.lang.String POSITION_TOP
public static final java.lang.String POSITION_BOTTOM
public static final java.lang.String POSITION_LEFT
public static final java.lang.String POSITION_RIGHT
public static final java.lang.String POSITION_TOP_RIGHT
public static final java.lang.String TYPE_CIRCLE
protected com.vmware.vapi.data.StructValue __dynamicStructureFields
public Legend()
protected Legend(com.vmware.vapi.data.StructValue __dynamicStructureFields)
public java.lang.String getAlignment()
public void setAlignment(java.lang.String alignment)
alignment
- New value for the property.public java.lang.Boolean getDisplayCount()
public void setDisplayCount(java.lang.Boolean displayCount)
displayCount
- New value for the property.public java.lang.String getDisplayMode()
public void setDisplayMode(java.lang.String displayMode)
displayMode
- New value for the property.public java.lang.Boolean getFilterable()
public void setFilterable(java.lang.Boolean filterable)
filterable
- New value for the property.public java.lang.Long getMinLegendsDisplayCount()
public void setMinLegendsDisplayCount(java.lang.Long minLegendsDisplayCount)
minLegendsDisplayCount
- New value for the property.public java.lang.String getOtherGroupLegendLabel()
public void setOtherGroupLegendLabel(java.lang.String otherGroupLegendLabel)
otherGroupLegendLabel
- New value for the property.public java.lang.String getPosition()
public void setPosition(java.lang.String position)
position
- New value for the property.public java.lang.String getType()
public void setType(java.lang.String type)
type
- New value for the property.public java.lang.String getUnit()
public void setUnit(java.lang.String unit)
unit
- New value for the property.public com.vmware.vapi.bindings.type.StructType _getType()
_getType
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.StructValue _getDataValue()
_getDataValue
in interface com.vmware.vapi.bindings.Structure
protected void _updateDataValue(com.vmware.vapi.data.StructValue structValue)
public void _validate()
_validate
in interface com.vmware.vapi.bindings.StaticStructure
public boolean equals(java.lang.Object obj)
equals
in class java.lang.Object
public int hashCode()
hashCode
in class java.lang.Object
public java.lang.String toString()
toString
in interface com.vmware.vapi.bindings.StaticStructure
toString
in class java.lang.Object
public boolean _hasTypeNameOf(java.lang.Class<? extends com.vmware.vapi.bindings.Structure> clazz)
_hasTypeNameOf
in interface com.vmware.vapi.bindings.Structure
public <T extends com.vmware.vapi.bindings.Structure> T _convertTo(java.lang.Class<T> clazz)
_convertTo
in interface com.vmware.vapi.bindings.Structure
public void _setDynamicField(java.lang.String fieldName, com.vmware.vapi.data.DataValue fieldValue)
_setDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public com.vmware.vapi.data.DataValue _getDynamicField(java.lang.String fieldName)
_getDynamicField
in interface com.vmware.vapi.bindings.StaticStructure
public java.util.Set<java.lang.String> _getDynamicFieldNames()
_getDynamicFieldNames
in interface com.vmware.vapi.bindings.StaticStructure
public static com.vmware.vapi.bindings.type.StructType _getClassType()
StructType
instance representing the static bindings
type for this Structure
.public java.lang.String _getCanonicalName()
_getCanonicalName
in interface com.vmware.vapi.bindings.Structure
public static java.lang.String _getCanonicalTypeName()
_getCanonicalName()
.public static Legend _newInstance(com.vmware.vapi.data.StructValue structValue)
structValue
- the source of the data contained in the binding object. Could
contain more data than fields of this class can describe i.e.
newer version of the binding object. Could be null.StructType
public static Legend _newInstance2(com.vmware.vapi.data.StructValue structValue)