Java Doc for WMFAccuracyTest.java in  » Graphic-Library » batik » org » apache » batik » transcoder » wmf » Java Source Code / Java DocumentationJava Source Code and Java Documentation

Java Source Code / Java Documentation
1. 6.0 JDK Core
2. 6.0 JDK Modules
3. 6.0 JDK Modules com.sun
4. 6.0 JDK Modules com.sun.java
5. 6.0 JDK Modules sun
6. 6.0 JDK Platform
7. Ajax
8. Apache Harmony Java SE
9. Aspect oriented
10. Authentication Authorization
11. Blogger System
12. Build
13. Byte Code
14. Cache
15. Chart
16. Chat
17. Code Analyzer
18. Collaboration
19. Content Management System
20. Database Client
21. Database DBMS
22. Database JDBC Connection Pool
23. Database ORM
24. Development
25. EJB Server geronimo
26. EJB Server GlassFish
27. EJB Server JBoss 4.2.1
28. EJB Server resin 3.1.5
29. ERP CRM Financial
30. ESB
31. Forum
32. GIS
33. Graphic Library
34. Groupware
35. HTML Parser
36. IDE
37. IDE Eclipse
38. IDE Netbeans
39. Installer
40. Internationalization Localization
41. Inversion of Control
42. Issue Tracking
43. J2EE
44. JBoss
45. JMS
46. JMX
47. Library
48. Mail Clients
49. Net
50. Parser
51. PDF
52. Portal
53. Profiler
54. Project Management
55. Report
56. RSS RDF
57. Rule Engine
58. Science
59. Scripting
60. Search Engine
61. Security
62. Sevlet Container
63. Source Control
64. Swing Library
65. Template Engine
66. Test Coverage
67. Testing
68. UML
69. Web Crawler
70. Web Framework
71. Web Mail
72. Web Server
73. Web Services
74. Web Services apache cxf 2.0.1
75. Web Services AXIS2
76. Wiki Engine
77. Workflow Engines
78. XML
79. XML UI
Java
Java Tutorial
Java Open Source
Jar File Download
Java Articles
Java Products
Java by API
Photoshop Tutorials
Maya Tutorials
Flash Tutorials
3ds-Max Tutorials
Illustrator Tutorials
GIMP Tutorials
C# / C Sharp
C# / CSharp Tutorial
C# / CSharp Open Source
ASP.Net
ASP.NET Tutorial
JavaScript DHTML
JavaScript Tutorial
JavaScript Reference
HTML / CSS
HTML CSS Reference
C / ANSI-C
C Tutorial
C++
C++ Tutorial
Ruby
PHP
Python
Python Tutorial
Python Open Source
SQL Server / T-SQL
SQL Server / T-SQL Tutorial
Oracle PL / SQL
Oracle PL/SQL Tutorial
PostgreSQL
SQL / MySQL
MySQL Tutorial
VB.Net
VB.Net Tutorial
Flash / Flex / ActionScript
VBA / Excel / Access / Word
XML
XML Tutorial
Microsoft Office PowerPoint 2007 Tutorial
Microsoft Office Excel 2007 Tutorial
Microsoft Office Word 2007 Tutorial
Java Source Code / Java Documentation » Graphic Library » batik » org.apache.batik.transcoder.wmf 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.test.AbstractTest
      org.apache.batik.transcoder.wmf.WMFAccuracyTest

WMFAccuracyTest
public class WMFAccuracyTest extends AbstractTest implements SVGConstants(Code)
This test validates that a given WMF file is properly converted to an SVG document by comparing the generated SVG document to a known, valid SVG reference.
author:
   String
CANDIDATE_REF_DIR
    
final public static  StringENTRY_KEY_COLUMN_EXPECTED_VALUE
    
final public static  StringENTRY_KEY_COLUMN_FOUND_VALUE
    
final public static  StringENTRY_KEY_COLUMN_NUMBER
    
final public static  StringENTRY_KEY_ERROR_DESCRIPTION
    
final public static  StringENTRY_KEY_LINE_NUMBER
    
final public static  StringENTRY_KEY_NEW_LINE
    
final public static  StringENTRY_KEY_REFERENCE_LINE
    
final public static  StringERROR_CANNOT_GENERATE_SVG
     Error when an error occurs while generating SVG with the SVGGraphics2D {0} = painter class name if painter not null.
final public static  StringERROR_CANNOT_OPEN_REFERENCE_SVG_FILE
    
final public static  StringERROR_ERROR_WHILE_COMPARING_FILES
     Error when there is an IOException while comparing the reference SVG file with the newly generated SVG content {0} = URI of the reference image {1} = IOException message.
final public static  StringERROR_GENERATED_SVG_INACCURATE
    
final public static  StringGENERATOR_REFERENCE_BASE
    
final public static  charPATH_SEPARATOR
    
final public static  StringREF_IMAGE_PREFIX
    
final public static  StringSVG_EXTENSION
    
final public static  StringWMF_EXTENSION
    

Constructor Summary
public  WMFAccuracyTest()
    

Method Summary
protected  String[]breakWMFFile(String wmfFile)
    
public  intcomputeColumnNumber(String aStr, String bStr)
    
protected  StringfmtMsg(String str)
    
public  FilegetSaveSVG()
    
protected  URLresolveURL(String url)
     Resolves the input string as follows. + First, the string is interpreted as a file description. If the file exists, then the file name is turned into a URL. + Otherwise, the string is supposed to be a URL.
public  TestReportrunImpl()
     This method will only throw exceptions if some aspect of the test's internal operation fails.
protected  voidsave(byte[] data)
     Saves the byte array in the "saveSVG" file if that file's parent directory exists.
public  voidsetFile(String id)
    
public  voidsetId(String id)
    
public  voidsetSaveSVG(File saveSVG)
    

Field Detail
CANDIDATE_REF_DIR
final public static String CANDIDATE_REF_DIR(Code)



ENTRY_KEY_COLUMN_EXPECTED_VALUE
final public static String ENTRY_KEY_COLUMN_EXPECTED_VALUE(Code)



ENTRY_KEY_COLUMN_FOUND_VALUE
final public static String ENTRY_KEY_COLUMN_FOUND_VALUE(Code)



ENTRY_KEY_COLUMN_NUMBER
final public static String ENTRY_KEY_COLUMN_NUMBER(Code)



ENTRY_KEY_ERROR_DESCRIPTION
final public static String ENTRY_KEY_ERROR_DESCRIPTION(Code)



ENTRY_KEY_LINE_NUMBER
final public static String ENTRY_KEY_LINE_NUMBER(Code)



ENTRY_KEY_NEW_LINE
final public static String ENTRY_KEY_NEW_LINE(Code)



ENTRY_KEY_REFERENCE_LINE
final public static String ENTRY_KEY_REFERENCE_LINE(Code)



ERROR_CANNOT_GENERATE_SVG
final public static String ERROR_CANNOT_GENERATE_SVG(Code)
Error when an error occurs while generating SVG with the SVGGraphics2D {0} = painter class name if painter not null. Null otherwise {1} = exception class name {2} = exception message {3} = exception stack trace.



ERROR_CANNOT_OPEN_REFERENCE_SVG_FILE
final public static String ERROR_CANNOT_OPEN_REFERENCE_SVG_FILE(Code)
Error when the reference SVG file cannot be opened {0} = URI of the reference image {1} = IOException message



ERROR_ERROR_WHILE_COMPARING_FILES
final public static String ERROR_ERROR_WHILE_COMPARING_FILES(Code)
Error when there is an IOException while comparing the reference SVG file with the newly generated SVG content {0} = URI of the reference image {1} = IOException message.



ERROR_GENERATED_SVG_INACCURATE
final public static String ERROR_GENERATED_SVG_INACCURATE(Code)
Error when the generated SVG is inaccurate



GENERATOR_REFERENCE_BASE
final public static String GENERATOR_REFERENCE_BASE(Code)



PATH_SEPARATOR
final public static char PATH_SEPARATOR(Code)



REF_IMAGE_PREFIX
final public static String REF_IMAGE_PREFIX(Code)



SVG_EXTENSION
final public static String SVG_EXTENSION(Code)



WMF_EXTENSION
final public static String WMF_EXTENSION(Code)




Constructor Detail
WMFAccuracyTest
public WMFAccuracyTest()(Code)




Method Detail
breakWMFFile
protected String[] breakWMFFile(String wmfFile)(Code)



computeColumnNumber
public int computeColumnNumber(String aStr, String bStr)(Code)



fmtMsg
protected String fmtMsg(String str)(Code)



getSaveSVG
public File getSaveSVG()(Code)



resolveURL
protected URL resolveURL(String url)(Code)
Resolves the input string as follows. + First, the string is interpreted as a file description. If the file exists, then the file name is turned into a URL. + Otherwise, the string is supposed to be a URL. If it is an invalid URL, an IllegalArgumentException is thrown.



runImpl
public TestReport runImpl() throws Exception(Code)
This method will only throw exceptions if some aspect of the test's internal operation fails.



save
protected void save(byte[] data) throws IOException(Code)
Saves the byte array in the "saveSVG" file if that file's parent directory exists.



setFile
public void setFile(String id)(Code)



setId
public void setId(String id)(Code)



setSaveSVG
public void setSaveSVG(File saveSVG)(Code)



Fields inherited from org.apache.batik.test.AbstractTest
protected String id(Code)(Java Doc)
protected String name(Code)(Java Doc)
protected TestSuite parent(Code)(Java Doc)

Methods inherited from org.apache.batik.test.AbstractTest
public void assertEquals(Object ref, Object cmp) throws AssertEqualsException(Code)(Java Doc)
public void assertEquals(int ref, int cmp) throws AssertEqualsException(Code)(Java Doc)
public void assertNull(Object ref) throws AssertNullException(Code)(Java Doc)
public void assertTrue(boolean b) throws AssertTrueException(Code)(Java Doc)
public void error(String errorCode) throws TestErrorConditionException(Code)(Java Doc)
public String getId()(Code)(Java Doc)
public String getName()(Code)(Java Doc)
public TestSuite getParent()(Code)(Java Doc)
public String getQualifiedId()(Code)(Java Doc)
public TestReport reportError(String errorCode)(Code)(Java Doc)
public TestReport reportException(String errorCode, Exception e)(Code)(Java Doc)
public TestReport reportSuccess()(Code)(Java Doc)
public TestReport run()(Code)(Java Doc)
public TestReport runImpl() throws Exception(Code)(Java Doc)
public boolean runImplBasic() throws Exception(Code)(Java Doc)
public void setId(String id)(Code)(Java Doc)
public void setName(String name)(Code)(Java Doc)
public void setParent(TestSuite parent)(Code)(Java Doc)

Methods inherited from java.lang.Object
native protected Object clone() throws CloneNotSupportedException(Code)(Java Doc)
public boolean equals(Object obj)(Code)(Java Doc)
protected void finalize() throws Throwable(Code)(Java Doc)
final native public Class getClass()(Code)(Java Doc)
native public int hashCode()(Code)(Java Doc)
final native public void notify()(Code)(Java Doc)
final native public void notifyAll()(Code)(Java Doc)
public String toString()(Code)(Java Doc)
final native public void wait(long timeout) throws InterruptedException(Code)(Java Doc)
final public void wait(long timeout, int nanos) throws InterruptedException(Code)(Java Doc)
final public void wait() throws InterruptedException(Code)(Java Doc)

www.java2java.com | Contact Us
Copyright 2009 - 12 Demo Source and Support. All rights reserved.
All other trademarks are property of their respective owners.