Package net.sourceforge.plantuml
Class AbstractPSystem
java.lang.Object
net.sourceforge.plantuml.AbstractPSystem
- All Implemented Interfaces:
Diagram,WarningHandler
- Direct Known Subclasses:
NewpagedDiagram,PlainDiagram,PSystemDitaa,PSystemDot,PSystemLatex,PSystemMath,PSystemPath,TitledDiagram
An abstract class for all diagram classes.
Short for "plasma system", although
most newer diagram types do not use entities stored in a plasma.
- See Also:
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddWarning(Warning warning) createImageBuilder(FileFormatOption fileFormatOption) executeCommand(Command cmd, BlocLines lines, ParserPass currentPass) final ImageDataexportDiagram(OutputStream os, int index, FileFormatOption fileFormatOption) Export the diagram as an image to some format.voidexportDiagramGraphic(UGraphic ug, FileFormatOption fileFormatOption) protected abstract ImageDataexportDiagramNow(OutputStream os, int index, FileFormatOption fileFormatOption) final Stringfinal StringintNumber of images in this diagram (usually, 1)final PreprocessingArtifactfinal ScalegetScale()final UmlSourceThe original source of the diagramintintgetTitle()booleanhasUrl()Check if the Diagram have some links.booleanisOk()voidprotected ColorMappermuteColorMapper(ColorMapper init) final longseed()voidsetNamespaceSeparator(String namespaceSeparator) final voidvoidsetSplitPagesHorizontal(int splitPagesHorizontal) voidsetSplitPagesVertical(int splitPagesVertical) voidstartingPass(ParserPass pass) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface net.sourceforge.plantuml.core.Diagram
getDescription
-
Constructor Details
-
AbstractPSystem
-
-
Method Details
-
setNamespaceSeparator
-
getNamespaceSeparator
-
getMetadata
- Specified by:
getMetadatain interfaceDiagram
-
getSource
Description copied from interface:DiagramThe original source of the diagram -
seed
public final long seed() -
getNbImages
public int getNbImages()Description copied from interface:DiagramNumber of images in this diagram (usually, 1)- Specified by:
getNbImagesin interfaceDiagram- Returns:
- usually 1
-
getSplitPagesHorizontal
public int getSplitPagesHorizontal()- Specified by:
getSplitPagesHorizontalin interfaceDiagram
-
setSplitPagesHorizontal
public void setSplitPagesHorizontal(int splitPagesHorizontal) -
getSplitPagesVertical
public int getSplitPagesVertical()- Specified by:
getSplitPagesVerticalin interfaceDiagram
-
setSplitPagesVertical
public void setSplitPagesVertical(int splitPagesVertical) -
getTitle
-
getWarningOrError
- Specified by:
getWarningOrErrorin interfaceDiagram
-
checkFinalError
-
makeDiagramReady
public void makeDiagramReady() -
isOk
public boolean isOk() -
executeCommand
-
hasUrl
public boolean hasUrl()Description copied from interface:DiagramCheck if the Diagram have some links. -
exportDiagram
public final ImageData exportDiagram(OutputStream os, int index, FileFormatOption fileFormatOption) throws IOException Description copied from interface:DiagramExport the diagram as an image to some format. Note that a diagram could be drawn as several images (think aboutnew pagefor sequence diagram for example).- Specified by:
exportDiagramin interfaceDiagram- Parameters:
os- where to write the imageindex- usually 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
-
setScale
-
getScale
-
createImageBuilder
- Throws:
IOException
-
muteColorMapper
-
exportDiagramNow
protected abstract ImageData exportDiagramNow(OutputStream os, int index, FileFormatOption fileFormatOption) throws IOException - Throws:
IOException
-
getDefaultMargins
-
getTitleDisplay
- Specified by:
getTitleDisplayin interfaceDiagram
-
exportDiagramGraphic
- Specified by:
exportDiagramGraphicin interfaceDiagram
-
getRequiredPass
-
startingPass
-
getPreprocessingArtifact
-
addWarning
- Specified by:
addWarningin interfaceWarningHandler
-
getWarnings
- Specified by:
getWarningsin interfaceWarningHandler
-
getInstallationRequirement
- Specified by:
getInstallationRequirementin interfaceDiagram
-