org.eclipse.birt.report.engine.layout.pdf.emitter
Class ImageLayout

java.lang.Object
  extended by Layout
      extended by org.eclipse.birt.report.engine.layout.pdf.emitter.ImageLayout

public class ImageLayout
extends Layout


Field Summary
protected static int DEFAULT_HEIGHT
           
protected static int DEFAULT_WIDHT
           
protected  IImageContent image
           
protected  ContainerArea root
           
 
Constructor Summary
ImageLayout(LayoutEngineContext context, ContainerLayout parentContext, IContent content)
           
 
Method Summary
protected  void closeLayout()
           
protected  Dimension getIntrinsicDimension(IImageContent content)
          get intrinsic dimension of image in pixels.
protected  Dimension getSpecifiedDimension(IImageContent content, int pWidth, boolean scale)
           
protected  void init()
           
protected  void initialize()
           
 void layout()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Field Detail

DEFAULT_WIDHT

protected static final int DEFAULT_WIDHT
See Also:
Constant Field Values

DEFAULT_HEIGHT

protected static final int DEFAULT_HEIGHT
See Also:
Constant Field Values

image

protected IImageContent image

root

protected ContainerArea root
Constructor Detail

ImageLayout

public ImageLayout(LayoutEngineContext context,
                   ContainerLayout parentContext,
                   IContent content)
Method Detail

getIntrinsicDimension

protected Dimension getIntrinsicDimension(IImageContent content)
                                   throws com.lowagie.text.BadElementException,
                                          java.net.MalformedURLException,
                                          java.io.IOException
get intrinsic dimension of image in pixels. Now only support png, bmp, jpg, gif.

Parameters:
in -
Returns:
Throws:
java.io.IOException
java.net.MalformedURLException
com.lowagie.text.BadElementException

getSpecifiedDimension

protected Dimension getSpecifiedDimension(IImageContent content,
                                          int pWidth,
                                          boolean scale)

layout

public void layout()

init

protected void init()

closeLayout

protected void closeLayout()

initialize

protected void initialize()


Copyright © 2008 Actuate Corp. All rights reserved.