org.apache.poi.hwmf.usermodel
Class HwmfPicture

java.lang.Object
  extended by org.apache.poi.hwmf.usermodel.HwmfPicture

public class HwmfPicture
extends java.lang.Object


Constructor Summary
HwmfPicture(java.io.InputStream inputStream)
           
 
Method Summary
 void draw(java.awt.Graphics2D ctx)
           
 void draw(java.awt.Graphics2D ctx, java.awt.geom.Rectangle2D graphicsBounds)
           
 java.awt.geom.Rectangle2D getBounds()
          Returns the bounding box in device-independent units.
 HwmfHeader getHeader()
           
 HwmfPlaceableHeader getPlaceableHeader()
           
 java.util.List<HwmfRecord> getRecords()
           
 java.awt.Dimension getSize()
          Return the image size in points
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

HwmfPicture

public HwmfPicture(java.io.InputStream inputStream)
            throws java.io.IOException
Throws:
java.io.IOException
Method Detail

getRecords

public java.util.List<HwmfRecord> getRecords()

draw

public void draw(java.awt.Graphics2D ctx)

draw

public void draw(java.awt.Graphics2D ctx,
                 java.awt.geom.Rectangle2D graphicsBounds)

getBounds

public java.awt.geom.Rectangle2D getBounds()
Returns the bounding box in device-independent units. Usually this is taken from the placeable header.

Returns:
the bounding box

getPlaceableHeader

public HwmfPlaceableHeader getPlaceableHeader()

getHeader

public HwmfHeader getHeader()

getSize

public java.awt.Dimension getSize()
Return the image size in points

Returns:
the image size in points