Package io.keikai.axyra.sheets.content
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 fallbacklayoutId- layout-id token from<dgm:layoutDef uniqueId>quickStyle- quick-style id, ornullwhen not declaredcolorStyle- color-style id, ornullwhen not declaredfromRow- 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 Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of thecolorStylerecord component.final booleanIndicates whether some other object is "equal to" this one.intfromCol()Returns the value of thefromColrecord component.static SmartArtBuild aSmartArtfrom one decoded FFI JSON object.intfromRow()Returns the value of thefromRowrecord component.final inthashCode()Returns a hash code value for this object.Returns the value of thelayoutFamilyrecord component.layoutId()Returns the value of thelayoutIdrecord component.Returns the value of thenodeTextsrecord component.Returns the value of thequickStylerecord component.inttoCol()Returns the value of thetoColrecord component.inttoRow()Returns the value of thetoRowrecord component.final StringtoString()Returns a string representation of this record class.
-
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 aSmartArtrecord class.- Parameters:
layoutFamily- the value for thelayoutFamilyrecord componentlayoutId- the value for thelayoutIdrecord componentquickStyle- the value for thequickStylerecord componentcolorStyle- the value for thecolorStylerecord componentfromRow- the value for thefromRowrecord componentfromCol- the value for thefromColrecord componenttoRow- the value for thetoRowrecord componenttoCol- the value for thetoColrecord componentnodeTexts- the value for thenodeTextsrecord component
-
-
Method Details
-
fromMap
Build aSmartArtfrom one decoded FFI JSON object. -
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. -
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. -
equals
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 withObjects::equals(Object,Object); primitive components are compared with '=='. -
layoutFamily
Returns the value of thelayoutFamilyrecord component.- Returns:
- the value of the
layoutFamilyrecord component
-
layoutId
Returns the value of thelayoutIdrecord component.- Returns:
- the value of the
layoutIdrecord component
-
quickStyle
Returns the value of thequickStylerecord component.- Returns:
- the value of the
quickStylerecord component
-
colorStyle
Returns the value of thecolorStylerecord component.- Returns:
- the value of the
colorStylerecord component
-
fromRow
public int fromRow()Returns the value of thefromRowrecord component.- Returns:
- the value of the
fromRowrecord component
-
fromCol
public int fromCol()Returns the value of thefromColrecord component.- Returns:
- the value of the
fromColrecord component
-
toRow
public int toRow()Returns the value of thetoRowrecord component.- Returns:
- the value of the
toRowrecord component
-
toCol
public int toCol()Returns the value of thetoColrecord component.- Returns:
- the value of the
toColrecord component
-
nodeTexts
Returns the value of thenodeTextsrecord component.- Returns:
- the value of the
nodeTextsrecord component
-