@API(type=NOT_EXTENDABLE,
src=PRIVATE)
public class ImageMapUtil
extends java.lang.Object
Constructor and Description |
---|
ImageMapUtil() |
Modifier and Type | Method and Description |
---|---|
static int |
convertLUToPixels(AuthorAccess authorAccess,
java.lang.String lu,
int refWidth,
int fontOfTheNodeSize)
Convert lexical units sizes to pixels.
|
static int |
getFontOfNodeSize(AuthorAccess authorAccess,
AuthorNode authorNode)
Get the size of the node's font.
|
static void |
setLexicalUnitEvaluatorForTests(ro.sync.ecss.css.LexicalUnitEvaluator lexicalUnitEvaluatorForTests)
Not API ! Used only for tests !
|
public static void setLexicalUnitEvaluatorForTests(ro.sync.ecss.css.LexicalUnitEvaluator lexicalUnitEvaluatorForTests)
lexicalUnitEvaluatorForTests
- A lexical unit evaluator to be used for computing imposed
sizes or scales.public static int convertLUToPixels(AuthorAccess authorAccess, java.lang.String lu, int refWidth, int fontOfTheNodeSize)
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.public static int getFontOfNodeSize(AuthorAccess authorAccess, AuthorNode authorNode)
authorAccess
- The author access.authorNode
- The author node.© Copyright SyncRO Soft SRL 2002 - 2016. All rights reserved.