Package com.adobe.xfa.template
Class TemplateResolver
java.lang.Object
com.adobe.xfa.template.TemplateResolver
Base class for implementing a template resolver. The job of a template
resolver is to collect different types of objects, etc. for the current job
being processed. This info can later be used to build structures for devices
that have a specific requirement, without re-traversing the template.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classA class to represent red/green/blue values. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidaddActiveColor(int nRed, int nGreen, int nBlue) Add a new Color to the list of known colors.voidaddActiveColor(Color oColor) Add a new Color to the list of known colors.voidaddImage(ImageValue oImage) Add a reference to a known Imagein the XFATemplatevoidRemove all image references for this template.Enumerate the list of active colors as RGB structures.Return a list of Imagereferences.
-
Constructor Details
-
TemplateResolver
public TemplateResolver()
-
-
Method Details
-
addActiveColor
Add a new Color to the list of known colors.- Parameters:
oColor- the color to add to the list.
-
addActiveColor
public void addActiveColor(int nRed, int nGreen, int nBlue) Add a new Color to the list of known colors.- Parameters:
nRed- The red RGB value of the colornGreen- The green RGB value of the color.nBlue- The blue RGB value of the color.
-
addImage
Add a reference to a known Imagein the XFATemplate- Parameters:
oImage- - a reference to an Image.
-
cleanupImages
public void cleanupImages()Remove all image references for this template. -
enumActiveColors
Enumerate the list of active colors as RGB structures.- Returns:
- an array of the active colors. The list will not contain duplicates.
-
getImages
Return a list of Imagereferences.- Returns:
- a list of Imagereferences.
-