Class XDDFChartLegend

java.lang.Object
org.apache.poi.xddf.usermodel.chart.XDDFChartLegend
All Implemented Interfaces:
TextContainer

@Beta public final class XDDFChartLegend extends Object implements TextContainer
Represents a DrawingML chart legend
  • Constructor Details

    • XDDFChartLegend

      public XDDFChartLegend(org.openxmlformats.schemas.drawingml.x2006.chart.CTChart ctChart)
      Create a new DrawingML chart legend
  • Method Details

    • getXmlObject

      @Internal protected org.openxmlformats.schemas.drawingml.x2006.chart.CTLegend getXmlObject()
      Return the underlying CTLegend bean.
      Returns:
      the underlying CTLegend bean
    • getShapeProperties

      @Internal public org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties getShapeProperties()
    • setShapeProperties

      @Internal public void setShapeProperties(org.openxmlformats.schemas.drawingml.x2006.main.CTShapeProperties properties)
    • getTextBody

      public XDDFTextBody getTextBody()
    • setTextBody

      public void setTextBody(XDDFTextBody body)
    • addEntry

      public XDDFLegendEntry addEntry()
    • getEntry

      public XDDFLegendEntry getEntry(int index)
    • getEntries

      public List<XDDFLegendEntry> getEntries()
    • setExtensionList

      public void setExtensionList(XDDFChartExtensionList list)
    • getExtensionList

      public XDDFChartExtensionList getExtensionList()
    • setLayout

      public void setLayout(XDDFLayout layout)
    • getLayout

      public XDDFLayout getLayout()
    • setPosition

      public void setPosition(LegendPosition position)
    • getPosition

      public LegendPosition getPosition()
    • getOrAddManualLayout

      public XDDFManualLayout getOrAddManualLayout()
    • isOverlay

      public boolean isOverlay()
    • setOverlay

      public void setOverlay(boolean value)
    • findDefinedParagraphProperty

      public <R> Optional<R> findDefinedParagraphProperty(Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties,Boolean> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextParagraphProperties,R> getter)
      Specified by:
      findDefinedParagraphProperty in interface TextContainer
    • findDefinedRunProperty

      public <R> Optional<R> findDefinedRunProperty(Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties,Boolean> isSet, Function<org.openxmlformats.schemas.drawingml.x2006.main.CTTextCharacterProperties,R> getter)
      Specified by:
      findDefinedRunProperty in interface TextContainer