public abstract class AbstractPSystem extends Object implements Diagram
Constructor and Description |
---|
AbstractPSystem() |
Modifier and Type | Method and Description |
---|---|
String |
checkFinalError() |
CommandExecutionResult |
executeCommand(Command cmd,
BlocLines lines) |
ImageData |
exportDiagram(OutputStream os,
int index,
FileFormatOption fileFormatOption)
Export the diagram as an image to some format.
|
protected abstract ImageData |
exportDiagramNow(OutputStream os,
int index,
FileFormatOption fileFormatOption,
long seed) |
String |
getMetadata() |
int |
getNbImages()
Number of images in this diagram (usually, 1)
|
UmlSource |
getSource()
The original source of the diagram
|
DisplayPositionned |
getTitle() |
String |
getWarningOrError() |
boolean |
hasUrl()
Check if the Diagram have some links.
|
boolean |
isOk() |
void |
makeDiagramReady() |
long |
seed() |
void |
setSource(UmlSource source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public final String getMetadata()
getMetadata
in interface Diagram
public final UmlSource getSource()
Diagram
public final long seed()
public final void setSource(UmlSource source)
public int getNbImages()
Diagram
getNbImages
in interface Diagram
public DisplayPositionned getTitle()
public String getWarningOrError()
getWarningOrError
in interface Diagram
public String checkFinalError()
public void makeDiagramReady()
public boolean isOk()
public CommandExecutionResult executeCommand(Command cmd, BlocLines lines)
public boolean hasUrl()
Diagram
public final ImageData exportDiagram(OutputStream os, int index, FileFormatOption fileFormatOption) throws IOException
Diagram
new page
for sequence diagram for example).exportDiagram
in interface Diagram
os
- where to write the imageindex
- usually 0 (index of the image to be exported for this diagram).fileFormatOption
- file format to useIOException
protected abstract ImageData exportDiagramNow(OutputStream os, int index, FileFormatOption fileFormatOption, long seed) throws IOException
IOException
Copyright © 2017. All Rights Reserved.