public class Size extends Object
Example usage:
try (Comparer comparer = new Comparer(sourceFile)) {
comparer.add(targetFile);
final Size originalSize = new Size(100, 200);
StyleSettings styleSettings = new StyleSettings();
styleSettings.setOriginalSize(originalSize);
final CompareOptions compareOptions = new CompareOptions();
compareOptions.setInsertedItemStyle(styleSettings);
comparer.compare(resultFile, compareOptions);
}
Comparer,
StyleSettings,
CompareOptions| Constructor and Description |
|---|
Size()
Initializes a new instance of the Size class.
|
Size(int width,
int height)
Initializes a new instance of the Size class with width and height of a document.
|
| Modifier and Type | Method and Description |
|---|---|
int |
getHeight()
Gets the height of an original document.
|
int |
getWidth()
Gets the width of an original document.
|
void |
setHeight(int value)
Sets the height of an original document.
|
void |
setWidth(int value)
Sets the width of an original document.
|
public Size()
Initializes a new instance of the Size class.
public Size(int width,
int height)
Initializes a new instance of the Size class with width and height of a document.
public final int getHeight()
Gets the height of an original document.
public final int getWidth()
Gets the width of an original document.
public final void setHeight(int value)
Sets the height of an original document.
value - The height of the documentpublic final void setWidth(int value)
Sets the width of an original document.
value - The width of the documentCopyright © 2024. All rights reserved.