tickCrossLabel.setIcon(clearIcon);
}
public void runTests() {
if (testCase.getGeometry(0) != null && testCase.getGeometry(1) != null) {
IntersectionMatrix im = testCase.getIM();
IntersectionMatrix imBA = new IntersectionMatrix(im);
//IntersectionMatrix expectedIm = new IntersectionMatrix(expectedImTextField.getText());
imBA.transpose();
setRelateLabel(relateII, im.get(Location.INTERIOR, Location.INTERIOR));
setRelateLabel(relateIB, im.get(Location.INTERIOR, Location.BOUNDARY));
setRelateLabel(relateIE, im.get(Location.INTERIOR, Location.EXTERIOR));
setRelateLabel(relateBI, im.get(Location.BOUNDARY, Location.INTERIOR));
setRelateLabel(relateBB, im.get(Location.BOUNDARY, Location.BOUNDARY));
setRelateLabel(relateBE, im.get(Location.BOUNDARY, Location.EXTERIOR));
setRelateLabel(relateEI, im.get(Location.EXTERIOR, Location.INTERIOR));
setRelateLabel(relateEB, im.get(Location.EXTERIOR, Location.BOUNDARY));
setRelateLabel(relateEE, im.get(Location.EXTERIOR, Location.EXTERIOR));
//tickCrossLabel.setIcon(im.matches(expectedIm.toString()) ? tickIcon : crossIcon);
txtAB.setText(im.toString());
txtBA.setText(imBA.toString());
setPredicate(equalsAB, im.isEquals(testCase.getGeometry(0).getDimension(),
testCase.getGeometry(1).getDimension()));
setPredicate(disjointAB, im.isDisjoint());
setPredicate(intersectsAB, im.isIntersects());
setPredicate(touchesAB, im.isTouches(testCase.getGeometry(0).getDimension(),
testCase.getGeometry(1).getDimension()));
setPredicate(crossesAB, im.isCrosses(testCase.getGeometry(0).getDimension(),
testCase.getGeometry(1).getDimension()));
setPredicate(withinAB, im.isWithin());
setPredicate(containsAB, im.isContains());
setPredicate(overlapsAB, im.isOverlaps(testCase.getGeometry(0).getDimension(),
testCase.getGeometry(1).getDimension()));
setPredicate(coversAB, im.isCovers());
setPredicate(coveredByAB, im.isCoveredBy());
setPredicate(equalsBA, imBA.isEquals(testCase.getGeometry(1).getDimension(),
testCase.getGeometry(0).getDimension()));
setPredicate(disjointBA, imBA.isDisjoint());
setPredicate(intersectsBA, imBA.isIntersects());
setPredicate(touchesBA, imBA.isTouches(testCase.getGeometry(1).getDimension(),
testCase.getGeometry(0).getDimension()));
setPredicate(crossesBA, imBA.isCrosses(testCase.getGeometry(1).getDimension(),
testCase.getGeometry(0).getDimension()));
setPredicate(withinBA, imBA.isWithin());
setPredicate(containsBA, imBA.isContains());
setPredicate(overlapsBA, imBA.isOverlaps(testCase.getGeometry(1).getDimension(),
testCase.getGeometry(0).getDimension()));
setPredicate(coversBA, imBA.isCovers());
setPredicate(coveredByBA, imBA.isCoveredBy());
}
}