@Beta public final class XSSFChartLegend extends java.lang.Object implements ChartLegend
| Constructor and Description |
|---|
XSSFChartLegend(XSSFChart chart)
Create a new SpreadsheetML chart legend
|
| Modifier and Type | Method and Description |
|---|---|
org.openxmlformats.schemas.drawingml.x2006.chart.CTLegend |
getCTLegend()
Return the underlying CTLegend bean.
|
XSSFManualLayout |
getManualLayout()
Returns manual layout for the chart element.
|
LegendPosition |
getPosition() |
boolean |
isOverlay() |
void |
setOverlay(boolean value)
If true the legend is positioned over the chart area otherwise
the legend is displayed next to it.
|
void |
setPosition(LegendPosition position) |
public XSSFChartLegend(XSSFChart chart)
@Internal public org.openxmlformats.schemas.drawingml.x2006.chart.CTLegend getCTLegend()
public void setPosition(LegendPosition position)
setPosition in interface ChartLegendposition - new legend positionpublic LegendPosition getPosition()
getPosition in interface ChartLegendpublic XSSFManualLayout getManualLayout()
ManuallyPositionablegetManualLayout in interface ManuallyPositionablepublic boolean isOverlay()
isOverlay in interface ChartLegendpublic void setOverlay(boolean value)
ChartLegendsetOverlay in interface ChartLegendCopyright 2018 The Apache Software Foundation or its licensors, as applicable.