com.atlassian.selenium.visualcomparison.utils
Class Screenshot

java.lang.Object
  extended by 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>


Constructor Summary
Screenshot(java.io.File file)
           
Screenshot(VisualComparableClient client, java.lang.String id, java.lang.String imageDir, ScreenResolution resolution)
           
 
Method Summary
 int compareTo(Screenshot other)
           
static java.lang.String generateFileName(java.lang.String id, ScreenResolution resolution)
           
 ScreenshotDiff getDiff(Screenshot other)
           
 ScreenshotDiff getDiff(Screenshot other, java.util.List<BoundingBox> ignoreAreas, boolean ignoreSingleLines)
           
 java.lang.String getFileName()
           
 java.lang.String getId()
           
 java.awt.image.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,
                  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
Method Detail

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.