com.atlassian.selenium.visualcomparison.utils
Class Screenshot
java.lang.Object
com.atlassian.selenium.visualcomparison.utils.Screenshot
- All Implemented Interfaces:
- Comparable<Screenshot>
public class Screenshot
- extends Object
- implements Comparable<Screenshot>
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Screenshot
public Screenshot(VisualComparableClient client,
String id,
String imageDir,
ScreenResolution resolution)
throws IOException
- Throws:
IOException
Screenshot
public Screenshot(File file)
throws IOException
- Throws:
IOException
generateFileName
public static String generateFileName(String id,
ScreenResolution resolution)
getFileName
public String getFileName()
getId
public String getId()
getResolution
public ScreenResolution getResolution()
getImage
public BufferedImage getImage()
throws IOException
- Throws:
IOException
compareTo
public int compareTo(Screenshot other)
- Specified by:
compareTo in interface Comparable<Screenshot>
getDiff
public ScreenshotDiff getDiff(Screenshot other)
throws IOException
- Throws:
IOException
getDiff
public ScreenshotDiff getDiff(Screenshot other,
List<BoundingBox> ignoreAreas,
boolean ignoreSingleLines)
throws IOException
- Throws:
IOException
Copyright © 2014 Atlassian. All rights reserved.