com.atlassian.selenium.visualcomparison.utils
Class Screenshot
java.lang.Object
com.atlassian.selenium.visualcomparison.utils.Screenshot
- All Implemented Interfaces:
- java.lang.Comparable<Screenshot>
public class Screenshot
- extends java.lang.Object
- implements java.lang.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,
java.lang.String id,
java.lang.String imageDir,
ScreenResolution resolution)
throws java.io.IOException
- Throws:
java.io.IOException
Screenshot
public Screenshot(java.io.File file)
throws java.io.IOException
- Throws:
java.io.IOException
generateFileName
public static java.lang.String generateFileName(java.lang.String id,
ScreenResolution resolution)
getFileName
public java.lang.String getFileName()
getId
public java.lang.String getId()
getResolution
public ScreenResolution getResolution()
getImage
public java.awt.image.BufferedImage getImage()
throws java.io.IOException
- Throws:
java.io.IOException
compareTo
public int compareTo(Screenshot other)
- Specified by:
compareTo in interface java.lang.Comparable<Screenshot>
getDiff
public ScreenshotDiff getDiff(Screenshot other)
throws java.io.IOException
- Throws:
java.io.IOException
getDiff
public ScreenshotDiff getDiff(Screenshot other,
java.util.List<BoundingBox> ignoreAreas,
boolean ignoreSingleLines)
throws java.io.IOException
- Throws:
java.io.IOException
Copyright © 2013 Atlassian. All Rights Reserved.