Java Doc for PDResources.java in  » PDF » jPod » de » intarsys » pdf » pd » 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 » jPod » de.intarsys.pdf.pd 
Source Cross Reference  Class Diagram Java Document (Java Doc) 


java.lang.Object
   de.intarsys.pdf.cos.COSBasedObject
      de.intarsys.pdf.pd.PDObject
         de.intarsys.pdf.pd.PDResources

PDResources
public class PDResources extends PDObject (Code)
The implementation of a resource dictionary.

The resource dictionary holds the references to indirect objects that are use within a CSContent . From the CSContent , these objects are referenced using the key under which they are stored in the dictionary.


Inner Class :public static class MetaClass extends PDObject.MetaClass

Field Summary
final public static  COSNameCN_RT_ColorSpace
    
final public static  COSNameCN_RT_Encoding
    
final public static  COSNameCN_RT_ExtGState
    
final public static  COSNameCN_RT_Font
    
final public static  COSNameCN_RT_Pattern
    
final public static  COSNameCN_RT_ProcSet
    
final public static  COSNameCN_RT_Properties
    
final public static  COSNameCN_RT_Shading
    
final public static  COSNameCN_RT_XObject
    
final public static  MetaClassMETA
    

Constructor Summary
protected  PDResources(COSObject object)
    

Method Summary
public  voidaddColorSpaceResource(COSName name, PDColorSpace colorSpace)
    
public  voidaddExtGStateResource(COSName name, PDExtGState extGState)
    
public  voidaddFontResource(COSName name, PDFont font)
    
public  voidaddPatternResource(COSName name, PDPattern pattern)
    
public  voidaddResource(COSName resourceType, COSName name, PDObject object)
    
public  voidaddShadingResource(COSName name, PDShading shading)
    
public  voidaddXObjectResource(COSName name, PDXObject object)
    
public  voidcosAddResource(COSName resourceType, COSName resourceName, COSObject resource)
    
public  COSNamecosCreateResource(COSName resourceType, COSObject resource)
    
public  COSObjectcosGetResource(COSName resourceType, COSName resourceName)
    
public  COSDictionarycosGetResources(COSName resourceType)
    
protected  COSDictionarycosInitResources(COSName resourceType)
    
public  COSNamecreateColorSpaceResource(PDColorSpace colorSpace)
     Return the name of a ColorSpace resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  colorSpace - The colorSpace to lookup.
public  COSNamecreateExtGStateResource(PDExtGState gstate)
     Return the name of a ExtGState resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  gstate - The gstate to lookup.
public  COSNamecreateFontResource(PDFont font)
     Return the name of the font resource within this resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  font - The font whose name is looked up.
public  COSNamecreateResource(COSName resourceType, PDObject object)
     Return the name of a new resource of selected resource type within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  object - The resource to lookup.
protected  COSNamecreateResourceName(COSName resourceType)
    
public  COSNamecreateShadingResource(PDShading shading)
     Return the name of a shading resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  shading - The shading to lookup.
public  COSNamecreateXObjectResource(PDXObject xobject)
     Return the name of a XObject resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  xobject - The object to lookup.
public  PDColorSpacegetColorSpaceResource(COSName name)
     A named ColorSpace resource from the resource dictionary.
Parameters:
  name - The name of the ColorSpace resource.
public  PDExtGStategetExtGStateResource(COSName name)
     Return a named ExtGState resource from the resource dictionary.
Parameters:
  name - The name of the ExtGState resource.
public  PDFontgetFontResource(COSName name)
     Return a named font resource.
public  PDPatterngetPatternResource(COSName name)
     Return a named Pattern resource from the resource dictionary.
Parameters:
  name - The name of the Pattern resource.
public  PDObjectgetResource(COSName resourceType, PDObject.MetaClass metaClass, COSName name)
     Return a named resource from the resource dictionary.
Parameters:
  name - The name of the resource.
public  PDShadinggetShadingResource(COSName name)
     Return a named Pattern resource from the resource dictionary.
Parameters:
  name - The name of the Pattern resource.
public  PDXObjectgetXObjectResource(COSName name)
     Return a named XObject resource from the resource dictionary.
Parameters:
  name - The name of the XObject resource.
public  voidinvalidateCaches()
    

Field Detail
CN_RT_ColorSpace
final public static COSName CN_RT_ColorSpace(Code)



CN_RT_Encoding
final public static COSName CN_RT_Encoding(Code)



CN_RT_ExtGState
final public static COSName CN_RT_ExtGState(Code)
the resource types in a resource dictionaries



CN_RT_Font
final public static COSName CN_RT_Font(Code)



CN_RT_Pattern
final public static COSName CN_RT_Pattern(Code)



CN_RT_ProcSet
final public static COSName CN_RT_ProcSet(Code)



CN_RT_Properties
final public static COSName CN_RT_Properties(Code)



CN_RT_Shading
final public static COSName CN_RT_Shading(Code)



CN_RT_XObject
final public static COSName CN_RT_XObject(Code)



META
final public static MetaClass META(Code)
The meta class instance




Constructor Detail
PDResources
protected PDResources(COSObject object)(Code)
Create a resource dictionary
Parameters:
  object - The COS Object implementing the dictionary




Method Detail
addColorSpaceResource
public void addColorSpaceResource(COSName name, PDColorSpace colorSpace)(Code)



addExtGStateResource
public void addExtGStateResource(COSName name, PDExtGState extGState)(Code)



addFontResource
public void addFontResource(COSName name, PDFont font)(Code)



addPatternResource
public void addPatternResource(COSName name, PDPattern pattern)(Code)



addResource
public void addResource(COSName resourceType, COSName name, PDObject object)(Code)



addShadingResource
public void addShadingResource(COSName name, PDShading shading)(Code)



addXObjectResource
public void addXObjectResource(COSName name, PDXObject object)(Code)



cosAddResource
public void cosAddResource(COSName resourceType, COSName resourceName, COSObject resource)(Code)



cosCreateResource
public COSName cosCreateResource(COSName resourceType, COSObject resource)(Code)



cosGetResource
public COSObject cosGetResource(COSName resourceType, COSName resourceName)(Code)



cosGetResources
public COSDictionary cosGetResources(COSName resourceType)(Code)



cosInitResources
protected COSDictionary cosInitResources(COSName resourceType)(Code)



createColorSpaceResource
public COSName createColorSpaceResource(PDColorSpace colorSpace)(Code)
Return the name of a ColorSpace resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  colorSpace - The colorSpace to lookup. the name of a ColorSpace resource within the resource dictionary.



createExtGStateResource
public COSName createExtGStateResource(PDExtGState gstate)(Code)
Return the name of a ExtGState resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  gstate - The gstate to lookup. the name of a ExtGState resource within the resource dictionary.



createFontResource
public COSName createFontResource(PDFont font)(Code)
Return the name of the font resource within this resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  font - The font whose name is looked up. the name of the font resource within this resource dictionary.



createResource
public COSName createResource(COSName resourceType, PDObject object)(Code)
Return the name of a new resource of selected resource type within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  object - The resource to lookup. The name of a resource within the resource dictionary.



createResourceName
protected COSName createResourceName(COSName resourceType)(Code)



createShadingResource
public COSName createShadingResource(PDShading shading)(Code)
Return the name of a shading resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  shading - The shading to lookup. The name of the resource within the resource dictionary.



createXObjectResource
public COSName createXObjectResource(PDXObject xobject)(Code)
Return the name of a XObject resource within the resource dictionary.

A new entry is created if the resource is not found.


Parameters:
  xobject - The object to lookup. the name of a XObject resource within the resource dictionary.



getColorSpaceResource
public PDColorSpace getColorSpaceResource(COSName name)(Code)
A named ColorSpace resource from the resource dictionary.
Parameters:
  name - The name of the ColorSpace resource. A named ColorSpace resource from the resource dictionary.



getExtGStateResource
public PDExtGState getExtGStateResource(COSName name)(Code)
Return a named ExtGState resource from the resource dictionary.
Parameters:
  name - The name of the ExtGState resource. a named ExtGState resource from the resource dictionary.



getFontResource
public PDFont getFontResource(COSName name)(Code)
Return a named font resource.
Parameters:
  name - The name of the font resource A named font resource from within the resource dictionary.



getPatternResource
public PDPattern getPatternResource(COSName name)(Code)
Return a named Pattern resource from the resource dictionary.
Parameters:
  name - The name of the Pattern resource. a named Pattern resource from the resource dictionary.



getResource
public PDObject getResource(COSName resourceType, PDObject.MetaClass metaClass, COSName name)(Code)
Return a named resource from the resource dictionary.
Parameters:
  name - The name of the resource. a named resource from the resource dictionary.



getShadingResource
public PDShading getShadingResource(COSName name)(Code)
Return a named Pattern resource from the resource dictionary.
Parameters:
  name - The name of the Pattern resource. a named Pattern resource from the resource dictionary.



getXObjectResource
public PDXObject getXObjectResource(COSName name)(Code)
Return a named XObject resource from the resource dictionary.
Parameters:
  name - The name of the XObject resource. a named XObject resource from the resource dictionary.



invalidateCaches
public void invalidateCaches()(Code)



Fields inherited from de.intarsys.pdf.pd.PDObject
final public static COSName DK_Subtype(Code)(Java Doc)
final public static COSName DK_Type(Code)(Java Doc)
final public static MetaClass META(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.pd.PDObject
protected COSName cosGetExpectedSubtype()(Code)(Java Doc)
protected COSName cosGetExpectedType()(Code)(Java Doc)
public COSObject cosGetFieldDescendant(COSName name)(Code)(Java Doc)
public COSObject cosGetFieldInheritable(COSName name)(Code)(Java Doc)
public COSObject cosGetFieldInherited(COSName name)(Code)(Java Doc)
final public COSName cosGetSubtype()(Code)(Java Doc)
final public COSName cosGetType()(Code)(Java Doc)
public COSObject cosRemoveFieldInheritable(COSName name)(Code)(Java Doc)
public COSObject cosSetFieldInheritable(COSName name, COSObject cosObj)(Code)(Java Doc)
final public COSName cosSetSubtype(COSName newType)(Code)(Java Doc)
final public COSName cosSetType(COSName newType)(Code)(Java Doc)
public PDDocument getDoc()(Code)(Java Doc)
public List getGenericChildren()(Code)(Java Doc)
public PDObject getGenericParent()(Code)(Java Doc)
protected List getPDObjects(COSName key, COSBasedObject.MetaClass metaclass, boolean addListener)(Code)(Java Doc)
protected void initializeFromScratch()(Code)(Java Doc)
public void setGenericParent(PDObject parent)(Code)(Java Doc)
protected void setPDObjects(COSName key, List list)(Code)(Java Doc)
public String toString()(Code)(Java Doc)

Fields inherited from de.intarsys.pdf.cos.COSBasedObject
final public static MetaClass META(Code)(Java Doc)

Methods inherited from de.intarsys.pdf.cos.COSBasedObject
public void changed(COSObject pObject, Object slot, Object oldValue, Object newValue)(Code)(Java Doc)
public COSArray cosGetArray()(Code)(Java Doc)
public COSDictionary cosGetDict()(Code)(Java Doc)
public COSDocument cosGetDoc()(Code)(Java Doc)
public COSObject cosGetField(COSName name)(Code)(Java Doc)
public COSObject cosGetObject()(Code)(Java Doc)
public COSStream cosGetStream()(Code)(Java Doc)
public boolean cosHasField(COSName name)(Code)(Java Doc)
public COSObject cosRemoveField(COSName name)(Code)(Java Doc)
public COSObject cosSetField(COSName name, COSObject cosObj)(Code)(Java Doc)
public Object getAttribute(Object key)(Code)(Java Doc)
public boolean getFieldBoolean(COSName name, boolean defaultValue)(Code)(Java Doc)
public CDSDate getFieldDate(COSName name, CDSDate defaultValue)(Code)(Java Doc)
public float getFieldFixed(COSName name, float defaultValue)(Code)(Java Doc)
public float[] getFieldFixedArray(COSName name, float[] defaultValue)(Code)(Java Doc)
public int getFieldInt(COSName name, int defaultValue)(Code)(Java Doc)
public String getFieldMLString(COSName name, String defaultValue)(Code)(Java Doc)
public String getFieldString(COSName name, String defaultValue)(Code)(Java Doc)
protected void initializeFromCos()(Code)(Java Doc)
protected void initializeFromScratch()(Code)(Java Doc)
public void invalidateCaches()(Code)(Java Doc)
public Object removeAttribute(Object key)(Code)(Java Doc)
public Object setAttribute(Object key, Object value)(Code)(Java Doc)
public void setFieldBoolean(COSName name, boolean value)(Code)(Java Doc)
public void setFieldFixed(COSName name, float value)(Code)(Java Doc)
protected void setFieldFixedArray(COSName key, float[] array)(Code)(Java Doc)
public void setFieldInt(COSName name, int value)(Code)(Java Doc)
public void setFieldMLString(COSName name, String value)(Code)(Java Doc)
public void setFieldName(COSName name, String value)(Code)(Java Doc)
public void setFieldObject(COSName name, COSBasedObject value)(Code)(Java Doc)
public void setFieldString(COSName name, String value)(Code)(Java Doc)
public String toString()(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.