public class NewpagedDiagram extends AbstractPSystem
Constructor and Description |
---|
NewpagedDiagram(Diagram diag1,
Diagram diag2) |
Modifier and Type | Method and Description |
---|---|
CommandExecutionResult |
executeCommand(Command cmd,
List<String> lines) |
ImageData |
exportDiagram(OutputStream os,
int num,
FileFormatOption fileFormat)
Export the diagram as an image to some format.
|
DiagramDescription |
getDescription() |
int |
getNbImages()
Number of images in this diagram (usually, 1)
|
String |
getWarningOrError() |
void |
makeDiagramReady() |
String |
toString() |
getMetadata, getSource, getTitle, hasUrl, isOk, setSource
public CommandExecutionResult executeCommand(Command cmd, List<String> lines)
executeCommand
in class AbstractPSystem
public ImageData exportDiagram(OutputStream os, int num, FileFormatOption fileFormat) throws IOException
Diagram
new page
for sequence diagram for example).os
- where to write the imagenum
- useually 0 (index of the image to be exported for this diagram).fileFormat
- file format to useIOException
public int getNbImages()
Diagram
getNbImages
in interface Diagram
getNbImages
in class AbstractPSystem
public DiagramDescription getDescription()
public String getWarningOrError()
getWarningOrError
in interface Diagram
getWarningOrError
in class AbstractPSystem
public void makeDiagramReady()
makeDiagramReady
in class AbstractPSystem
Copyright © 2014. All Rights Reserved.