DiagramMasterSetting
Leave feedback
On this page
Inheritance: java.lang.Object
public class DiagramMasterSetting
Represents the settings for diagram master comparison.
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);
}
| Constructor | Description |
|---|---|
| DiagramMasterSetting() | Initializes a new instance of the DiagramMasterSetting class. |
| Method | Description |
|---|---|
| isUseSourceMaster() | Gets a flag that indicates whether source master path will be used. |
| setUseSourceMaster(boolean value) | Gets a flag that indicates whether source master path should be used. |
| getMasterPath() | Gets a master path that will be used to render documents. |
| setMasterPath(String value) | Sets a master path that should be used to render documents. |
public DiagramMasterSetting()
Initializes a new instance of the DiagramMasterSetting class.
public final boolean isUseSourceMaster()
Gets a flag that indicates whether source master path will be used.
Returns: boolean - true if source master path will be shown, otherwise false
public final void setUseSourceMaster(boolean value)
Gets a flag that indicates whether source master path should be used.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | boolean | true if source master path should be shown, otherwise false |
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.
Returns: java.lang.String - path of master document if it is set, otherwise default master path
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.
Parameters:
| Parameter | Type | Description |
|---|---|---|
| value | java.lang.String | Path of master document if it is set, otherwise default master path |
Was this page helpful?
Any additional feedback you'd like to share with us?
Please tell us how we can improve this page.
Thank you for your feedback!
We value your opinion. Your feedback will help us improve our documentation.