org.apache.poi.xssf.usermodel.charts
Class XSSFChartLegend
- java.lang.Object
-
- org.apache.poi.xssf.usermodel.charts.XSSFChartLegend
-
- All Implemented Interfaces:
- ChartLegend, ManuallyPositionable
@Beta public final class XSSFChartLegend extends java.lang.Object implements ChartLegend
Represents a SpreadsheetML chart legend
-
-
Constructor Summary
Constructors Constructor and Description XSSFChartLegend(XSSFChart chart)Create a new SpreadsheetML chart legend
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method and Description org.openxmlformats.schemas.drawingml.x2006.chart.CTLegendgetCTLegend()Return the underlying CTLegend bean.XSSFManualLayoutgetManualLayout()Returns manual layout for the chart element.LegendPositiongetPosition()booleanisOverlay()voidsetOverlay(boolean value)If true the legend is positioned over the chart area otherwise the legend is displayed next to it.voidsetPosition(LegendPosition position)
-
-
-
Constructor Detail
-
XSSFChartLegend
public XSSFChartLegend(XSSFChart chart)
Create a new SpreadsheetML chart legend
-
-
Method Detail
-
getCTLegend
@Internal public org.openxmlformats.schemas.drawingml.x2006.chart.CTLegend getCTLegend()
Return the underlying CTLegend bean.- Returns:
- the underlying CTLegend bean
-
setPosition
public void setPosition(LegendPosition position)
- Specified by:
setPositionin interfaceChartLegend- Parameters:
position- new legend position
-
getPosition
public LegendPosition getPosition()
- Specified by:
getPositionin interfaceChartLegend- Returns:
- legend position
-
getManualLayout
public XSSFManualLayout getManualLayout()
Description copied from interface:ManuallyPositionableReturns manual layout for the chart element.- Specified by:
getManualLayoutin interfaceManuallyPositionable- Returns:
- manual layout for the chart element.
-
isOverlay
public boolean isOverlay()
- Specified by:
isOverlayin interfaceChartLegend- Returns:
- overlay value.
-
setOverlay
public void setOverlay(boolean value)
Description copied from interface:ChartLegendIf true the legend is positioned over the chart area otherwise the legend is displayed next to it. Default is no overlay.- Specified by:
setOverlayin interfaceChartLegend
-
-
DataMelt 3.0 © DataMelt by jWork.ORG