Interface DiagramComparator
- All Known Implementing Classes:
DiagramComparatorImpl
@OpenApiAll
public interface DiagramComparator
Base interface for comparing diagrams.
-
Method Summary
Modifier and TypeMethodDescriptionboolean
compareDiagrams
(Collection<AbstractDiagramPresentationElement> diagrams1, Collection<AbstractDiagramPresentationElement> diagrams2) Compare two diagram presentations.Format textual information about differences found in compared diagrams.void
saveDiffToImageFiles
(File file) Save graphical diagram differences to the given file or directory.
-
Method Details
-
compareDiagrams
boolean compareDiagrams(Collection<AbstractDiagramPresentationElement> diagrams1, Collection<AbstractDiagramPresentationElement> diagrams2) Compare two diagram presentations.- Parameters:
diagrams1
- first diagram to compare.diagrams2
- second diagram to compare.- Returns:
- true if diagrams are equals.
-
getDiffInfo
String getDiffInfo()Format textual information about differences found in compared diagrams.- Returns:
- String information about differences in diagram.
-
saveDiffToImageFiles
Save graphical diagram differences to the given file or directory.- Parameters:
file
- File or directory to save graphical differences to.
-