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
setFont
public void setFont(PjDictionary font)
setFont
public void setFont(PjReference font)
getFont
public PjObject getFont()
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
setXObject
public void setXObject(PjDictionary xObject)
setXObject
public void setXObject(PjReference xObject)
getXObject
public PjObject getXObject()
throws InvalidPdfObjectException
setExtGState
public void setExtGState(PjDictionary extGState)
setExtGState
public void setExtGState(PjReference extGState)
getExtGState
public PjObject getExtGState()
throws InvalidPdfObjectException
setPattern
public void setPattern(PjStream pattern)
setPattern
public void setPattern(PjReference pattern)
getPattern
public PjObject getPattern()
throws InvalidPdfObjectException
setProperties
public void setProperties(PjDictionary properties)
setProperties
public void setProperties(PjReference properties)
getProperties
public PjObject getProperties()
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.