public class DiagramMasterSetting extends Object
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
final DiagramMasterSetting diagramMasterSetting = new DiagramMasterSetting();
diagramMasterSetting.setMasterPath(masterFilePath);
final CompareOptions compareOptions = new CompareOptions();
compareOptions.setDiagramMasterSetting(diagramMasterSetting);
comparer.compare(resultFile, compareOptions);
}
Comparer,
CompareOptions| Modifier and Type | Class and Description |
|---|---|
static class |
DiagramMasterSetting.Builder
A
DiagramMasterSetting builder. |
| Constructor and Description |
|---|
DiagramMasterSetting()
Initializes a new instance of the DiagramMasterSetting class.
|
| Modifier and Type | Method and Description |
|---|---|
String |
getMasterPath()
Gets a master path that will be used to render documents.
|
boolean |
isUseSourceMaster()
Gets a flag that indicates whether source master path will be used.
|
void |
setMasterPath(String value)
Sets a master path that should be used to render documents.
|
void |
setUseSourceMaster(boolean value)
Gets a flag that indicates whether source master path should be used.
|
public DiagramMasterSetting()
Initializes a new instance of the DiagramMasterSetting class.
public final String getMasterPath()
Gets a master path that will be used to render documents. MasterPath is needed to create a result document from a set of default shapes.
public final boolean isUseSourceMaster()
Gets a flag that indicates whether source master path will be used.
public final void setMasterPath(String value)
Sets a master path that should be used to render documents. MasterPath is needed to create a result document from a set of default shapes.
value - Path of master document if it is set, otherwise default master pathpublic final void setUseSourceMaster(boolean value)
Gets a flag that indicates whether source master path should be used.
value - true if source master path should be shown, otherwise falseCopyright © 2024. All rights reserved.