net.sourceforge.plantuml.core
Interface Diagram
-
- All Known Implementing Classes:
- AbstractClassOrObjectDiagram, AbstractEntityDiagram, AbstractPSystem, ActivityDiagram, ActivityDiagram3, BpmDiagram, ClassDiagram, CompositeDiagram, CucaDiagram, DescriptionDiagram, FlowDiagram, GanttDiagram, NewpagedDiagram, ObjectDiagram, PostItDiagram, PSystemAppleTwo, PSystemCharlie, PSystemColors, PSystemCreole, PSystemCute, PSystemDedication, PSystemDefinition, PSystemDitaa, PSystemDonors, PSystemDot, PSystemEgg, PSystemError, PSystemJcckit, PSystemLatex, PSystemLicense, PSystemListFonts, PSystemListInternalSprites, PSystemListOpenIconic, PSystemLogo, PSystemLost, PSystemMath, PSystemOpenIconic, PSystemOregon, PSystemPath, PSystemProject, PSystemProject2, PSystemRIP, PSystemSalt, PSystemSkinparameterList, PSystemStats, PSystemSudoku, PSystemTree, PSystemVersion, PSystemWelcome, PSystemXearth, SequenceDiagram, StateDiagram, TimingDiagram, UmlDiagram
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 and 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:
-
-
DataMelt 3.0 © DataMelt by jWork.ORG