|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.ujac.print.BaseDocumentTag
org.ujac.print.tag.BaseElementTag
org.ujac.print.tag.BaseImageTag
org.ujac.print.tag.ImageTag
public class ImageTag
Name: ImageTag
Description: A class handling image items.
Field Summary | |
---|---|
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 | |
---|---|
ImageTag()
Constructs a ImageTag instance with no specific attributes. |
|
ImageTag(String name)
Constructs a ImageTag 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,
boolean foreground)
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
Constructor Detail |
---|
public ImageTag()
public ImageTag(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, boolean foreground)
writer
- The pdf writer.document
- The document to add the image to.image
- The image to insert.foreground
- Tells whether to place the image in the foreground or the background.
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |