Class Diagram

java.lang.Object
com.independentsoft.office.drawing.GraphicObject
com.independentsoft.office.diagrams.Diagram
All Implemented Interfaces:
IContentElement

public class Diagram extends GraphicObject
The Class Diagram.
  • 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 XMLStreamException
      Instantiates a new diagram.
      Parameters:
      dataModelBuffer - the data model buffer
      layoutBuffer - the layout buffer
      styleBuffer - the style buffer
      colorBuffer - the color buffer
      dataModelRelationship - the data model relationship
      layoutRelationship - the layout relationship
      styleRelationship - the style relationship
      colorRelationship - the color relationship
      Throws:
      XMLStreamException - the xML stream exception
  • Method Details

    • getContentElements

      public List<IContentElement> getContentElements()
      Specified by:
      getContentElements in interface IContentElement
      Specified by:
      getContentElements in class GraphicObject
    • clone

      public Diagram clone()
      Specified by:
      clone in interface IContentElement
      Specified by:
      clone in class GraphicObject
    • getDataModel

      public DataModel getDataModel()
      Gets the data model.
      Returns:
      the data model
    • setDataModel

      public void setDataModel(DataModel dataModel)
      Sets the data model.
      Parameters:
      dataModel - the new data model
    • getLayout

      public Layout getLayout()
      Gets the layout.
      Returns:
      the layout
    • setLayout

      public void setLayout(Layout layout)
      Sets the layout.
      Parameters:
      layout - the new layout
    • getStyle

      public Style getStyle()
      Gets the style.
      Returns:
      the style
    • setStyle

      public void setStyle(Style style)
      Sets the style.
      Parameters:
      style - the new style
    • getColorTransform

      public ColorTransform getColorTransform()
      Gets the color transform.
      Returns:
      the color transform
    • setColorTransform

      public void setColorTransform(ColorTransform colorTransform)
      Sets the color transform.
      Parameters:
      colorTransform - the new color transform