public class Resources extends Dictionary
| Modifier and Type | Field and Description |
|---|---|
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 |
entries, FORM_TYPE_KEY, inited, isDeleted, isNew, LENGTH_KEY, library, SUBTYPE_KEY, TYPE_KEY| Constructor and Description |
|---|
Resources(Library l,
java.util.HashMap h) |
| Modifier and Type | Method and Description |
|---|---|
PColorSpace |
getColorSpace(java.lang.Object o) |
ExtGState |
getExtGState(Name namedReference)
Returns the ExtGState object which has the specified reference name.
|
Font |
getFont(Name s) |
java.util.HashMap |
getFonts() |
Form |
getForm(Name nameReference)
Gets the Form XObject specified by the named reference.
|
java.awt.Image |
getImage(Name s,
GraphicsState graphicsState) |
int |
getImageCount()
Gets a rough count of the images resources associated with this page.
|
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.
|
java.lang.Object |
getXObject(Name s) |
boolean |
isForm(Name s) |
boolean |
isShading()
Checks to see if the Shading key has value in this resource dictionary.
|
getEntries, getFloat, getInt, getLibrary, getNumber, getObject, getPObjectReference, init, isDeleted, isNew, setDeleted, setNew, setPObjectReference, toStringpublic 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
public Resources(Library l, java.util.HashMap h)
l - h - public java.util.HashMap getFonts()
public PColorSpace getColorSpace(java.lang.Object o)
o - public java.awt.Image getImage(Name s, GraphicsState graphicsState)
s - graphicsState - public ImageStream getImageStream(Name s)
public java.lang.Object getXObject(Name s)
public int getImageCount()
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 dictionarypublic 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()