|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.apache.batik.apps.regard.Main
A diffing tool.
Constructor Summary | |
Main()
|
Method Summary | |
static java.lang.String |
computeTimeStamp()
|
static void |
diffBufferedImage(java.awt.image.Raster ref,
java.awt.image.Raster cmp,
java.awt.image.Raster diff)
This is the core method to calculate the difference of the two input images and save the comparison into the output image |
static void |
diffImage()
DIFFERENCE Diffs the images from the 'ref' and the 'new' directories. |
static boolean |
diffImage(java.lang.String refInputURI,
java.lang.String newInputURI)
Returns true if the specified images are the same, false otherwise. |
static void |
display(java.lang.String msg)
Display the specified message. |
static void |
error(java.lang.String msg)
Display the specified error message. |
static void |
exit(int code)
Exits the application with the specified code. |
static void |
generateNewImages()
NEW IMAGES Generates the new images using the SVG files from the 'svg' directory. |
static void |
generateRefImages()
REFERENCE Generates the reference images using the SVG files from the 'svg' directory. |
static void |
generateReport()
|
static void |
generateReport(java.io.File[] refImages,
int[] badIndex,
int bi)
|
static java.lang.String |
getDiffDirectory()
Returns the directory where the difference images are stored. |
static java.lang.String |
getNewDirectory()
Returns the directory where the new images are stored. |
static java.lang.String |
getRefDirectory()
Returns the directory where the reference images are stored. |
static java.lang.String |
getSamplesDirectory()
Returns the directory where the SVG samples are stored. |
static Transcoder |
getTranscoder()
Returns the transcoder to use. |
static void |
init()
INITILIZATION Creates the regard directory and its three sub directory if needed. |
static void |
main(java.lang.String[] args)
MAIN |
static void |
reset()
RESET Removes the reference images. |
static void |
usage(java.io.PrintStream out)
Shows the usage message. |
static void |
writeImage(Transcoder transcoder,
java.lang.String inputURI,
java.lang.String output)
Writes an image. |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public Main()
Method Detail |
public static void main(java.lang.String[] args)
public static void init()
public static void reset()
public static void generateRefImages()
public static void generateNewImages()
public static void diffImage()
public static void generateReport()
public static void generateReport(java.io.File[] refImages, int[] badIndex, int bi)
public static void diffBufferedImage(java.awt.image.Raster ref, java.awt.image.Raster cmp, java.awt.image.Raster diff)
ref
- the reference image in BufferedImagenew
- the new image in BufferedImagediff
- the difference image in BufferedImagepublic static java.lang.String computeTimeStamp()
public static void writeImage(Transcoder transcoder, java.lang.String inputURI, java.lang.String output)
transcoder
- the transcoder to use to generate the imageinputURI
- the URI of the SVG fileoutputURI
- the URI of the image to generatepublic static boolean diffImage(java.lang.String refInputURI, java.lang.String newInputURI)
refInputURI
- the reference imagenewInputURI
- the new produced imagepublic static Transcoder getTranscoder()
public static void error(java.lang.String msg)
msg
- the error message to displaypublic static void display(java.lang.String msg)
msg
- the message to displaypublic static void usage(java.io.PrintStream out)
out
- the stream where to write the usage messagepublic static void exit(int code)
code
- the exit codepublic static java.lang.String getRefDirectory()
public static java.lang.String getNewDirectory()
public static java.lang.String getSamplesDirectory()
public static java.lang.String getDiffDirectory()
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |