|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.icepdf.core.pobjects.Dictionary
org.icepdf.core.pobjects.Resources
public class Resources
A resource is a dictionary type as defined by the PDF specification. It can contain fonts, xobjects, colorspaces, patterns, shading and external graphic states.
| Field Summary |
|---|
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, inited, isDeleted, isNew, library, SUBTYPE_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
Resources(Library l,
java.util.Hashtable h)
|
|
| Method Summary | |
|---|---|
void |
addReference(java.lang.Object referer)
Increments the refernce count, meaning that at least one object is depending on this reference. |
boolean |
dispose(boolean cache,
Dictionary referer)
Disposes this classes resources if an only if no other PObject is also using this oject. |
PColorSpace |
getColorSpace(java.lang.Object o)
|
ExtGState |
getExtGState(java.lang.String namedReference)
Returns the ExtGState object which has the specified reference name. |
Font |
getFont(java.lang.String s)
|
Form |
getForm(java.lang.String nameReference)
Gets the Form XObject specified by the named reference. |
java.awt.Image |
getImage(java.lang.String s,
java.awt.Color fill)
|
Pattern |
getPattern(java.lang.String name)
Retrieves a Pattern object given the named resource. |
ShadingPattern |
getShading(java.lang.String name)
Gets the shadding pattern based on a shading dictionary name, similar to getPattern but is only called for the 'sh' token. |
boolean |
isForm(java.lang.String s)
|
void |
removeReference(java.lang.Object referer)
|
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toString |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Constructor Detail |
|---|
public Resources(Library l,
java.util.Hashtable h)
l - h - | Method Detail |
|---|
public void addReference(java.lang.Object referer)
referer - object doing the reference, used for debug purposes.public void removeReference(java.lang.Object referer)
public boolean dispose(boolean cache,
Dictionary referer)
cache - true to cache image streams, false otherwise.referer - only used for debuggin, can be null otherwise.public PColorSpace getColorSpace(java.lang.Object o)
o -
public Font getFont(java.lang.String s)
s -
public java.awt.Image getImage(java.lang.String s,
java.awt.Color fill)
s - fill -
public boolean isForm(java.lang.String s)
s -
public Form getForm(java.lang.String nameReference)
nameReference - name of resourse to retreive.
public Pattern getPattern(java.lang.String name)
name - of object to find.
public ShadingPattern getShading(java.lang.String name)
name - name of shading dictionary
public ExtGState getExtGState(java.lang.String namedReference)
namedReference - name of ExtGState object to try and find.
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||