ChartLegend
Overview
ChartLegend is a class in Aspose.Words FOSS for Java.
Inherits from: IDmlExtensionListSource, IChartFormatSource, Cloneable.
Represents chart legend properties.
Edition status of its 12 listed members (a property and its accessor methods are listed separately, overloads once): 12 not yet exercised by a verified example.
This class declares 7 methods for ChartLegend objects in Java programs.
Available methods include: getFont, getFormat, getLegendEntries, getOverlay, getPosition, setOverlay, setPosition.
Public members are accessible to any Java application after installing the Aspose.Words FOSS for Java package.
Properties: font, format, legendEntries, overlay, position.
Properties
| Name | Type | Access | Description |
|---|---|---|---|
legendEntries | ChartLegendEntryCollection | Read | Returns a collection of legend entries for all series and trendlines of the parent chart. |
position | int | Read/Write | Specifies the position of the legend on a chart. |
font | Font | Read | Provides access to the default font formatting of legend entries. |
format | ChartFormat | Read | Provides access to fill and line formatting of the legend. |
overlay | boolean | Read/Write | Determines whether other chart elements shall be allowed to overlap legend. |
Methods
| Signature | Description |
|---|---|
getLegendEntries() → ChartLegendEntryCollection | Returns a collection of legend entries for all series and trendlines of the parent chart. |
getPosition() → int | Specifies the position of the legend on a chart. |
setPosition(value: int) | Sets the position value. |
getFont() → Font | Provides access to the default font formatting of legend entries. |
getFormat() → ChartFormat | Provides access to fill and line formatting of the legend. |
getOverlay() → boolean | Determines whether other chart elements shall be allowed to overlap legend. |
setOverlay(value: boolean) | Sets the overlay value. |