info.informatica.report.block
Class ImageBlock

java.lang.Object
  extended by info.informatica.report.block.AbstractBlock
      extended by info.informatica.report.block.DynamicBlock
          extended by info.informatica.report.block.ImageBlock
All Implemented Interfaces:
BinaryBlock, Block
Direct Known Subclasses:
ChartBlock, PdfImageBlock, StaticImageBlock

public class ImageBlock
extends DynamicBlock
implements BinaryBlock

An image.

The following properties are supported:

Author:
amengual at informatica dot info

Constructor Summary
ImageBlock(ImageBlock block)
          Copy constructor
ImageBlock(ReportElement peerElement)
           
 
Method Summary
 String getFilename()
          Gets the image filename.
 int getHeight()
           
 String getPath()
          Gets the image path.
 String getTitle()
           
 int getWidth()
           
 void init()
          Arranges the block for printing.
 void setFilename(String filename)
           
 
Methods inherited from class info.informatica.report.block.DynamicBlock
filterChildReportElement, getNestedBlocks, hasNested
 
Methods inherited from class info.informatica.report.block.AbstractBlock
filterChildXHTMLElement, getCondition, getPeerElement, getReportDataSpec, getTransformParameters, isHidden, printSample, setCondition, setReportDataSpec
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

ImageBlock

public ImageBlock(ReportElement peerElement)

ImageBlock

public ImageBlock(ImageBlock block)
Copy constructor

Method Detail

init

public void init()
          throws info.informatica.doc.DocumentFormatException
Description copied from class: AbstractBlock
Arranges the block for printing. This method must be called before printing.

Note that blocks implementing NativeBlock must also call initRender(), after init().

This method needs to be called only once, typically before generating the data to be able to check for configuration errors.

Specified by:
init in interface Block
Specified by:
init in class AbstractBlock
Throws:
info.informatica.doc.DocumentFormatException - if is unable to initialize due to a syntax or formatting problem.

getPath

public String getPath()
Gets the image path.


getFilename

public String getFilename()
Gets the image filename.


setFilename

public void setFilename(String filename)

getTitle

public String getTitle()

getWidth

public int getWidth()

getHeight

public int getHeight()