|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.ujac.print.BaseDocumentTag org.ujac.print.tag.BaseElementTag org.ujac.print.tag.BaseImageTag org.ujac.print.tag.BackgroundImageTag
public class BackgroundImageTag
Name: BackgroundImageTag
Description: A class handling <background-image> items.
Field Summary | |
---|---|
protected boolean |
antialiasing
The antialiasing flag. |
static String |
TAG_NAME
The item's name. |
Fields inherited from class org.ujac.print.tag.BaseImageTag |
---|
height, IMAGE_BUILDERS, imageData, pageAttr, sourceAttr, width |
Constructor Summary | |
---|---|
BackgroundImageTag()
Constructs a BackgroundImageTag instance with no specific attributes. |
|
BackgroundImageTag(String name)
Constructs a BackgroundImageTag instance with specific attributes. |
Method Summary | |
---|---|
protected AttributeDefinitionMap |
buildSupportedAttributes()
Gets the list of supported attributes. |
protected AttributeDefinitionMap |
buildSupportedStyleAttributes()
Gets the list of supported style attributes. |
void |
closeItem()
Processes the item. |
String |
getDescription()
Gets a brief description for the item. |
float |
getHeight()
Gets the image height. |
PagePosition |
getPosition()
Gets the image's page position. |
float |
getWidth()
Gets the image width. |
void |
initialize()
Initializes the item. |
protected void |
insertImage(com.lowagie.text.pdf.PdfWriter writer,
com.lowagie.text.Document document,
com.lowagie.text.Image image)
Inserts the given image into the document. |
void |
openItem()
Opens the item. |
Methods inherited from class org.ujac.print.tag.BaseImageTag |
---|
getImage |
Methods inherited from class org.ujac.print.tag.BaseElementTag |
---|
getElementContainer |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final String TAG_NAME
protected boolean antialiasing
Constructor Detail |
---|
public BackgroundImageTag()
public BackgroundImageTag(String name)
name
- The tag name.Method Detail |
---|
public String getDescription()
getDescription
in class BaseDocumentTag
protected AttributeDefinitionMap buildSupportedAttributes()
buildSupportedAttributes
in class BaseElementTag
protected AttributeDefinitionMap buildSupportedStyleAttributes()
buildSupportedStyleAttributes
in class BaseDocumentTag
public PagePosition getPosition()
public float getWidth()
public float getHeight()
public void initialize() throws DocumentHandlerException
initialize
in class BaseElementTag
DocumentHandlerException
- If something went badly wrong.public void openItem() throws DocumentHandlerException
openItem
in class BaseElementTag
DocumentHandlerException
- Thrown in case something went wrong while opening the image item.public void closeItem() throws DocumentHandlerException
closeItem
in class BaseDocumentTag
DocumentHandlerException
- Thrown in case something went wrong while processing the document item.protected void insertImage(com.lowagie.text.pdf.PdfWriter writer, com.lowagie.text.Document document, com.lowagie.text.Image image)
writer
- The pdf writer.document
- The document to add the image to.image
- The image to insert.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |