Java Doc for NumericOp.java in  » Graphic-Library » fop » org » apache » fop » fo » expr » 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 » fop » org.apache.fop.fo.expr 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   org.apache.fop.fo.expr.NumericOp

NumericOp
public class NumericOp (Code)
This class contains static methods to evaluate operations on Numeric operands. If the operands are absolute numerics the result is computed rigth away and a new absolute numeric is return. If one of the operands are relative a n operation node is created with the operation and the operands. The evaluation of the operation can then occur when getNumericValue() is called.




Method Summary
public static  Numericabs(Numeric op)
     Return the absolute value of a Numeric.
Parameters:
  op - the operand.
public static  Numericabs2(Numeric op, PercentBaseContext context)
    
public static  Numericaddition(Numeric op1, Numeric op2)
     Add the two operands and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand.
public static  Numericaddition2(Numeric op1, Numeric op2, PercentBaseContext context)
    
public static  Numericdivide(Numeric op1, Numeric op2)
     Divide the second operand into the first and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand.
public static  Numericdivide2(Numeric op1, Numeric op2, PercentBaseContext context)
    
public static  Numericmax(Numeric op1, Numeric op2)
     Return the larger of the two Numerics.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand.
public static  Numericmax2(Numeric op1, Numeric op2, PercentBaseContext context)
    
public static  Numericmin(Numeric op1, Numeric op2)
     Return the smaller of two Numerics.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand.
public static  Numericmin2(Numeric op1, Numeric op2, PercentBaseContext context)
    
public static  Numericmodulo(Numeric op1, Numeric op2)
     Return the remainder of a division of the two operand Numeric.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand.
public static  Numericmodulo2(Numeric op1, Numeric op2, PercentBaseContext context)
    
public static  Numericmultiply(Numeric op1, Numeric op2)
     Multiply the two operands and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand.
public static  Numericmultiply2(Numeric op1, Numeric op2, PercentBaseContext context)
    
public static  Numericnegate(Numeric op)
     Return the negation of a Numeric.
Parameters:
  op - the operand.
public static  Numericnegate2(Numeric op, PercentBaseContext context)
    
public static  Numericsubtraction(Numeric op1, Numeric op2)
     Add the second operand from the first and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand.
public static  Numericsubtraction2(Numeric op1, Numeric op2, PercentBaseContext context)
    



Method Detail
abs
public static Numeric abs(Numeric op) throws PropertyException(Code)
Return the absolute value of a Numeric.
Parameters:
  op - the operand. a new Numeric object representing the absolute value of the operand.



abs2
public static Numeric abs2(Numeric op, PercentBaseContext context) throws PropertyException(Code)



addition
public static Numeric addition(Numeric op1, Numeric op2) throws PropertyException(Code)
Add the two operands and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand. A Numeric representing the result.
throws:
  PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric.



addition2
public static Numeric addition2(Numeric op1, Numeric op2, PercentBaseContext context) throws PropertyException(Code)



divide
public static Numeric divide(Numeric op1, Numeric op2) throws PropertyException(Code)
Divide the second operand into the first and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand. A Numeric representing the result.
throws:
  PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric.



divide2
public static Numeric divide2(Numeric op1, Numeric op2, PercentBaseContext context) throws PropertyException(Code)



max
public static Numeric max(Numeric op1, Numeric op2) throws PropertyException(Code)
Return the larger of the two Numerics.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand. a Numeric which is the maximum of the two operands.
throws:
  PropertyException - if the dimensions or value types of the operands are different.



max2
public static Numeric max2(Numeric op1, Numeric op2, PercentBaseContext context) throws PropertyException(Code)



min
public static Numeric min(Numeric op1, Numeric op2) throws PropertyException(Code)
Return the smaller of two Numerics.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand. a Numeric which is the minimum of the two operands.
throws:
  PropertyException - if the dimensions or value types of the operands are different.



min2
public static Numeric min2(Numeric op1, Numeric op2, PercentBaseContext context) throws PropertyException(Code)



modulo
public static Numeric modulo(Numeric op1, Numeric op2) throws PropertyException(Code)
Return the remainder of a division of the two operand Numeric.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand. A new Numeric object representing the absolute value.



modulo2
public static Numeric modulo2(Numeric op1, Numeric op2, PercentBaseContext context) throws PropertyException(Code)



multiply
public static Numeric multiply(Numeric op1, Numeric op2) throws PropertyException(Code)
Multiply the two operands and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand. A Numeric representing the result.
throws:
  PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric.



multiply2
public static Numeric multiply2(Numeric op1, Numeric op2, PercentBaseContext context) throws PropertyException(Code)



negate
public static Numeric negate(Numeric op) throws PropertyException(Code)
Return the negation of a Numeric.
Parameters:
  op - the operand. a new Numeric object representing the negation of the operand.



negate2
public static Numeric negate2(Numeric op, PercentBaseContext context) throws PropertyException(Code)



subtraction
public static Numeric subtraction(Numeric op1, Numeric op2) throws PropertyException(Code)
Add the second operand from the first and return a new Numeric representing the result.
Parameters:
  op1 - The first operand.
Parameters:
  op2 - The second operand. A Numeric representing the result.
throws:
  PropertyException - If the dimension of the operand is differentfrom the dimension of this Numeric.



subtraction2
public static Numeric subtraction2(Numeric op1, Numeric op2, PercentBaseContext context) throws PropertyException(Code)



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.