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

NameTypeAccessDescription
legendEntriesChartLegendEntryCollectionReadReturns a collection of legend entries for all series and trendlines of the parent chart.
positionintRead/WriteSpecifies the position of the legend on a chart.
fontFontReadProvides access to the default font formatting of legend entries.
formatChartFormatReadProvides access to fill and line formatting of the legend.
overlaybooleanRead/WriteDetermines whether other chart elements shall be allowed to overlap legend.

Methods

SignatureDescription
getLegendEntries() → ChartLegendEntryCollectionReturns a collection of legend entries for all series and trendlines of the parent chart.
getPosition() → intSpecifies the position of the legend on a chart.
setPosition(value: int)Sets the position value.
getFont() → FontProvides access to the default font formatting of legend entries.
getFormat() → ChartFormatProvides access to fill and line formatting of the legend.
getOverlay() → booleanDetermines whether other chart elements shall be allowed to overlap legend.
setOverlay(value: boolean)Sets the overlay value.

See Also