Class SmartArtImpl

java.lang.Object
io.keikai.model.impl.SmartArtImpl
All Implemented Interfaces:
SSmartArt, Serializable

public class SmartArtImpl extends Object implements SSmartArt, Serializable
Default implementation of SSmartArt. Stores SmartArt diagram parts as raw bytes for round-trip preservation.
Since:
7.0.0
See Also:
  • Constructor Summary

    Constructors
    Constructor
    Description
    SmartArtImpl(String diagramId, byte[] diagramData, byte[] diagramLayout, byte[] diagramStyle, byte[] diagramColors, byte[] fallbackDrawing, ViewAnchor anchor)
    Constructs a SmartArt diagram.
  • Method Summary

    Modifier and Type
    Method
    Description
    Returns the anchor that positions this SmartArt on the sheet.
    byte[]
    Returns the raw XML bytes of the diagram color transform.
    byte[]
    Returns the raw XML bytes of the diagram data (dgm:dataModel).
    Returns the unique diagram identifier.
    byte[]
    Returns the raw XML bytes of the diagram layout definition.
    byte[]
    Returns the raw XML bytes of the diagram style definition.
    byte[]
    Returns the fallback drawing image used for rendering when the SmartArt engine is not available.

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • SmartArtImpl

      public SmartArtImpl(String diagramId, byte[] diagramData, byte[] diagramLayout, byte[] diagramStyle, byte[] diagramColors, byte[] fallbackDrawing, ViewAnchor anchor)
      Constructs a SmartArt diagram.
      Parameters:
      diagramId - the unique diagram identifier
      diagramData - the raw XML bytes for the diagram data
      diagramLayout - the raw XML bytes for the diagram layout
      diagramStyle - the raw XML bytes for the diagram style
      diagramColors - the raw XML bytes for the diagram colors
      fallbackDrawing - the fallback image bytes for rendering
      anchor - the position anchor on the sheet
  • Method Details

    • getDiagramId

      public String getDiagramId()
      Description copied from interface: SSmartArt
      Returns the unique diagram identifier.
      Specified by:
      getDiagramId in interface SSmartArt
      Returns:
      the diagram ID
    • getDiagramData

      public byte[] getDiagramData()
      Description copied from interface: SSmartArt
      Returns the raw XML bytes of the diagram data (dgm:dataModel). Preserved for round-trip export.
      Specified by:
      getDiagramData in interface SSmartArt
      Returns:
      the diagram data XML bytes, or null if not available
    • getDiagramLayout

      public byte[] getDiagramLayout()
      Description copied from interface: SSmartArt
      Returns the raw XML bytes of the diagram layout definition.
      Specified by:
      getDiagramLayout in interface SSmartArt
      Returns:
      the diagram layout XML bytes, or null if not available
    • getDiagramStyle

      public byte[] getDiagramStyle()
      Description copied from interface: SSmartArt
      Returns the raw XML bytes of the diagram style definition.
      Specified by:
      getDiagramStyle in interface SSmartArt
      Returns:
      the diagram style XML bytes, or null if not available
    • getDiagramColors

      public byte[] getDiagramColors()
      Description copied from interface: SSmartArt
      Returns the raw XML bytes of the diagram color transform.
      Specified by:
      getDiagramColors in interface SSmartArt
      Returns:
      the diagram colors XML bytes, or null if not available
    • getFallbackDrawing

      public byte[] getFallbackDrawing()
      Description copied from interface: SSmartArt
      Returns the fallback drawing image used for rendering when the SmartArt engine is not available.
      Specified by:
      getFallbackDrawing in interface SSmartArt
      Returns:
      the fallback image bytes, or null if not available
    • getAnchor

      public ViewAnchor getAnchor()
      Description copied from interface: SSmartArt
      Returns the anchor that positions this SmartArt on the sheet.
      Specified by:
      getAnchor in interface SSmartArt
      Returns:
      the view anchor