Skip to main content

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

com.devexpress.system.JavaObject.clone()
com.devexpress.system.JavaObject.equals(java.lang.Object)
com.devexpress.system.JavaObject.hashCode()
com.devexpress.system.JavaObject.initFields()
com.devexpress.system.JavaObject.memberwiseClone()
com.devexpress.system.JavaObject.toString()
java.lang.Object.finalize()
java.lang.Object.getClass()
java.lang.Object.notify()
java.lang.Object.notifyAll()
java.lang.Object.wait()
java.lang.Object.wait(long)
java.lang.Object.wait(long,int)

Inheritance

Object
JavaObject
OfficeObject
LegendEntry
See Also

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 LegendEntry.

getHidden() Method

Returns whether the legend entry is hidden.

Declaration

public boolean getHidden()

Returns

Type Description
boolean

true if the legend entry is hidden; otherwise, false.

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 null if the legend entry does not specify text formatting settings.

setHidden(boolean value) Method

Sets whether to hide the legend entry.

Declaration

public void setHidden(boolean value)

Parameters

Name Type Description
value boolean

true to hide the legend entry; otherwise, false.

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.