Class AbstractPSystem

    • Constructor Detail

      • AbstractPSystem

        public AbstractPSystem​(UmlSource source)
    • Method Detail

      • getMetadata

        public final java.lang.String getMetadata()
        Specified by:
        getMetadata in interface Diagram
      • getSource

        public final UmlSource getSource()
        Description copied from interface: Diagram
        The original source of the diagram
        Specified by:
        getSource in interface Diagram
      • seed

        public final long seed()
      • getNbImages

        public int getNbImages()
        Description copied from interface: Diagram
        Number of images in this diagram (usually, 1)
        Specified by:
        getNbImages in interface Diagram
        Returns:
        usually 1
      • setSplitPagesHorizontal

        public void setSplitPagesHorizontal​(int splitPagesHorizontal)
      • setSplitPagesVertical

        public void setSplitPagesVertical​(int splitPagesVertical)
      • getWarningOrError

        public java.lang.String getWarningOrError()
        Specified by:
        getWarningOrError in interface Diagram
      • checkFinalError

        public java.lang.String checkFinalError()
      • makeDiagramReady

        public void makeDiagramReady()
      • isOk

        public boolean isOk()
      • hasUrl

        public boolean hasUrl()
        Description copied from interface: Diagram
        Check if the Diagram have some links.
        Specified by:
        hasUrl in interface Diagram
      • exportDiagram

        public final ImageData exportDiagram​(java.io.OutputStream os,
                                             int index,
                                             FileFormatOption fileFormatOption)
                                      throws java.io.IOException
        Description copied from interface: Diagram
        Export the diagram as an image to some format. Note that a diagram could be drawn as several images (think about new page for sequence diagram for example).
        Specified by:
        exportDiagram in interface Diagram
        Parameters:
        os - where to write the image
        index - usually 0 (index of the image to be exported for this diagram).
        fileFormatOption - file format to use
        Returns:
        a description of the generated image
        Throws:
        java.io.IOException
      • setScale

        public final void setScale​(Scale scale)
      • getScale

        public final Scale getScale()
      • createImageBuilder

        public ImageBuilder createImageBuilder​(FileFormatOption fileFormatOption)
                                        throws java.io.IOException
        Throws:
        java.io.IOException
      • exportDiagramNow

        protected abstract ImageData exportDiagramNow​(java.io.OutputStream os,
                                                      int index,
                                                      FileFormatOption fileFormatOption)
                                               throws java.io.IOException
        Throws:
        java.io.IOException