Interface WebappImageMapSupport

All Known Implementing Classes:
XHTMLWebappImageMapSupport

@API(type=EXTENDABLE, src=PUBLIC) public interface WebappImageMapSupport
Represents an instance of an image map embedded in a document.
Since:
25.0
  • Method Details

    • getAreas

      List<WebappAreaView> getAreas(int fontSize)
      Parameters:
      fontSize - The font size of the image.
      Returns:
      The list of area views in the order that needs to be stacked vertically.
    • getImageSize

      Optional<Rectangle> getImageSize(int fontSize)
      The image size, as specified by XML attributes. If the image size is not specified by XML attributes, the editor will determine it based on the natural size of the image file.
      Parameters:
      fontSize - The font size of the image map.
      Returns:
      A rectangle centered in origin with width and height equal to those of the image, or empty.