Class ImageReplacedElement

java.lang.Object
org.xhtmlrenderer.swt.ImageReplacedElement
All Implemented Interfaces:
org.xhtmlrenderer.extend.ReplacedElement

public class ImageReplacedElement extends Object implements org.xhtmlrenderer.extend.ReplacedElement
ReplacedElement for <img> tags.
Author:
Vianney le Clément
  • Constructor Details

    • ImageReplacedElement

      public ImageReplacedElement(SWTFSImage img, int targetWidth, int targetHeight)
  • Method Details

    • getImage

      public SWTFSImage getImage()
    • detach

      public void detach(org.xhtmlrenderer.layout.LayoutContext c)
      Specified by:
      detach in interface org.xhtmlrenderer.extend.ReplacedElement
    • getIntrinsicHeight

      public int getIntrinsicHeight()
      Specified by:
      getIntrinsicHeight in interface org.xhtmlrenderer.extend.ReplacedElement
    • getIntrinsicWidth

      public int getIntrinsicWidth()
      Specified by:
      getIntrinsicWidth in interface org.xhtmlrenderer.extend.ReplacedElement
    • getLocation

      public Point getLocation()
      Specified by:
      getLocation in interface org.xhtmlrenderer.extend.ReplacedElement
    • setLocation

      public void setLocation(int x, int y)
      Specified by:
      setLocation in interface org.xhtmlrenderer.extend.ReplacedElement
    • isRequiresInteractivePaint

      public boolean isRequiresInteractivePaint()
      Specified by:
      isRequiresInteractivePaint in interface org.xhtmlrenderer.extend.ReplacedElement
    • getBaseline

      public int getBaseline()
      Specified by:
      getBaseline in interface org.xhtmlrenderer.extend.ReplacedElement
    • hasBaseline

      public boolean hasBaseline()
      Specified by:
      hasBaseline in interface org.xhtmlrenderer.extend.ReplacedElement