com.etymon.pj.object
Class PjResources
java.lang.Object
com.etymon.pj.object.BaseObject
com.etymon.pj.object.PjObject
com.etymon.pj.object.PjDictionary
com.etymon.pj.object.PjResources
- All Implemented Interfaces:
- java.lang.Cloneable
public class PjResources
- extends PjDictionary
A representation of a PDF resources dictionary.
Constructor Summary |
PjResources()
Creates a new resources dictionary. |
PjResources(java.util.Hashtable h)
Creates a resources dictionary as a wrapper around a Hashtable. |
Methods inherited from class java.lang.Object |
equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
PjResources
public PjResources()
- Creates a new resources dictionary.
PjResources
public PjResources(java.util.Hashtable h)
- Creates a resources dictionary as a wrapper around a Hashtable.
- Parameters:
h
- the Hashtable to use for this dictionary.
setProcSet
public void setProcSet(PjProcSet procSet)
setProcSet
public void setProcSet(PjReference procSet)
getProcSet
public PjObject getProcSet()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setFont
public void setFont(PjDictionary font)
setFont
public void setFont(PjReference font)
getFont
public PjObject getFont()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setColorSpace
public void setColorSpace(PjName colorSpace)
setColorSpace
public void setColorSpace(PjArray colorSpace)
setColorSpace
public void setColorSpace(PjReference colorSpace)
getColorSpace
public PjObject getColorSpace()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setXObject
public void setXObject(PjDictionary xObject)
setXObject
public void setXObject(PjReference xObject)
getXObject
public PjObject getXObject()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setExtGState
public void setExtGState(PjDictionary extGState)
setExtGState
public void setExtGState(PjReference extGState)
getExtGState
public PjObject getExtGState()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setPattern
public void setPattern(PjStream pattern)
setPattern
public void setPattern(PjReference pattern)
getPattern
public PjObject getPattern()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
setProperties
public void setProperties(PjDictionary properties)
setProperties
public void setProperties(PjReference properties)
getProperties
public PjObject getProperties()
throws InvalidPdfObjectException
- Throws:
InvalidPdfObjectException
isLike
public static boolean isLike(PjDictionary dictionary)
- Examines a dictionary to see if it is a PDF resources
dictionary.
- Parameters:
dictionary
- the dictionary to examine.
- Returns:
- true if the dictionary could be interpreted as a
valid PjResources object.
clone
public java.lang.Object clone()
throws java.lang.CloneNotSupportedException
- Returns a deep copy of this object.
- Overrides:
clone
in class PjDictionary
- Returns:
- a deep copy of this object.
- Throws:
java.lang.CloneNotSupportedException
- if the instance can not be cloned.