Class SWTFSImage

java.lang.Object
org.xhtmlrenderer.swt.SWTFSImage
All Implemented Interfaces:
FSImage

public class SWTFSImage extends Object implements FSImage
  • Field Details

    • _uac

      private final UserAgentCallback _uac
    • _uri

      private final String _uri
    • _image

      private org.eclipse.swt.graphics.Image _image
    • _width

      private int _width
    • _height

      private int _height
  • Constructor Details

    • SWTFSImage

      public SWTFSImage()
      Create a "null" image.
    • SWTFSImage

      public SWTFSImage(org.eclipse.swt.graphics.Image image, UserAgentCallback uac, String uri)
    • SWTFSImage

      public SWTFSImage(SWTFSImage image)
  • Method Details

    • getImage

      public org.eclipse.swt.graphics.Image getImage()
      Get the SWT image. Reload it from the UAC if it was disposed.
    • getHeight

      public int getHeight()
      Specified by:
      getHeight in interface FSImage
    • setHeight

      public void setHeight(int height)
    • getWidth

      public int getWidth()
      Specified by:
      getWidth in interface FSImage
    • setWidth

      public void setWidth(int width)
    • scale

      public void scale(int width, int height)
      Specified by:
      scale in interface FSImage