com.atlassian.selenium.visualcomparison.utils
Class Screenshot

java.lang.Object
  extended by com.atlassian.selenium.visualcomparison.utils.Screenshot
All Implemented Interfaces:
Comparable<Screenshot>

public class Screenshot
extends Object
implements Comparable<Screenshot>


Constructor Summary
Screenshot(File file)
           
Screenshot(VisualComparableClient client, String id, String imageDir, ScreenResolution resolution)
           
 
Method Summary
 int compareTo(Screenshot other)
           
static String generateFileName(String id, ScreenResolution resolution)
           
 ScreenshotDiff getDiff(Screenshot other)
           
 ScreenshotDiff getDiff(Screenshot other, List<BoundingBox> ignoreAreas, boolean ignoreSingleLines)
           
 String getFileName()
           
 String getId()
           
 BufferedImage getImage()
           
 ScreenResolution getResolution()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

Screenshot

public Screenshot(VisualComparableClient client,
                  String id,
                  String imageDir,
                  ScreenResolution resolution)
           throws IOException
Throws:
IOException

Screenshot

public Screenshot(File file)
           throws IOException
Throws:
IOException
Method Detail

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.