public abstract class AbstractPSystem extends java.lang.Object implements Diagram
Short for "plasma
system", although
most newer diagram types do not use entities stored in a plasma.
PSystemBuilder
Constructor and Description |
---|
AbstractPSystem(UmlSource source) |
Modifier and Type | Method and Description |
---|---|
java.lang.String |
checkFinalError() |
ImageBuilder |
createImageBuilder(FileFormatOption fileFormatOption) |
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.
|
void |
exportDiagramGraphic(UGraphic ug) |
protected abstract ImageData |
exportDiagramNow(java.io.OutputStream os,
int index,
FileFormatOption fileFormatOption) |
ClockwiseTopRightBottomLeft |
getDefaultMargins() |
java.lang.String |
getMetadata() |
java.lang.String |
getNamespaceSeparator() |
int |
getNbImages()
Number of images in this diagram (usually, 1)
|
Scale |
getScale() |
UmlSource |
getSource()
The original source of the diagram
|
int |
getSplitPagesHorizontal() |
int |
getSplitPagesVertical() |
DisplayPositionned |
getTitle() |
Display |
getTitleDisplay() |
java.lang.String |
getWarningOrError() |
boolean |
hasUrl()
Check if the Diagram have some links.
|
boolean |
isOk() |
void |
makeDiagramReady() |
protected ColorMapper |
muteColorMapper(ColorMapper init) |
long |
seed() |
void |
setNamespaceSeparator(java.lang.String namespaceSeparator) |
void |
setScale(Scale scale) |
void |
setSplitPagesHorizontal(int splitPagesHorizontal) |
void |
setSplitPagesVertical(int splitPagesVertical) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
getDescription
public AbstractPSystem(UmlSource source)
public void setNamespaceSeparator(java.lang.String namespaceSeparator)
public final java.lang.String getNamespaceSeparator()
public final java.lang.String getMetadata()
getMetadata
in interface Diagram
public final UmlSource getSource()
Diagram
public final long seed()
public int getNbImages()
Diagram
getNbImages
in interface Diagram
public int getSplitPagesHorizontal()
getSplitPagesHorizontal
in interface Diagram
public void setSplitPagesHorizontal(int splitPagesHorizontal)
public int getSplitPagesVertical()
getSplitPagesVertical
in interface Diagram
public void setSplitPagesVertical(int splitPagesVertical)
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()
public ImageBuilder createImageBuilder(FileFormatOption fileFormatOption) throws java.io.IOException
java.io.IOException
protected ColorMapper muteColorMapper(ColorMapper init)
protected abstract ImageData exportDiagramNow(java.io.OutputStream os, int index, FileFormatOption fileFormatOption) throws java.io.IOException
java.io.IOException
public ClockwiseTopRightBottomLeft getDefaultMargins()
public Display getTitleDisplay()
getTitleDisplay
in interface Diagram
public void exportDiagramGraphic(UGraphic ug)
exportDiagramGraphic
in interface Diagram