Package net.sourceforge.plantuml.core
Interface Diagram
-
- All Known Subinterfaces:
WithSprite
- All Known Implementing Classes:
AbstractClassOrObjectDiagram,AbstractEntityDiagram,AbstractPSystem,ActivityDiagram,ActivityDiagram3,BoardDiagram,BpmDiagram,ClassDiagram,CompositeDiagram,CucaDiagram,DescriptionDiagram,FlowDiagram,GanttDiagram,GitDiagram,Help,JsonDiagram,ListSpriteDiagram,MindMapDiagram,NewpagedDiagram,NwDiagram,PostItDiagram,PSystemAppleTwo,PSystemCharlie,PSystemColors,PSystemCreole,PSystemCute,PSystemDedication,PSystemDefinition,PSystemDitaa,PSystemDonors,PSystemDot,PSystemEgg,PSystemError,PSystemErrorEmpty,PSystemErrorPreprocessor,PSystemErrorV2,PSystemKeycheck,PSystemKeygen,PSystemLatex,PSystemLicense,PSystemListFonts,PSystemListInternalSprites,PSystemListOpenIconic,PSystemLost,PSystemMath,PSystemOpenIconic,PSystemOregon,PSystemPath,PSystemRIP,PSystemSalt,PSystemSkinparameterList,PSystemStats,PSystemTree,PSystemVersion,PSystemWelcome,SequenceDiagram,StateDiagram,StdlibDiagram,TimingDiagram,TitledDiagram,UmlDiagram,WBSDiagram,WireDiagram
public interface DiagramRepresents a single diagram. A Diagram could be a UML (sequence diagram, class diagram...) or an non-UML diagram.
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ImageDataexportDiagram(java.io.OutputStream os, int num, FileFormatOption fileFormat)Export the diagram as an image to some format.DiagramDescriptiongetDescription()java.lang.StringgetMetadata()intgetNbImages()Number of images in this diagram (usually, 1)UmlSourcegetSource()The original source of the diagramjava.lang.StringgetWarningOrError()booleanhasUrl()Check if the Diagram have some links.
-
-
-
Method Detail
-
exportDiagram
ImageData exportDiagram(java.io.OutputStream os, int num, FileFormatOption fileFormat) throws java.io.IOException
Export 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).- Parameters:
os- where to write the imagenum- usually 0 (index of the image to be exported for this diagram).fileFormat- file format to use- Returns:
- a description of the generated image
- Throws:
java.io.IOException
-
getNbImages
int getNbImages()
Number of images in this diagram (usually, 1)- Returns:
- usually 1
-
getDescription
DiagramDescription getDescription()
-
getMetadata
java.lang.String getMetadata()
-
getWarningOrError
java.lang.String getWarningOrError()
-
getSource
UmlSource getSource()
The original source of the diagram- Returns:
-
hasUrl
boolean hasUrl()
Check if the Diagram have some links.- Returns:
-
-