Class Diagram
java.lang.Object
com.independentsoft.office.drawing.GraphicObject
com.independentsoft.office.diagrams.Diagram
- All Implemented Interfaces:
IContentElement
The Class Diagram.
-
Constructor Summary
ConstructorsConstructorDescriptionDiagram()Instantiates a new diagram.Diagram(byte[] dataModelBuffer, byte[] layoutBuffer, byte[] styleBuffer, byte[] colorBuffer, Relationship dataModelRelationship, Relationship layoutRelationship, Relationship styleRelationship, Relationship colorRelationship)Instantiates a new diagram. -
Method Summary
Modifier and TypeMethodDescriptionclone()Gets the color transform.Gets the data model.Gets the layout.getStyle()Gets the style.voidsetColorTransform(ColorTransform colorTransform)Sets the color transform.voidsetDataModel(DataModel dataModel)Sets the data model.voidSets the layout.voidSets the style.
-
Constructor Details
-
Diagram
public Diagram()Instantiates a new diagram. -
Diagram
public Diagram(byte[] dataModelBuffer, byte[] layoutBuffer, byte[] styleBuffer, byte[] colorBuffer, Relationship dataModelRelationship, Relationship layoutRelationship, Relationship styleRelationship, Relationship colorRelationship) throws XMLStreamExceptionInstantiates a new diagram.- Parameters:
dataModelBuffer- the data model bufferlayoutBuffer- the layout bufferstyleBuffer- the style buffercolorBuffer- the color bufferdataModelRelationship- the data model relationshiplayoutRelationship- the layout relationshipstyleRelationship- the style relationshipcolorRelationship- the color relationship- Throws:
XMLStreamException- the xML stream exception
-
-
Method Details
-
getContentElements
- Specified by:
getContentElementsin interfaceIContentElement- Specified by:
getContentElementsin classGraphicObject
-
clone
- Specified by:
clonein interfaceIContentElement- Specified by:
clonein classGraphicObject
-
getDataModel
Gets the data model.- Returns:
- the data model
-
setDataModel
Sets the data model.- Parameters:
dataModel- the new data model
-
getLayout
Gets the layout.- Returns:
- the layout
-
setLayout
Sets the layout.- Parameters:
layout- the new layout
-
getStyle
Gets the style.- Returns:
- the style
-
setStyle
Sets the style.- Parameters:
style- the new style
-
getColorTransform
Gets the color transform.- Returns:
- the color transform
-
setColorTransform
Sets the color transform.- Parameters:
colorTransform- the new color transform
-