Class PdfImageBox

All Implemented Interfaces:
Serializable, overit.geocall.marks.MethodExposer, overit.geocall.marks.NameExposer, Identified

@Component public class PdfImageBox extends PdfBox
This class extends PdfBox and implements the management of an image box inside a pdf report.
See Also:
  • Field Details

    • _res

      protected String _res
    • _type

      protected String _type
    • _requestedH

      protected float _requestedH
    • _requestedW

      protected float _requestedW
    • _image

      protected com.lowagie.text.Image _image
    • _awtImage

      protected Image _awtImage
    • _imageCache

      protected static HashMap _imageCache
  • Constructor Details

    • PdfImageBox

      public PdfImageBox()
  • Method Details

    • getImage

      protected static com.lowagie.text.Image getImage(String res)
    • setW

      public void setW(String s)
      Description copied from class: PdfBox
      Sets the box's width.
      Overrides:
      setW in class PdfBox
      Parameters:
      s - The width to set.
    • setH

      public void setH(String s)
      Description copied from class: PdfBox
      Sets the box's height.
      Overrides:
      setH in class PdfBox
      Parameters:
      s - The height to set.
    • loadImage

      protected void loadImage()
    • drawInsideFront

      public void drawInsideFront(Report r, float x, float y, float w, float h)
      Draw the image insede the box.
      Overrides:
      drawInsideFront in class PdfBox
      Parameters:
      r - The report where draw the image box.
      x - The x coordinate from which start draw.
      y - The y coordinate from which start draw.
      w - The width of the box.
      h - The height of the box.
    • setWMF

      public void setWMF(String res)
      Sets the image file with fw type.
      Parameters:
      res - The resource image to set.
    • setFILEWMF

      public void setFILEWMF(String res)
      Sets the image file with rw type.
      Parameters:
      res - The resource image to set.
    • setIMAGE

      public void setIMAGE(String res)
      Sets the image file with ri type.
      Parameters:
      res - The resource image to set.
    • setFILEIMAGE

      public void setFILEIMAGE(String res)
      Sets the image file with fi type.
      Parameters:
      res - The resource image to set.
    • getIMAGE

      public com.lowagie.text.Image getIMAGE()
      Gets the Image to draw.
      Returns:
      The Image to draw.
    • setImage

      public void setImage(String name, Image image)
      Sets the awt java.awt.image type.
      Parameters:
      name - The image's name.
      image - The image to set.