Class Image.Factory

java.lang.Object
de.espirit.firstspirit.client.plugin.report.Image.Factory
Enclosing interface:
Image<T>

public static class Image.Factory extends Object
Factory for creation of different Image types.
Since:
5.1.19
  • Constructor Details

    • Factory

      public Factory()
  • Method Details

    • fromUrl

      public static Image<String> fromUrl(String url)
      Creates an Image object based on an url pointing to an image. The image URL may be absolute. If the URL is not absolute, it will be considered relative to the project-specific WebClient web application's directory and therefor will not be supported in JavaClient.
      Parameters:
      url - image url
      Returns:
      newly created Image object
      Since:
      5.1.19
    • fromIcon

      public static Image<Icon> fromIcon(Icon icon)
      Creates an Image object based on an swing icon.
      Parameters:
      icon - image icon
      Returns:
      newly created Image object
      Since:
      5.1.19