net.sourceforge.plantuml.project2
Class PSystemProject2

java.lang.Object
  extended by net.sourceforge.plantuml.AbstractPSystem
      extended by net.sourceforge.plantuml.project2.PSystemProject2
All Implemented Interfaces:
Diagram

public class PSystemProject2
extends AbstractPSystem


Constructor Summary
PSystemProject2()
           
 
Method Summary
 ImageData exportDiagram(OutputStream os, int num, FileFormatOption fileFormatOption)
          Export the diagram as an image to some format.
 DiagramDescription getDescription()
           
 int getNbImages()
          Number of images in this diagram (usually, 1)
 Project2 getProject()
           
 
Methods inherited from class net.sourceforge.plantuml.AbstractPSystem
executeCommand, getMetadata, getSource, getTitle, getWarningOrError, hasUrl, isOk, makeDiagramReady, setSource
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

PSystemProject2

public PSystemProject2()
Method Detail

getNbImages

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

Specified by:
getNbImages in interface Diagram
Overrides:
getNbImages in class AbstractPSystem
Returns:
usually 1

getDescription

public DiagramDescription getDescription()

exportDiagram

public ImageData exportDiagram(OutputStream os,
                               int num,
                               FileFormatOption fileFormatOption)
                        throws 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).

Parameters:
os - where to write the image
num - useually 0 (index of the image to be exported for this diagram).
fileFormatOption - file format to use
Returns:
a description of the generated image
Throws:
IOException

getProject

public final Project2 getProject()


Copyright © 2014. All Rights Reserved.