Java Doc for UnitProcessor.java in  » Graphic-Library » batik » org » apache » batik » bridge » 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.bridge 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.batik.parser.UnitProcessor
      org.apache.batik.bridge.UnitProcessor

UnitProcessor
abstract public class UnitProcessor extends org.apache.batik.parser.UnitProcessor (Code)
This class provides methods to convert SVG length and coordinate to float in user units.
author:
   Stephane Hillion
author:
   Thierry Kormann
version:
   $Id: UnitProcessor.java 501922 2007-01-31 17:47:47Z dvholten $

Inner Class :public static class DefaultContext implements Context



Method Summary
public static  ContextcreateContext(BridgeContext ctx, Element e)
     Creates a context for the specified element.
protected static  BridgeContextgetBridgeContext(Context ctx)
     Returns the BridgeContext from the given Context if it is a DefaultContext , or null otherwise.
public static  floatsvgHorizontalCoordinateToObjectBoundingBox(String s, String attr, Context ctx)
     Returns the specified horizontal coordinate in object bounding box coordinate system.
public static  floatsvgHorizontalCoordinateToUserSpace(String s, String attr, Context ctx)
     Returns the specified horizontal coordinate in user units.
public static  floatsvgHorizontalLengthToObjectBoundingBox(String s, String attr, Context ctx)
     Returns the specified horizontal length in object bounding box coordinate system.
public static  floatsvgHorizontalLengthToUserSpace(String s, String attr, Context ctx)
     Returns the specified horizontal length in user units.
public static  floatsvgLengthToObjectBoundingBox(String s, String attr, short d, Context ctx)
     Returns the specified length with the specified direction in user units.
public static  floatsvgLengthToUserSpace(String s, String attr, short d, Context ctx)
     Returns the specified length with the specified direction in user units.
public static  floatsvgOtherCoordinateToObjectBoundingBox(String s, String attr, Context ctx)
     Returns the specified 'other' coordinate in object bounding box coordinate system.
public static  floatsvgOtherCoordinateToUserSpace(String s, String attr, Context ctx)
     Returns the specified 'other' coordinate in user units.
public static  floatsvgOtherLengthToObjectBoundingBox(String s, String attr, Context ctx)
     Returns the specified 'other' length in object bounding box coordinate system.
public static  floatsvgOtherLengthToUserSpace(String s, String attr, Context ctx)
     Returns the specified 'other' length in user units.
public static  floatsvgToObjectBoundingBox(String s, String attr, short d, Context ctx)
     Returns the specified value with the specified direction in objectBoundingBox units.
public static  floatsvgToUserSpace(String s, String attr, short d, Context ctx)
     Returns the specified coordinate with the specified direction in user units.
public static  floatsvgVerticalCoordinateToObjectBoundingBox(String s, String attr, Context ctx)
     Returns the specified vertical coordinate in object bounding box coordinate system.
public static  floatsvgVerticalCoordinateToUserSpace(String s, String attr, Context ctx)
     Returns the specified vertical coordinate in user units.
public static  floatsvgVerticalLengthToObjectBoundingBox(String s, String attr, Context ctx)
     Returns the specified vertical length in object bounding box coordinate system.
public static  floatsvgVerticalLengthToUserSpace(String s, String attr, Context ctx)
     Returns the specified vertical length in user units.



Method Detail
createContext
public static Context createContext(BridgeContext ctx, Element e)(Code)
Creates a context for the specified element.
Parameters:
  ctx - the bridge context that contains the user agent andviewport definition
Parameters:
  e - the element interested in its context



getBridgeContext
protected static BridgeContext getBridgeContext(Context ctx)(Code)
Returns the BridgeContext from the given Context if it is a DefaultContext , or null otherwise.



svgHorizontalCoordinateToObjectBoundingBox
public static float svgHorizontalCoordinateToObjectBoundingBox(String s, String attr, Context ctx)(Code)
Returns the specified horizontal coordinate in object bounding box coordinate system.
Parameters:
  s - the horizontal coordinate
Parameters:
  attr - the attribute name that represents the coordinate
Parameters:
  ctx - the context used to resolve relative value



svgHorizontalCoordinateToUserSpace
public static float svgHorizontalCoordinateToUserSpace(String s, String attr, Context ctx)(Code)
Returns the specified horizontal coordinate in user units.
Parameters:
  s - the horizontal coordinate
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgHorizontalLengthToObjectBoundingBox
public static float svgHorizontalLengthToObjectBoundingBox(String s, String attr, Context ctx)(Code)
Returns the specified horizontal length in object bounding box coordinate system. A length must be greater than 0.
Parameters:
  s - the 'other' length
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgHorizontalLengthToUserSpace
public static float svgHorizontalLengthToUserSpace(String s, String attr, Context ctx)(Code)
Returns the specified horizontal length in user units. A length must be greater than 0.
Parameters:
  s - the horizontal length
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgLengthToObjectBoundingBox
public static float svgLengthToObjectBoundingBox(String s, String attr, short d, Context ctx)(Code)
Returns the specified length with the specified direction in user units. A length must be greater than 0.
Parameters:
  s - the length
Parameters:
  attr - the attribute name that represents the length
Parameters:
  d - the direction of the length
Parameters:
  ctx - the context used to resolve relative value



svgLengthToUserSpace
public static float svgLengthToUserSpace(String s, String attr, short d, Context ctx)(Code)
Returns the specified length with the specified direction in user units. A length must be greater than 0.
Parameters:
  s - the 'other' coordinate
Parameters:
  attr - the attribute name that represents the length
Parameters:
  d - the direction of the length
Parameters:
  ctx - the context used to resolve relative value



svgOtherCoordinateToObjectBoundingBox
public static float svgOtherCoordinateToObjectBoundingBox(String s, String attr, Context ctx)(Code)
Returns the specified 'other' coordinate in object bounding box coordinate system.
Parameters:
  s - the 'other' coordinate
Parameters:
  attr - the attribute name that represents the coordinate
Parameters:
  ctx - the context used to resolve relative value



svgOtherCoordinateToUserSpace
public static float svgOtherCoordinateToUserSpace(String s, String attr, Context ctx)(Code)
Returns the specified 'other' coordinate in user units.
Parameters:
  s - the 'other' coordinate
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgOtherLengthToObjectBoundingBox
public static float svgOtherLengthToObjectBoundingBox(String s, String attr, Context ctx)(Code)
Returns the specified 'other' length in object bounding box coordinate system. A length must be greater than 0.
Parameters:
  s - the 'other' length
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgOtherLengthToUserSpace
public static float svgOtherLengthToUserSpace(String s, String attr, Context ctx)(Code)
Returns the specified 'other' length in user units. A length must be greater than 0.
Parameters:
  s - the 'other' length
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgToObjectBoundingBox
public static float svgToObjectBoundingBox(String s, String attr, short d, Context ctx)(Code)
Returns the specified value with the specified direction in objectBoundingBox units.
Parameters:
  s - the value
Parameters:
  attr - the attribute name that represents the value
Parameters:
  d - the direction of the value
Parameters:
  ctx - the context used to resolve relative value



svgToUserSpace
public static float svgToUserSpace(String s, String attr, short d, Context ctx)(Code)
Returns the specified coordinate with the specified direction in user units.
Parameters:
  s - the 'other' coordinate
Parameters:
  attr - the attribute name that represents the length
Parameters:
  d - the direction of the coordinate
Parameters:
  ctx - the context used to resolve relative value



svgVerticalCoordinateToObjectBoundingBox
public static float svgVerticalCoordinateToObjectBoundingBox(String s, String attr, Context ctx)(Code)
Returns the specified vertical coordinate in object bounding box coordinate system.
Parameters:
  s - the vertical coordinate
Parameters:
  attr - the attribute name that represents the coordinate
Parameters:
  ctx - the context used to resolve relative value



svgVerticalCoordinateToUserSpace
public static float svgVerticalCoordinateToUserSpace(String s, String attr, Context ctx)(Code)
Returns the specified vertical coordinate in user units.
Parameters:
  s - the vertical coordinate
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgVerticalLengthToObjectBoundingBox
public static float svgVerticalLengthToObjectBoundingBox(String s, String attr, Context ctx)(Code)
Returns the specified vertical length in object bounding box coordinate system. A length must be greater than 0.
Parameters:
  s - the vertical length
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



svgVerticalLengthToUserSpace
public static float svgVerticalLengthToUserSpace(String s, String attr, Context ctx)(Code)
Returns the specified vertical length in user units. A length must be greater than 0.
Parameters:
  s - the vertical length
Parameters:
  attr - the attribute name that represents the length
Parameters:
  ctx - the context used to resolve relative value



Fields inherited from org.apache.batik.parser.UnitProcessor
final public static short HORIZONTAL_LENGTH(Code)(Java Doc)
final public static short OTHER_LENGTH(Code)(Java Doc)
final public static short VERTICAL_LENGTH(Code)(Java Doc)

Methods inherited from org.apache.batik.parser.UnitProcessor
protected static float emsToPixels(float v, short d, Context ctx)(Code)(Java Doc)
protected static float exsToPixels(float v, short d, Context ctx)(Code)(Java Doc)
protected static float percentagesToPixels(float v, short d, Context ctx)(Code)(Java Doc)
protected static float pixelsToEms(float v, short d, Context ctx)(Code)(Java Doc)
protected static float pixelsToExs(float v, short d, Context ctx)(Code)(Java Doc)
protected static float pixelsToPercentages(float v, short d, Context ctx)(Code)(Java Doc)
public static float svgToObjectBoundingBox(String s, String attr, short d, Context ctx) throws ParseException(Code)(Java Doc)
public static float svgToObjectBoundingBox(float value, short type, short d, Context ctx)(Code)(Java Doc)
public static float svgToUserSpace(String s, String attr, short d, Context ctx) throws ParseException(Code)(Java Doc)
public static float svgToUserSpace(float v, short type, short d, Context ctx)(Code)(Java Doc)
public static float userSpaceToSVG(float v, short type, short d, Context ctx)(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.