Class ImageCssApplier

  • All Implemented Interfaces:
    CssApplier<Image>

    public class ImageCssApplier
    extends java.lang.Object
    implements CssApplier<Image>
    Class that applies the parsed CSS to an Image object.
    • Constructor Detail

      • ImageCssApplier

        public ImageCssApplier()
    • Method Detail

      • apply

        public Image apply​(Image img,
                           Tag tag)
        Applies CSS to an Image. Currently supported: - width - height - borders (color, width) - spacing before and after
        Parameters:
        img - the image
        tag - the tag with the css
        Returns:
        a styled Image