Class Diagram

    • Constructor Detail

      • Diagram

        public Diagram​(String resourceId,
                       StencilType stencil,
                       StencilSet stencilset)
        Normal shape constructor with additional stencilset
        Parameters:
        resourceId - resourceId of the diagram shape
        stencil - stencil usually Diagram
        stencilset - StencilSet with url and namespace
      • Diagram

        public Diagram​(String resourceId,
                       StencilType stencil)
        Parameters:
        resourceId -
        stencil -
      • Diagram

        public Diagram​(String resourceId)
        Parameters:
        resourceId -
    • Method Detail

      • getStencilset

        public StencilSet getStencilset()
        Gives the stenilset of a diagram
        Returns:
        the stencilset
      • setStencilset

        public void setStencilset​(StencilSet stencilset)
        Set a new StencilSet
        Parameters:
        stencilset - the stencilset to set type StencilSet
      • getSsextensions

        public ArrayList<String> getSsextensions()
        Gives an ArrayList which contains all StencilSet- Extension identifier
        Returns:
        the ssextensions
      • setSsextensions

        public void setSsextensions​(ArrayList<String> ssextensions)
        set a new StencilSet-Extension ArrayList
        Parameters:
        ssextensions - the ssextensions to set
      • addSsextension

        public boolean addSsextension​(String ssExt)
        Add an additional SSExtension
        Parameters:
        ssExt - the ssextension to set
      • getShapes

        public ArrayList<Shape> getShapes()
        returns all shapes of a diagram
        Returns:
        the shapes
      • setShapes

        public void setShapes​(ArrayList<Shape> shapes)
        set a new ArrayList
        Parameters:
        shapes - the shapes to set
      • addShapes

        public boolean addShapes​(Shape shape)
        Add an additional shape to the diagram
        Parameters:
        shape - the shape to set
      • getParent

        public Shape getParent()
        Overrides:
        getParent in class Shape
        Returns:
        the parent
      • getJSON

        public String getJSON()