Class ImageMapUtil

java.lang.Object
ro.sync.ecss.imagemap.ImageMapUtil

@API(type=NOT_EXTENDABLE, src=PRIVATE) public class ImageMapUtil extends Object
Image Map Utilities.
  • Constructor Details

    • ImageMapUtil

      public ImageMapUtil()
  • Method Details

    • setLexicalUnitEvaluatorForTests

      public static void setLexicalUnitEvaluatorForTests(ro.sync.ecss.css.LexicalUnitEvaluator lexicalUnitEvaluatorForTests)
      Not API ! Used only for tests !
      Parameters:
      lexicalUnitEvaluatorForTests - A lexical unit evaluator to be used for computing imposed sizes or scales.
    • convertLUToPixels

      public static int convertLUToPixels(AuthorAccess authorAccess, String lu, int refWidth, int fontOfTheNodeSize)
      Convert lexical units sizes to pixels.
      Parameters:
      authorAccess - The author access.
      lu - The lexical unit.
      refWidth - The reference width (the original width of the item).
      fontOfTheNodeSize - The size of the containing font.
      Returns:
      The computed imposed size.
    • getFontOfNodeSize

      public static int getFontOfNodeSize(AuthorAccess authorAccess, AuthorNode authorNode)
      Get the size of the node's font.
      Parameters:
      authorAccess - The author access.
      authorNode - The author node.
      Returns:
      The size of the node's font.