|
|||||||||
| Home >> All >> org >> ujac >> print >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.ujac.print.tag
Class ImageTag

java.lang.Objectorg.ujac.print.BaseDocumentTag
org.ujac.print.tag.BaseElementTag
org.ujac.print.tag.ImageTag
- All Implemented Interfaces:
- TagAttributes
- Direct Known Subclasses:
- ChartTag
- public class ImageTag
- extends BaseElementTag
Name: ImageTag
Description: A class handling image items.
Log: $Log: ImageTag.java,v $
Log: Revision 1.11 2003/12/15 23:48:57 lauerc
Log: In case a surrounding phase holder has been found prefering
Log: this one to a surrounding element container.
Log:
Log: Revision 1.10 2003/11/28 00:04:36 lauerc
Log: Added support for boolean attribute draw-foreground, which rules whether
Log: the image is drawn directly (false) or later at end of the page (true) to make
Log: it be drawn in the foreground.
Log:
Log: Revision 1.9 2003/11/27 08:03:42 lauerc
Log: Serving chunk to element container now (was phrase).
Log:
Log: Revision 1.8 2003/11/27 01:26:31 lauerc
Log: Enhanced image positioning.
Log:
Log: Revision 1.7 2003/11/25 23:37:47 lauerc
Log: Added support for 'halign' attribute.
Log:
Log: Revision 1.6 2003/11/25 06:57:50 lauerc
Log: Ensuring page existance when placing a absolutely positioned image now.
Log:
Log: Revision 1.5 2003/11/25 06:15:22 lauerc
Log: Enhanced PDF handling: You can place PDF images everywhere in the document now (tables, phrases etc.).
Log:
Log: Revision 1.4 2003/11/23 03:08:03 lauerc
Log: Fixed javadoc comments.
Log:
Log: Revision 1.3 2003/11/21 00:57:42 lauerc
Log: Made almost all attribute values behave dynamic using the Expression interpreter.
Log:
Log: Revision 1.2 2003/11/01 12:05:19 lauerc
Log: Added copyright notice.
Log:
Log: Revision 1.1 2003/09/29 21:15:03 lauerc
Log: Renamed classes from XyzItem to XyzTag.
Log:
Log: Revision 1.14 2003/07/23 21:28:18 lauerc
Log: Added attribute documentation.
Log:
Log: Revision 1.13 2003/07/22 05:15:47 lauerc
Log: Fixed handling of absolute positioned non PDF images.
Log:
Log: Revision 1.12 2003/07/18 06:26:01 lauerc
Log: Content handling re-designed.
Log:
Log: Revision 1.11 2003/07/09 22:01:19 lauerc
Log: Implemented the getDescription method.
Log:
Log: Revision 1.10 2003/07/07 06:58:49 lauerc
Log: Changed visibility of method initialize to public.
Log:
Log: Revision 1.9 2003/07/03 04:49:31 lauerc
Log: Fixed comment.
Log:
Log: Revision 1.8 2003/05/18 11:31:26 lauerc
Log: Checking if an attribute is required or not is based on attribute definitions now (see getSupportedAttributes).
Log:
Log: Revision 1.7 2003/05/07 22:35:45 lauerc
Log: Replaced event handler super class PdfPageEventHelper by new class DocumentPageEventHandler.
Log: Removed removing of page event handler at method insertPdf, this handler is marked as temorary
Log: and gets removed later.
Log:
Log: Revision 1.6 2003/04/29 20:33:00 lauerc
Log: Added item to the argument list of the addElement method of ElementContainer interface.
Log: Added item to the argument list of the addChunk method of PhraseHolder interface.
Log:
Log: Revision 1.5 2003/04/29 19:12:08 lauerc
Log: Added support for PDF images.
Log:
Log: Revision 1.4 2003/04/29 05:33:04 lauerc
Log: Added missing attributes.
Log: Evaluating all attribute values at openItem method now.
Log:
Log: Revision 1.3 2003/04/28 22:07:53 lauerc
Log: Added support for resource loader.
Log:
Log: Revision 1.2 2003/04/24 18:23:33 lauerc
Log: Fixed name.
Log:
Log: Revision 1.1 2003/04/01 22:55:30 lauerc
Log: Initial revision.
Log:
- Version:
- $Revision: 1.11 $
| Nested Class Summary | |
(package private) class |
ImageTag.ImagePageEventHandler
Name: ImagePageEventHandler Description: The page event handler, handling the output of absolutely positioned images. |
| Field Summary | |
private int |
hAlign
The image's horizontal alignment. |
private java.lang.String |
hAlignAttr
The image's horizontal alignment attribute. |
private float |
height
The image height. |
private java.lang.String |
heightAttr
The image height attribute. |
private byte[] |
imageData
The image data. |
static java.lang.String |
NAME
The item's name. |
private org.ujac.print.PhraseHolder |
phraseHolder
The surrounding phrase holder. |
private float |
rotate
The rotation angle. |
private java.lang.String |
rotateAttr
The image rotate attribute. |
private java.lang.String |
sourceAttr
The image source attribute. |
private static org.ujac.print.AttributeDefinition[] |
supportedAttributes
The item's supported attributes. |
private int |
vAlign
The image's vertical alignment. |
private java.lang.String |
vAlignAttr
The image's horizontal alignment attribute. |
private float |
width
The image width. |
private java.lang.String |
widthAttr
The image width attribute. |
private float |
x
The horizontal position. |
private java.lang.String |
xAttr
The horizontal position attribute. |
private float |
y
The vertical position. |
private java.lang.String |
yAttr
The vertical position attribute. |
| Fields inherited from class org.ujac.print.tag.BaseElementTag |
elementContainer |
| Fields inherited from class org.ujac.print.BaseDocumentTag |
attributes, condition, content, DEFAULT_FONT, DEFAULT_FONT_COLOR, DEFAULT_FONT_FAMILY, DEFAULT_FONT_SIZE, DEFAULT_FONT_STYLE, depth, documentHandler, parentItem, previousItem, supportedAttributeMap, tagFactory |
| Constructor Summary | |
ImageTag()
|
|
| Method Summary | |
void |
closeItem()
Processes the item. |
java.lang.String |
getDescription()
Gets a brief description for the item. |
float |
getHeight()
Gets the image height. |
protected com.lowagie.text.Image |
getImage()
Gets the image to insert into the document. |
java.lang.String |
getName()
Gets the item's name. |
org.ujac.print.AttributeDefinition[] |
getSupportedAttributes()
Gets the list of supported attributes. |
org.ujac.print.ChildDefinition[] |
getSupportedChilds()
Gets the list of supported childs. |
float |
getWidth()
Gets the image width. |
float |
getX()
Gets the image's horizontal position. |
float |
getY()
Gets the image's vertical position. |
private com.lowagie.text.Image |
imageFromPdf(byte[] imageData)
Inserts the given PDF into the document. |
void |
initialize()
Initializes the item. |
private 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. |
private boolean |
isPdf(byte[] imageData)
Checks whether the image data contains an PDF or not. |
void |
openItem()
Opens the item. |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
NAME
public static final java.lang.String NAME
- The item's name.
- See Also:
- Constant Field Values
supportedAttributes
private static final org.ujac.print.AttributeDefinition[] supportedAttributes
- The item's supported attributes.
phraseHolder
private org.ujac.print.PhraseHolder phraseHolder
- The surrounding phrase holder.
xAttr
private java.lang.String xAttr
- The horizontal position attribute.
yAttr
private java.lang.String yAttr
- The vertical position attribute.
widthAttr
private java.lang.String widthAttr
- The image width attribute.
heightAttr
private java.lang.String heightAttr
- The image height attribute.
rotateAttr
private java.lang.String rotateAttr
- The image rotate attribute.
sourceAttr
private java.lang.String sourceAttr
- The image source attribute.
hAlignAttr
private java.lang.String hAlignAttr
- The image's horizontal alignment attribute.
vAlignAttr
private java.lang.String vAlignAttr
- The image's horizontal alignment attribute.
x
private float x
- The horizontal position.
y
private float y
- The vertical position.
width
private float width
- The image width.
height
private float height
- The image height.
rotate
private float rotate
- The rotation angle.
hAlign
private int hAlign
- The image's horizontal alignment.
vAlign
private int vAlign
- The image's vertical alignment.
imageData
private byte[] imageData
- The image data.
| Constructor Detail |
ImageTag
public ImageTag()
| Method Detail |
getName
public java.lang.String getName()
- Gets the item's name.
getDescription
public java.lang.String getDescription()
- Gets a brief description for the item.
getSupportedAttributes
public org.ujac.print.AttributeDefinition[] getSupportedAttributes()
- Gets the list of supported attributes.
getSupportedChilds
public org.ujac.print.ChildDefinition[] getSupportedChilds()
- Gets the list of supported childs.
getX
public float getX()
- Gets the image's horizontal position.
getY
public float getY()
- Gets the image's vertical position.
getWidth
public float getWidth()
- Gets the image width.
getHeight
public float getHeight()
- Gets the image height.
initialize
public void initialize()
throws org.ujac.print.DocumentHandlerException
- Initializes the item.
- Overrides:
initializein classBaseElementTag
openItem
public void openItem()
throws org.ujac.print.DocumentHandlerException
- Opens the item.
closeItem
public void closeItem()
throws org.ujac.print.DocumentHandlerException
- Processes the item.
getImage
protected com.lowagie.text.Image getImage() throws org.ujac.print.DocumentHandlerException
- Gets the image to insert into the document.
imageFromPdf
private com.lowagie.text.Image imageFromPdf(byte[] imageData) throws org.ujac.print.DocumentHandlerException
- Inserts the given PDF into the document.
insertImage
private 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.
isPdf
private boolean isPdf(byte[] imageData)
- Checks whether the image data contains an PDF or not.
|
|||||||||
| Home >> All >> org >> ujac >> print >> [ tag overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC