LegendEntry Class
Contains visibility and text formatting settings of an individual legend entry.
Declaration
public class LegendEntry extends OfficeObject
Remarks
A ILegendEntryDictionary object stores LegendEntry objects by zero-based legend entry index. Call the Legend.getCustomEntries() method to access the dictionary.
Refer to the following help topic for additional information: Customize Chart Legends — Presentation API for Java.
Inherited Members
Inheritance
LegendEntry()
Initializes a new instance of the LegendEntry class.
Declaration
public LegendEntry()
Methods
deepClone() Method
Returns a deep copy of this LegendEntry instance.
Declaration
public LegendEntry deepClone()
Returns
| Type | Description |
|---|---|
LegendEntry |
A deep copy of this |
getHidden() Method
Returns whether the legend entry is hidden.
Declaration
public boolean getHidden()
Returns
| Type | Description |
|---|---|
| boolean |
|
getTextProperties() Method
Returns text formatting settings of the legend entry.
Declaration
public TextProperties getTextProperties()
Returns
| Type | Description |
|---|---|
| TextProperties | Text formatting settings of the legend entry, or |
setHidden(boolean value) Method
Sets whether to hide the legend entry.
Declaration
public void setHidden(boolean value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | boolean |
|
Remarks
If you do not call the setHidden(value) method, the API uses false for a new legend entry and the value from the document for a loaded legend entry.
setTextProperties(TextProperties value) Method
Sets text formatting settings of the legend entry.
Declaration
public void setTextProperties(TextProperties value)
Parameters
| Name | Type | Description |
|---|---|---|
| value | TextProperties | Text formatting settings of the legend entry. |