Package org.apache.batik.test.svg
Class SVGAnimatedRotateCenterTest
- java.lang.Object
-
- org.apache.batik.test.AbstractTest
-
- org.apache.batik.test.svg.AbstractRenderingAccuracyTest
-
- org.apache.batik.test.svg.SVGRenderingAccuracyTest
-
- org.apache.batik.test.svg.PreconfiguredRenderingTest
-
- org.apache.batik.test.svg.SamplesRenderingTest
-
- org.apache.batik.test.svg.ParametrizedRenderingAccuracyTest
-
- org.apache.batik.test.svg.SVGAnimatedRotateCenterTest
-
- All Implemented Interfaces:
Test
public class SVGAnimatedRotateCenterTest extends ParametrizedRenderingAccuracyTest
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.batik.test.svg.SVGRenderingAccuracyTest
SVGRenderingAccuracyTest.InternalPNGTranscoder
-
-
Field Summary
Fields Modifier and Type Field Description private floatangleprivate floatanimDurprivate floatcxprivate floatcyprivate floatshapeCenterprivate floatviewCenter-
Fields inherited from class org.apache.batik.test.svg.ParametrizedRenderingAccuracyTest
parameter, PARAMETER_SEPARATOR
-
Fields inherited from class org.apache.batik.test.svg.SamplesRenderingTest
REF_IMAGE_PREFIX, REF_IMAGE_SUFFIX, SAVE_CANDIDATE_REFERENCE_PREFIX, SAVE_CANDIDATE_REFERENCE_SUFFIX, SAVE_VARIATION_PREFIX, SAVE_VARIATION_SUFFIX, SVG_URL_PREFIX, VARIATION_PREFIX, VARIATION_SUFFIX
-
Fields inherited from class org.apache.batik.test.svg.PreconfiguredRenderingTest
DEFAULT_VARIATION_PLATFORMS, PATH_SEPARATOR, PNG_EXTENSION, SVG_EXTENSION, SVGZ_EXTENSION
-
Fields inherited from class org.apache.batik.test.svg.SVGRenderingAccuracyTest
ERROR_CANNOT_TRANSCODE_SVG, userLanguage, validate, VALIDATING_PARSER
-
Fields inherited from class org.apache.batik.test.svg.AbstractRenderingAccuracyTest
candidateReference, configuration, CONFIGURATION_RESOURCES, COULD_NOT_GENERATE_COMPARISON_IMAGES, COULD_NOT_LOAD_IMAGE, COULD_NOT_OPEN_VARIATION_URL, ENTRY_KEY_DIFFERENCE_IMAGE, ENTRY_KEY_ERROR_DESCRIPTION, ENTRY_KEY_INTERNAL_ERROR, ENTRY_KEY_REFERENCE_GENERATED_IMAGE_URI, ERROR_CANNOT_CREATE_TEMP_FILE, ERROR_CANNOT_CREATE_TEMP_FILE_STREAM, ERROR_CANNOT_OPEN_GENERATED_IMAGE, ERROR_CANNOT_OPEN_REFERENCE_IMAGE, ERROR_ERROR_WHILE_COMPARING_FILES, ERROR_SVG_RENDERING_NOT_ACCURATE, IMAGE_FILE_EXTENSION, IMAGE_TYPE_COMPARISON, IMAGE_TYPE_DIFF, refImgURL, saveVariation, svgURL, TEMP_FILE_PREFIX, TEMP_FILE_SUFFIX, tempDirectory, variationURLs
-
Fields inherited from class org.apache.batik.test.AbstractTest
id, name, parent
-
-
Constructor Summary
Constructors Constructor Description SVGAnimatedRotateCenterTest()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description protected java.lang.StringbuildRefImgURL(java.lang.String svgDir, java.lang.String svgFile)Gives a chance to the subclass to control the construction of the reference PNG file from the svgFile name The refImgURL is built as: getRefImagePrefix() + svgDir + getRefImageSuffix() + svgFileprivate static org.w3c.dom.ElementgetElement(org.w3c.dom.Element container, java.lang.String name, int index)ImageTranscodergetTestImageTranscoder()Returns theImageTranscoderthe Test should useprotected org.w3c.dom.DocumentmanipulateSVGDocument(org.w3c.dom.Document doc)Template method which subclasses can override if they need to manipulate the DOM in some way before running the accuracy test.voidsetAnimDur(float dur)voidsetId(java.lang.String id)For preconfigured tests, the configuration has to be derived from the test identifier.voidsetShapeCenter(float shapeCenter)voidsetViewCenter(float viewCenter)-
Methods inherited from class org.apache.batik.test.svg.ParametrizedRenderingAccuracyTest
buildCandidateReferenceFile, buildSaveVariationFile, buildVariationURLs, getParameterSeparator
-
Methods inherited from class org.apache.batik.test.svg.SamplesRenderingTest
getCandidateReferencePrefix, getCandidateReferenceSuffix, getRefImagePrefix, getRefImageSuffix, getSaveVariationPrefix, getSaveVariationSuffix, getSVGURLPrefix, getVariationPlatforms, getVariationPrefix, getVariationSuffix
-
Methods inherited from class org.apache.batik.test.svg.PreconfiguredRenderingTest
breakSVGFile, buildSVGURL, getName, setFile
-
Methods inherited from class org.apache.batik.test.svg.SVGRenderingAccuracyTest
encode, getUserLanguage, getValidating, setUserLanguage, setValidating
-
Methods inherited from class org.apache.batik.test.svg.AbstractRenderingAccuracyTest
addVariationURL, buildDiffImage, compare, getCandidateReference, getImage, getImage, getNextTempFileName, getNextTempFileName, getSaveVariation, getTempDirectory, getURLFile, getVariationURLs, imageToFile, makeCompareImage, makeRandomFileName, makeTempFileName, resolveURL, run, saveImage, saveImage, setCandidateReference, setConfig, setSaveVariation
-
Methods inherited from class org.apache.batik.test.AbstractTest
assertEquals, assertEquals, assertNull, assertTrue, error, getId, getParent, getQualifiedId, reportError, reportException, reportSuccess, runImpl, runImplBasic, setName, setParent
-
-
-
-
Method Detail
-
setId
public void setId(java.lang.String id)
Description copied from class:PreconfiguredRenderingTestFor preconfigured tests, the configuration has to be derived from the test identifier. The identifier should characterize the SVG file to be tested.- Specified by:
setIdin interfaceTest- Overrides:
setIdin classParametrizedRenderingAccuracyTest
-
setViewCenter
public void setViewCenter(float viewCenter)
-
setShapeCenter
public void setShapeCenter(float shapeCenter)
-
setAnimDur
public void setAnimDur(float dur)
-
buildRefImgURL
protected java.lang.String buildRefImgURL(java.lang.String svgDir, java.lang.String svgFile)Description copied from class:ParametrizedRenderingAccuracyTestGives a chance to the subclass to control the construction of the reference PNG file from the svgFile name The refImgURL is built as: getRefImagePrefix() + svgDir + getRefImageSuffix() + svgFile- Overrides:
buildRefImgURLin classParametrizedRenderingAccuracyTest
-
manipulateSVGDocument
protected org.w3c.dom.Document manipulateSVGDocument(org.w3c.dom.Document doc)
Description copied from class:SVGRenderingAccuracyTestTemplate method which subclasses can override if they need to manipulate the DOM in some way before running the accuracy test. For example, this can be useful to test the alternate stylesheet support.- Overrides:
manipulateSVGDocumentin classSVGRenderingAccuracyTest
-
getElement
private static org.w3c.dom.Element getElement(org.w3c.dom.Element container, java.lang.String name, int index)
-
getTestImageTranscoder
public ImageTranscoder getTestImageTranscoder()
Description copied from class:SVGRenderingAccuracyTestReturns theImageTranscoderthe Test should use- Overrides:
getTestImageTranscoderin classSVGRenderingAccuracyTest
-
-