Package io.keikai.model.impl
Class SmartArtImpl
java.lang.Object
io.keikai.model.impl.SmartArtImpl
- All Implemented Interfaces:
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
ConstructorsConstructorDescriptionSmartArtImpl(String diagramId, byte[] diagramData, byte[] diagramLayout, byte[] diagramStyle, byte[] diagramColors, byte[] fallbackDrawing, ViewAnchor anchor) Constructs a SmartArt diagram. -
Method Summary
Modifier and TypeMethodDescriptionReturns 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.
-
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 identifierdiagramData- the raw XML bytes for the diagram datadiagramLayout- the raw XML bytes for the diagram layoutdiagramStyle- the raw XML bytes for the diagram stylediagramColors- the raw XML bytes for the diagram colorsfallbackDrawing- the fallback image bytes for renderinganchor- the position anchor on the sheet
-
-
Method Details
-
getDiagramId
Description copied from interface:SSmartArtReturns the unique diagram identifier.- Specified by:
getDiagramIdin interfaceSSmartArt- Returns:
- the diagram ID
-
getDiagramData
public byte[] getDiagramData()Description copied from interface:SSmartArtReturns the raw XML bytes of the diagram data (dgm:dataModel). Preserved for round-trip export.- Specified by:
getDiagramDatain interfaceSSmartArt- Returns:
- the diagram data XML bytes, or null if not available
-
getDiagramLayout
public byte[] getDiagramLayout()Description copied from interface:SSmartArtReturns the raw XML bytes of the diagram layout definition.- Specified by:
getDiagramLayoutin interfaceSSmartArt- Returns:
- the diagram layout XML bytes, or null if not available
-
getDiagramStyle
public byte[] getDiagramStyle()Description copied from interface:SSmartArtReturns the raw XML bytes of the diagram style definition.- Specified by:
getDiagramStylein interfaceSSmartArt- Returns:
- the diagram style XML bytes, or null if not available
-
getDiagramColors
public byte[] getDiagramColors()Description copied from interface:SSmartArtReturns the raw XML bytes of the diagram color transform.- Specified by:
getDiagramColorsin interfaceSSmartArt- Returns:
- the diagram colors XML bytes, or null if not available
-
getFallbackDrawing
public byte[] getFallbackDrawing()Description copied from interface:SSmartArtReturns the fallback drawing image used for rendering when the SmartArt engine is not available.- Specified by:
getFallbackDrawingin interfaceSSmartArt- Returns:
- the fallback image bytes, or null if not available
-
getAnchor
Description copied from interface:SSmartArtReturns the anchor that positions this SmartArt on the sheet.
-