createFontInfo
public static org.lobobrowser.html.style.FontInfo createFontInfo(String fontSpec,
RenderState parentRenderState)
getColorFromBackground
public static String getColorFromBackground(String background)
getColors
public static Color[] getColors(String colorsSpec)
Gets an array of top-left-bottom-right colors
given a spec.
getFontNumberOldStyle
public static final int getFontNumberOldStyle(String oldHtmlSpec,
RenderState renderState)
Gets a number for 1 to 7.
oldHtmlSpec
- A number from 1 to 7 or +1, etc.
getFontSize
public static final float getFontSize(String spec,
RenderState parentRenderState)
getFontSize
public static final float getFontSize(int fontNumber)
getInsets
public static Insets getInsets(String insetsSpec,
RenderState renderState,
boolean negativeOK)
getListStyle
public static ListStyle getListStyle(String listStyleText)
getListStylePosition
public static int getListStylePosition(String token)
getListStyleType
public static int getListStyleType(String token)
getListStyleTypeDeprecated
public static int getListStyleTypeDeprecated(String token)
getOldSyntaxPixelSize
public static int getOldSyntaxPixelSize(String spec,
int availSize,
int errorValue)
getPixelSize
public static final int getPixelSize(String spec,
RenderState renderState,
int errorValue)
getPixelSize
public static final int getPixelSize(String spec,
RenderState renderState,
int errorValue,
int availSize)
isBorderStyle
public static boolean isBorderStyle(String token)
isLength
public static boolean isLength(String token)
isUrl
public static boolean isUrl(String token)
splitCssValue
public static String[] splitCssValue(String cssValue)
unquoteAndUnescape
public static String unquoteAndUnescape(String text)