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

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

public class ImageLayout
extends org.eclipse.birt.report.engine.layout.pdf.emitter.Layout


Field Summary
protected static int DEFAULT_HEIGHT
           
protected static int DEFAULT_WIDHT
           
protected  IImageContent image
           
protected  org.eclipse.birt.report.engine.layout.area.impl.ContainerArea root
           
 
Fields inherited from class org.eclipse.birt.report.engine.layout.pdf.emitter.Layout
content, context, logger, parent, specifiedHeight, specifiedWidth
 
Constructor Summary
ImageLayout(org.eclipse.birt.report.engine.layout.pdf.emitter.LayoutEngineContext context, org.eclipse.birt.report.engine.layout.pdf.emitter.ContainerLayout parentContext, IContent content)
           
 
Method Summary
protected  void closeLayout()
           
protected  org.eclipse.birt.report.engine.content.Dimension getIntrinsicDimension(IImageContent content)
          get intrinsic dimension of image in pixels.
protected  org.eclipse.birt.report.engine.content.Dimension getSpecifiedDimension(IImageContent content, int pWidth, boolean scale)
           
protected  void init()
           
protected  void initialize()
           
 void layout()
           
 
Methods inherited from class org.eclipse.birt.report.engine.layout.pdf.emitter.Layout
calculateSpecifiedHeight, calculateSpecifiedWidth, getDimensionValue, getDimensionValue, getDimensionValue, getDimensionValue, getDimensionValue, getParent, getTableLayoutManager, removeMargin, resolveBoxConflict, validateBoxProperty, validateBoxProperty, visitContent
 
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 org.eclipse.birt.report.engine.layout.area.impl.ContainerArea root
Constructor Detail

ImageLayout

public ImageLayout(org.eclipse.birt.report.engine.layout.pdf.emitter.LayoutEngineContext context,
                   org.eclipse.birt.report.engine.layout.pdf.emitter.ContainerLayout parentContext,
                   IContent content)
Method Detail

getIntrinsicDimension

protected org.eclipse.birt.report.engine.content.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 org.eclipse.birt.report.engine.content.Dimension getSpecifiedDimension(IImageContent content,
                                                                                 int pWidth,
                                                                                 boolean scale)

layout

public void layout()
Specified by:
layout in class org.eclipse.birt.report.engine.layout.pdf.emitter.Layout

init

protected void init()

closeLayout

protected void closeLayout()
Specified by:
closeLayout in class org.eclipse.birt.report.engine.layout.pdf.emitter.Layout

initialize

protected void initialize()
Specified by:
initialize in class org.eclipse.birt.report.engine.layout.pdf.emitter.Layout


Copyright © 2008 Actuate Corp. All rights reserved.