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 @Nullable UserAgentCallback _uac
    • _uri

      private final @Nullable String _uri
    • _image

      private @Nullable 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(@Nullable org.eclipse.swt.graphics.Image image, @Nullable UserAgentCallback uac, @Nullable String uri)
    • SWTFSImage

      private SWTFSImage(@Nullable org.eclipse.swt.graphics.Image image, @Nullable UserAgentCallback uac, @Nullable String uri, int width, int height)
    • SWTFSImage

      public SWTFSImage(SWTFSImage image)
  • Method Details

    • getImage

      public @Nullable 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

      @CheckReturnValue public @NonNull FSImage scale(int width, int height)
      Specified by:
      scale in interface FSImage