|
|||||||||
| 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 | |
|---|---|
static Name |
COLORSPACE_KEY
|
static Name |
EXTGSTATE_KEY
|
static Name |
FONT_KEY
|
static Name |
PATTERN_KEY
|
static Name |
PROPERTIES_KEY
|
static Name |
SHADING_KEY
|
static Name |
XOBJECT_KEY
|
| Fields inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY |
| Constructor Summary | |
|---|---|
Resources(Library l,
java.util.HashMap h)
|
|
| Method Summary | |
|---|---|
PColorSpace |
getColorSpace(java.lang.Object o)
|
ExtGState |
getExtGState(Name namedReference)
Returns the ExtGState object which has the specified reference name. |
Font |
getFont(Name s)
|
Form |
getForm(Name nameReference)
Gets the Form XObject specified by the named reference. |
java.awt.Image |
getImage(Name s,
java.awt.Color fill)
|
ImageStream |
getImageStream(Name s)
|
Pattern |
getPattern(Name name)
Retrieves a Pattern object given the named resource. |
OptionalContents |
getPropertyEntry(Name key)
Looks for the specified key in the Properties dictionary. |
ShadingPattern |
getShading(Name name)
Gets the shadding pattern based on a shading dictionary name, similar to getPattern but is only called for the 'sh' token. |
boolean |
isForm(Name s)
|
boolean |
isShading()
Checks to see if the Shading key has value in this resource dictionary. |
| Methods inherited from class org.icepdf.core.pobjects.Dictionary |
|---|
getEntries, getFloat, getInt, getLibrary, getNumber, 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 |
| Field Detail |
|---|
public static final Name COLORSPACE_KEY
public static final Name FONT_KEY
public static final Name XOBJECT_KEY
public static final Name PATTERN_KEY
public static final Name SHADING_KEY
public static final Name EXTGSTATE_KEY
public static final Name PROPERTIES_KEY
| Constructor Detail |
|---|
public Resources(Library l,
java.util.HashMap h)
l - h - | Method Detail |
|---|
public PColorSpace getColorSpace(java.lang.Object o)
o -
public Font getFont(Name s)
s -
public java.awt.Image getImage(Name s,
java.awt.Color fill)
s - fill -
public ImageStream getImageStream(Name s)
public boolean isForm(Name s)
s -
public Form getForm(Name nameReference)
nameReference - name of resourse to retreive.
public Pattern getPattern(Name name)
name - of object to find.
public ShadingPattern getShading(Name name)
name - name of shading dictionary
public ExtGState getExtGState(Name namedReference)
namedReference - name of ExtGState object to try and find.
public OptionalContents getPropertyEntry(Name key)
key - key to find a value of in the Properties dictionary.
public boolean isShading()
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||