Java Doc for FunctionType0.java in  » PDF » PDF-Renderer » com » sun » pdfview » function » 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 » PDF » PDF Renderer » com.sun.pdfview.function 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   com.sun.pdfview.function.PDFFunction
      com.sun.pdfview.function.FunctionType0

FunctionType0
public class FunctionType0 extends PDFFunction (Code)
A sampled function maps input values to output values by interpolating along a line or cubic between two known values.


Field Summary
final protected static  intCUBIC_INTERPOLATION
    
final protected static  intLINEAR_INTERPOLATION
    

Constructor Summary
protected  FunctionType0()
    

Method Summary
protected  voiddoFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)
     Map from m input values to n output values. The number of inputs m must be exactly one half the size of the domain.
protected  intgetBitsPerSample()
    
protected  floatgetDecode(int i)
    
protected  floatgetEncode(int i)
    
protected  intgetOrder()
    
protected  intgetSample(int[] values, int od)
     Get a component for a sample given m indices and output dimension.
protected  intgetSize(int dimension)
    
public static  floatinterpolate(float x, float xmin, float xmax, float ymin, float ymax)
     Perform a linear interpolation.
protected  voidparse(PDFObject obj)
    
protected  voidsetBitsPerSample(int bits)
    
protected  voidsetDecode(float[] decode)
    
protected  voidsetEncode(float[] encode)
    
protected  voidsetOrder(int order)
    
protected  voidsetSamples(int[][] samples)
    
protected  voidsetSize(int[] size)
    

Field Detail
CUBIC_INTERPOLATION
final protected static int CUBIC_INTERPOLATION(Code)



LINEAR_INTERPOLATION
final protected static int LINEAR_INTERPOLATION(Code)
the valid interpolation methods




Constructor Detail
FunctionType0
protected FunctionType0()(Code)
Creates a new instance of FunctionType0




Method Detail
doFunction
protected void doFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)(Code)
Map from m input values to n output values. The number of inputs m must be exactly one half the size of the domain. The number of outputs should match one half the size of the range.
Parameters:
  inputs - an array of m input values
Parameters:
  outputs - an array of size n which will be filledwith the output values, or null to return a new array



getBitsPerSample
protected int getBitsPerSample()(Code)
Get the number of bits per sample



getDecode
protected float getDecode(int i)(Code)
Get the decoding for a particular input parameter
Parameters:
  i - the index into the decoding array, which has size 2 * n.the ith entry in the array has index 2i, 2i + 1 the decoding value if the decoding array is set, or the default



getEncode
protected float getEncode(int i)(Code)
Get the encoding for a particular input parameter
Parameters:
  i - the index into the encoding array, which has size 2 * m.the ith entry in the array has index 2i, 2i + 1 the encoding value if the encoding array is set, or the default



getOrder
protected int getOrder()(Code)
Get the interpolation type



getSample
protected int getSample(int[] values, int od)(Code)
Get a component for a sample given m indices and output dimension.
Parameters:
  values - an array of m values determining which sampleto select
Parameters:
  od - the output dimension (0 - n) to get the sample in the sample for the given values and index



getSize
protected int getSize(int dimension)(Code)
Get the size of a given input dimension
Parameters:
  dimension - the input dimension to get the size of the number of samples in the given dimension



interpolate
public static float interpolate(float x, float xmin, float xmax, float ymin, float ymax)(Code)
Perform a linear interpolation. Given a value x, and two points, (xmin, ymin), (xmax, ymax), where xmin <= x <= xmax, calculate a value y on the line from (xmin, ymin) to (xmax, ymax).
Parameters:
  x - the x value of the input
Parameters:
  xmin - the minimum x value
Parameters:
  ymin - the minimum y value
Parameters:
  xmax - the maximum x value
Parameters:
  ymax - the maximum y value the y value interpolated from the given x



parse
protected void parse(PDFObject obj) throws IOException(Code)
Read the function information from a PDF Object



setBitsPerSample
protected void setBitsPerSample(int bits)(Code)
Set the number of bits per sample



setDecode
protected void setDecode(float[] decode)(Code)
Set the decode array



setEncode
protected void setEncode(float[] encode)(Code)
Set the encode array



setOrder
protected void setOrder(int order)(Code)
Set the interpolation type



setSamples
protected void setSamples(int[][] samples)(Code)
Set the table of samples



setSize
protected void setSize(int[] size)(Code)
Set the size of all input dimensions



Fields inherited from com.sun.pdfview.function.PDFFunction
final public static int TYPE_0(Code)(Java Doc)
final public static int TYPE_2(Code)(Java Doc)
final public static int TYPE_3(Code)(Java Doc)
final public static int TYPE_4(Code)(Java Doc)

Methods inherited from com.sun.pdfview.function.PDFFunction
public float[] calculate(float[] inputs)(Code)(Java Doc)
public float[] calculate(float[] inputs, int inputOffset, float[] outputs, int outputOffset)(Code)(Java Doc)
abstract protected void doFunction(float[] inputs, int inputOffset, float[] outputs, int outputOffset)(Code)(Java Doc)
protected float getDomain(int i)(Code)(Java Doc)
public static PDFFunction getFunction(PDFObject obj) throws IOException(Code)(Java Doc)
public int getNumInputs()(Code)(Java Doc)
public int getNumOutputs()(Code)(Java Doc)
protected float getRange(int i)(Code)(Java Doc)
public int getType()(Code)(Java Doc)
abstract protected void parse(PDFObject obj) throws IOException(Code)(Java Doc)
protected void setDomain(float[] domain)(Code)(Java Doc)
protected void setRange(float[] range)(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.