Documentation of 'jhplot.HDiagram' Java class.

Class HDiagram

  • public class HDiagramextends Object
    Create diagrams from a string or a file using the PlantUML syntax. See It allows to make Sequence diagram
    Usecase diagram
    Class diagram
    Activity diagram (here is the legacy syntax)
    Component diagram
    State diagram
    Object diagram
    Deployment diagram
    Timing diagram
    In addition, it makes: Specification and Description Language (SDL)
    Ditaa diagram
    Gantt diagram
    Mathematic with AsciiMath or JLaTeXMath notation.
    Diagrams can be exported to EPS, PDF, PNG, SVG images.
    • Constructor Detail

      • HDiagram

        public HDiagram(String source)
        Initialize a from a source string.
        source - diagram using PlantUML Language.
      • HDiagram

        public HDiagram()
        Default constructor.
    • Method Detail

      • fromString

        public void fromString(String source)
        Build a diagram from a string.
        source - string in PlantUML Language.
      • fromFile

        public void fromFile(String file)
        Build a diagram from a file
        file - file with diagram in PlantUML Language.
      • getReader

        public net.sourceforge.plantuml.SourceStringReader getReader()
        Return reader.
      • export

        public void export(String file)
        Fast export of the diagram to an image file. The ouput format depends on the file extension:
        SVG - Scalable Vector Graphics (SVG)
        SVGZ - compressed SVG
        PNG - raster format
        PDF - PDF
        EPS - PostScript (encapsulated)
        HTMP5 - HTML5

        No questions will be asked and existing file will be rewritten

        file - Output file with the proper extension (SVG, SVGZ, PNG, PDF, EPS). If no extension, PNG file is assumed.
      • doc

        public void doc()

DMelt 2.7 © DataMelt by jWork.ORG