public abstract class AbstractPSystem extends java.lang.Object implements Diagram
Constructor and Description |
---|
AbstractPSystem() |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkFinalError() |
CommandExecutionResult |
executeCommand(Command cmd,
BlocLines lines) |
ImageData |
exportDiagram(java.io.OutputStream os,
int index,
FileFormatOption fileFormatOption)
Export the diagram as an image to some format.
|
protected abstract ImageData |
exportDiagramNow(java.io.OutputStream os,
int index,
FileFormatOption fileFormatOption,
long seed) |
java.lang.String |
getMetadata() |
int |
getNbImages()
Number of images in this diagram (usually, 1)
|
Scale |
getScale() |
UmlSource |
getSource()
The original source of the diagram
|
DisplayPositionned |
getTitle() |
java.lang.String |
getWarningOrError() |
boolean |
hasUrl()
Check if the Diagram have some links.
|
boolean |
isOk() |
void |
makeDiagramReady() |
long |
seed() |
void |
setScale(Scale scale) |
void |
setSource(UmlSource source) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public final java.lang.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 java.lang.String getWarningOrError()
getWarningOrError
in interface Diagram
public java.lang.String checkFinalError()
public void makeDiagramReady()
public boolean isOk()
public CommandExecutionResult executeCommand(Command cmd, BlocLines lines)
public boolean hasUrl()
Diagram
public final ImageData exportDiagram(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.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 usejava.io.IOException
public final void setScale(Scale scale)
public final Scale getScale()
protected abstract ImageData exportDiagramNow(java.io.OutputStream os, int index, FileFormatOption fileFormatOption, long seed) throws java.io.IOException
java.io.IOException
Copyright © 2020. All Rights Reserved.