Package net.sourceforge.plantuml.core
Interface Diagram
- All Known Subinterfaces:
WithSprite
- All Known Implementing Classes:
AbstractClassOrObjectDiagram
,AbstractEntityDiagram
,AbstractPSystem
,ActivityDiagram
,ActivityDiagram3
,BoardDiagram
,BpmDiagram
,ChenEerDiagram
,ChronologyDiagram
,ClassDiagram
,CompositeDiagram
,CucaDiagram
,DescriptionDiagram
,FilesDiagram
,FlowDiagram
,GanttDiagram
,GitDiagram
,Help
,JsonDiagram
,ListSpriteDiagram
,MindMapDiagram
,NewpagedDiagram
,NwDiagram
,PlainDiagram
,PlainStringsDiagram
,PSystemAppleTwo
,PSystemCharlie
,PSystemColors
,PSystemCreole
,PSystemDedication
,PSystemDefinition
,PSystemDitaa
,PSystemDonors
,PSystemDot
,PSystemEbnf
,PSystemEgg
,PSystemError
,PSystemErrorEmpty
,PSystemErrorPreprocessor
,PSystemErrorV2
,PSystemJcckit
,PSystemKeycheck
,PSystemKeygen
,PSystemLatex
,PSystemLicense
,PSystemListEmoji
,PSystemListFonts
,PSystemListInternalSprites
,PSystemListOpenIconic
,PSystemLost
,PSystemMath
,PSystemOpenIconic
,PSystemOregon
,PSystemPath
,PSystemRegex
,PSystemRIP
,PSystemSalt
,PSystemSkinparameterList
,PSystemStats
,PSystemSudoku
,PSystemUnsupported
,PSystemVersion
,PSystemWelcome
,PSystemXearth
,SequenceDiagram
,StateDiagram
,StdlibDiagram
,TimingDiagram
,TitledDiagram
,UmlDiagram
,WBSDiagram
,WireDiagram
public interface Diagram
Represents a single diagram. A Diagram could be a UML (sequence diagram,
class diagram...) or an non-UML diagram.
-
Method Summary
Modifier and TypeMethodDescriptionexportDiagram
(OutputStream os, int num, FileFormatOption fileFormat) Export the diagram as an image to some format.void
exportDiagramGraphic
(UGraphic ug, FileFormatOption fileFormat) int
Number of images in this diagram (usually, 1)The original source of the diagramint
int
boolean
hasUrl()
Check if the Diagram have some links.
-
Method Details
-
exportDiagram
Export the diagram as an image to some format. Note that a diagram could be drawn as several images (think aboutnew page
for 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:
IOException
-
exportDiagramGraphic
-
getNbImages
int getNbImages()Number of images in this diagram (usually, 1)- Returns:
- usually 1
-
getSplitPagesHorizontal
int getSplitPagesHorizontal() -
getSplitPagesVertical
int getSplitPagesVertical() -
getDescription
DiagramDescription getDescription() -
getMetadata
String getMetadata() -
getWarningOrError
String getWarningOrError() -
getSource
UmlSource getSource()The original source of the diagram -
hasUrl
boolean hasUrl()Check if the Diagram have some links. -
getTitleDisplay
Display getTitleDisplay()
-