Package com.adobe.xfa.template
Class TemplateResolver
- java.lang.Object
-
- com.adobe.xfa.template.TemplateResolver
-
public final class TemplateResolver extends Object
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 Classes Modifier and Type Class Description static class
TemplateResolver.RGB
A class to represent red/green/blue values.
-
Constructor Summary
Constructors Constructor Description TemplateResolver()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description void
addActiveColor(int nRed, int nGreen, int nBlue)
Add a new Color to the list of known colors.void
addActiveColor(Color oColor)
Add a new Color to the list of known colors.void
addImage(ImageValue oImage)
Add a reference to a known Imagein the XFATemplatevoid
cleanupImages()
Remove all image references for this template.List<TemplateResolver.RGB>
enumActiveColors()
Enumerate the list of active colors as RGB structures.List<ImageValue>
getImages()
Return a list of Imagereferences.
-
-
-
Method Detail
-
addActiveColor
public void addActiveColor(Color oColor)
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
public void addImage(ImageValue oImage)
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
public List<TemplateResolver.RGB> enumActiveColors()
Enumerate the list of active colors as RGB structures.- Returns:
- an array of the active colors. The list will not contain duplicates.
-
getImages
public List<ImageValue> getImages()
Return a list of Imagereferences.- Returns:
- a list of Imagereferences.
-
-