public class HtmlWriter
extends java.lang.Object
Modifier and Type | Class and Description |
---|---|
private static class |
HtmlWriter.MapAndList |
Modifier and Type | Field and Description |
---|---|
private BusyDialog |
busyDialog |
private javax.swing.JFrame |
frame |
private GeometryEditPanel |
geometryEditPanel |
private static int |
IMAGE_HEIGHT |
private static int |
IMAGE_WIDTH |
private java.io.File |
outputDirectory |
private boolean |
showingABwithSpatialFunction |
private static int |
STACK_TRACE_DEPTH |
Constructor and Description |
---|
HtmlWriter() |
Modifier and Type | Method and Description |
---|---|
private java.lang.Object |
actualResult(TestCaseEdit testCaseEdit,
java.lang.String opName,
java.lang.String first,
java.lang.String second) |
private void |
addToListMapAndList(java.lang.String key,
java.lang.Object valueItem,
java.util.Map stringToList,
java.util.List keyList) |
private void |
createGifFile(java.lang.String filenameNoPath,
Geometry a,
Geometry b,
Geometry spatialFunction,
boolean showingAB,
int imageWidth,
int imageHeight) |
private void |
createGifFile(java.lang.String filenameNoPath,
Geometry a,
Geometry b,
Geometry result,
boolean showingAB,
int imageWidth,
int imageHeight,
boolean zoomToFullExtent) |
private void |
createHtmlFile(java.lang.String filename,
java.lang.String html) |
private java.lang.String |
deleteFirstTag(java.lang.String html) |
private java.lang.String |
deleteLastTag(java.lang.String html) |
private BooleanResult |
expectedPredicateResult(TestCaseEdit testCaseEdit,
java.lang.String opName,
java.lang.String first,
java.lang.String second) |
private java.lang.String |
html(Testable testable,
int runSkey,
int caseSkey) |
private java.lang.String |
htmlForAB(TestCaseEdit testCaseEdit,
int runSkey,
int caseSkey) |
private java.lang.String |
htmlForBinaryPredicates(TestCaseEdit testCaseEdit,
int caseSkey) |
private java.lang.String |
htmlForPredicateTest(TestCaseEdit testCaseEdit,
int caseSkey,
java.lang.String opName,
java.lang.String first,
java.lang.String second) |
private java.lang.String |
htmlForRelateTest(TestCaseEdit testCaseEdit,
int caseSkey) |
private java.lang.String |
htmlForSpatialFunctionTest(TestCaseEdit testCaseEdit,
int runSkey,
int caseSkey,
java.lang.String geometryOpName,
java.lang.String first,
java.lang.String second) |
private java.lang.String |
htmlForTests(TestCaseEdit testCaseEdit,
int runSkey,
int caseSkey) |
private java.lang.String |
htmlImageHtmlTextTable(java.lang.String imageFilename,
java.lang.String html,
int border) |
private java.lang.String |
htmlImageTextTable(java.lang.String imageFilename,
java.lang.String text,
int border) |
private java.lang.String |
htmlTitle(PrecisionModel precisionModel) |
private java.lang.String |
indexHtml(java.util.List runs,
java.util.Map runMap,
PrecisionModel precisionModel) |
private java.lang.String |
insertParagraphs(java.lang.String intersectionMatrix) |
private HtmlWriter.MapAndList |
runMapAndRuns(TestCaseList testCaseList) |
private java.lang.String |
runName(java.lang.String runDescription,
int runSkey) |
void |
setBusyDialog(BusyDialog busyDialog) |
void |
setShowingABwithSpatialFunction(boolean showingABwithSpatialFunction) |
private java.lang.String |
testName(Testable testable,
int caseSkey) |
private java.lang.String |
testTopHtml() |
void |
write(java.io.File outputDirectory,
TestCaseList testCaseList,
PrecisionModel precisionModel) |
private static final int IMAGE_WIDTH
private static final int IMAGE_HEIGHT
private static final int STACK_TRACE_DEPTH
private boolean showingABwithSpatialFunction
private GeometryEditPanel geometryEditPanel
private javax.swing.JFrame frame
private java.io.File outputDirectory
private BusyDialog busyDialog
public void setShowingABwithSpatialFunction(boolean showingABwithSpatialFunction)
public void setBusyDialog(BusyDialog busyDialog)
public void write(java.io.File outputDirectory, TestCaseList testCaseList, PrecisionModel precisionModel) throws java.io.IOException
java.io.IOException
private java.lang.String html(Testable testable, int runSkey, int caseSkey) throws java.io.IOException
java.io.IOException
private java.lang.String deleteLastTag(java.lang.String html)
private java.lang.String deleteFirstTag(java.lang.String html)
private java.lang.String htmlForTests(TestCaseEdit testCaseEdit, int runSkey, int caseSkey) throws java.io.IOException
java.io.IOException
private java.lang.String htmlForSpatialFunctionTest(TestCaseEdit testCaseEdit, int runSkey, int caseSkey, java.lang.String geometryOpName, java.lang.String first, java.lang.String second)
private java.lang.String htmlForRelateTest(TestCaseEdit testCaseEdit, int caseSkey)
private java.lang.String insertParagraphs(java.lang.String intersectionMatrix)
private java.lang.String htmlForPredicateTest(TestCaseEdit testCaseEdit, int caseSkey, java.lang.String opName, java.lang.String first, java.lang.String second)
private java.lang.Object actualResult(TestCaseEdit testCaseEdit, java.lang.String opName, java.lang.String first, java.lang.String second) throws java.lang.Exception
java.lang.Exception
private BooleanResult expectedPredicateResult(TestCaseEdit testCaseEdit, java.lang.String opName, java.lang.String first, java.lang.String second)
private java.lang.String htmlForAB(TestCaseEdit testCaseEdit, int runSkey, int caseSkey) throws java.io.IOException
java.io.IOException
private java.lang.String htmlImageTextTable(java.lang.String imageFilename, java.lang.String text, int border)
private java.lang.String htmlImageHtmlTextTable(java.lang.String imageFilename, java.lang.String html, int border)
private java.lang.String testName(Testable testable, int caseSkey)
private java.lang.String runName(java.lang.String runDescription, int runSkey)
private java.lang.String htmlTitle(PrecisionModel precisionModel)
private void createGifFile(java.lang.String filenameNoPath, Geometry a, Geometry b, Geometry spatialFunction, boolean showingAB, int imageWidth, int imageHeight) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
private void createGifFile(java.lang.String filenameNoPath, Geometry a, Geometry b, Geometry result, boolean showingAB, int imageWidth, int imageHeight, boolean zoomToFullExtent) throws java.io.FileNotFoundException, java.io.IOException
java.io.FileNotFoundException
java.io.IOException
private void createHtmlFile(java.lang.String filename, java.lang.String html) throws java.io.IOException
java.io.IOException
private HtmlWriter.MapAndList runMapAndRuns(TestCaseList testCaseList)
private void addToListMapAndList(java.lang.String key, java.lang.Object valueItem, java.util.Map stringToList, java.util.List keyList)
private java.lang.String indexHtml(java.util.List runs, java.util.Map runMap, PrecisionModel precisionModel)
private java.lang.String testTopHtml()
private java.lang.String htmlForBinaryPredicates(TestCaseEdit testCaseEdit, int caseSkey)