Record Class SmartArt

java.lang.Object
java.lang.Record
io.keikai.axyra.sheets.content.SmartArt
Record Components:
layoutFamily - layout family classification: "process" / "list" / "cycle" / "hierarchy" / "pyramid" / "matrix" / "relationship" / "snake" / "textList", or "unsupported" when the layout is rendered from the cached drawing fallback
layoutId - layout-id token from <dgm:layoutDef uniqueId>
quickStyle - quick-style id, or null when not declared
colorStyle - color-style id, or null when not declared
fromRow - anchor from-corner row (0-based)
fromCol - anchor from-corner column (0-based)
toRow - anchor to-corner row (0-based)
toCol - anchor to-corner column (0-based)
nodeTexts - visible node texts in document order (hidden and presentation-only points excluded)

public record SmartArt(String layoutFamily, String layoutId, String quickStyle, String colorStyle, int fromRow, int fromCol, int toRow, int toCol, List<String> nodeTexts) extends Record
A SmartArt diagram descriptor (immutable, read-only). Read back with Sheet.smartArts().

The engine models imported SmartArt from the diagram package parts (data1.xml / layout1.xml / quick-style / colors) and renders it in PDF and image output. This descriptor exposes the layout classification, the on-sheet anchor, and the visible node texts. Authoring and editing are not supported; imported diagrams round-trip through the preserved package parts.

Reference: ECMA-376 Part 1 §21.4 (DrawingML Diagrams).

  • Constructor Details

    • SmartArt

      public SmartArt(String layoutFamily, String layoutId, String quickStyle, String colorStyle, int fromRow, int fromCol, int toRow, int toCol, List<String> nodeTexts)
      Creates an instance of a SmartArt record class.
      Parameters:
      layoutFamily - the value for the layoutFamily record component
      layoutId - the value for the layoutId record component
      quickStyle - the value for the quickStyle record component
      colorStyle - the value for the colorStyle record component
      fromRow - the value for the fromRow record component
      fromCol - the value for the fromCol record component
      toRow - the value for the toRow record component
      toCol - the value for the toCol record component
      nodeTexts - the value for the nodeTexts record component
  • Method Details

    • fromMap

      public static SmartArt fromMap(Map<String,Object> m)
      Build a SmartArt from one decoded FFI JSON object.
    • toString

      public final String toString()
      Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components.
      Specified by:
      toString in class Record
      Returns:
      a string representation of this object
    • hashCode

      public final int hashCode()
      Returns a hash code value for this object. The value is derived from the hash code of each of the record components.
      Specified by:
      hashCode in class Record
      Returns:
      a hash code value for this object
    • equals

      public final boolean equals(Object o)
      Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. Reference components are compared with Objects::equals(Object,Object); primitive components are compared with '=='.
      Specified by:
      equals in class Record
      Parameters:
      o - the object with which to compare
      Returns:
      true if this object is the same as the o argument; false otherwise.
    • layoutFamily

      public String layoutFamily()
      Returns the value of the layoutFamily record component.
      Returns:
      the value of the layoutFamily record component
    • layoutId

      public String layoutId()
      Returns the value of the layoutId record component.
      Returns:
      the value of the layoutId record component
    • quickStyle

      public String quickStyle()
      Returns the value of the quickStyle record component.
      Returns:
      the value of the quickStyle record component
    • colorStyle

      public String colorStyle()
      Returns the value of the colorStyle record component.
      Returns:
      the value of the colorStyle record component
    • fromRow

      public int fromRow()
      Returns the value of the fromRow record component.
      Returns:
      the value of the fromRow record component
    • fromCol

      public int fromCol()
      Returns the value of the fromCol record component.
      Returns:
      the value of the fromCol record component
    • toRow

      public int toRow()
      Returns the value of the toRow record component.
      Returns:
      the value of the toRow record component
    • toCol

      public int toCol()
      Returns the value of the toCol record component.
      Returns:
      the value of the toCol record component
    • nodeTexts

      public List<String> nodeTexts()
      Returns the value of the nodeTexts record component.
      Returns:
      the value of the nodeTexts record component