Package org.lobobrowser.html.style
Class HtmlValues
java.lang.Object
org.lobobrowser.html.style.HtmlValues
-
Field Summary
Fields -
Method Summary
Modifier and TypeMethodDescriptionstatic BorderInfo
getBorderInfo
(CSS2Properties properties, RenderState renderState) static HtmlInsets
getBorderInsets
(Insets borderStyles, CSS2Properties cssProperties, RenderState renderState) static Insets
getBorderStyles
(CSS2Properties properties) static String
getColorFromBackground
(String background) static final int
getFontNumberOldStyle
(String oldHtmlSpec, RenderState renderState) Gets a number for 1 to 7.static final float
getFontSize
(int fontNumber) static final float
getFontSize
(String spec, RenderState parentRenderState) static final String
getFontSizeSpec
(int fontNumber) static Insets
getInsets
(String insetsSpec, RenderState renderState, boolean negativeOK) static ListStyle
getListStyle
(String listStyleText) static int
getListStylePosition
(String token) static int
getListStyleType
(String token) static int
getListStyleTypeDeprecated
(String token) static HtmlInsets
getMarginInsets
(CSS2Properties cssProperties, RenderState renderState) static int
getOldSyntaxPixelSize
(String spec, int availSize, int errorValue) static int
getOldSyntaxPixelSizeSimple
(String spec, int errorValue) static HtmlInsets
getPaddingInsets
(CSS2Properties cssProperties, RenderState renderState) static final int
getPixelSize
(String spec, RenderState renderState, int errorValue) static final int
getPixelSize
(String spec, RenderState renderState, int errorValue, int availSize) static URL
getURIFromStyleValue
(String fullURLStyleValue) static boolean
isBackgroundPosition
(String token) static boolean
isBackgroundRepeat
(String repeat) static boolean
isBorderStyle
(String token) static boolean
isFontStyle
(String token) static boolean
isFontVariant
(String token) static boolean
isFontWeight
(String token) static boolean
static boolean
static void
populateBorderInsets
(BorderInfo binfo, CSS2Properties cssProperties, RenderState renderState) PopulatesBorderInfo.insets
.static String
quoteAndEscape
(String text) static String[]
splitCssValue
(String cssValue) static String
unquoteAndUnescape
(String text)
-
Field Details
-
SYSTEM_FONTS
-
DEFAULT_FONT_SIZE
public static final float DEFAULT_FONT_SIZE- See Also:
-
DEFAULT_FONT_SIZE_INT
public static final int DEFAULT_FONT_SIZE_INT- See Also:
-
DEFAULT_FONT_SIZE_BOX
-
DEFAULT_BORDER_WIDTH
public static final int DEFAULT_BORDER_WIDTH- See Also:
-
BORDER_STYLE_NONE
public static final int BORDER_STYLE_NONE- See Also:
-
BORDER_STYLE_HIDDEN
public static final int BORDER_STYLE_HIDDEN- See Also:
-
BORDER_STYLE_DOTTED
public static final int BORDER_STYLE_DOTTED- See Also:
-
BORDER_STYLE_DASHED
public static final int BORDER_STYLE_DASHED- See Also:
-
BORDER_STYLE_SOLID
public static final int BORDER_STYLE_SOLID- See Also:
-
BORDER_STYLE_DOUBLE
public static final int BORDER_STYLE_DOUBLE- See Also:
-
BORDER_STYLE_GROOVE
public static final int BORDER_STYLE_GROOVE- See Also:
-
BORDER_STYLE_RIDGE
public static final int BORDER_STYLE_RIDGE- See Also:
-
BORDER_STYLE_INSET
public static final int BORDER_STYLE_INSET- See Also:
-
BORDER_STYLE_OUTSET
public static final int BORDER_STYLE_OUTSET- See Also:
-
-
Method Details
-
isBorderStyle
-
getMarginInsets
-
getPaddingInsets
-
getBorderInsets
public static HtmlInsets getBorderInsets(Insets borderStyles, CSS2Properties cssProperties, RenderState renderState) -
populateBorderInsets
public static void populateBorderInsets(BorderInfo binfo, CSS2Properties cssProperties, RenderState renderState) PopulatesBorderInfo.insets
.- Parameters:
binfo
- A BorderInfo with its styles already populated.cssProperties
- The CSS properties object.renderState
- The current render state.
-
getInsets
-
getFontNumberOldStyle
Gets a number for 1 to 7.- Parameters:
oldHtmlSpec
- A number from 1 to 7 or +1, etc.
-
getFontSize
public static final float getFontSize(int fontNumber) -
getFontSizeSpec
-
getFontSize
-
getPixelSize
public static final int getPixelSize(String spec, RenderState renderState, int errorValue, int availSize) -
getPixelSize
-
getOldSyntaxPixelSize
-
getOldSyntaxPixelSizeSimple
-
getURIFromStyleValue
-
unquoteAndUnescape
-
quoteAndEscape
-
getColorFromBackground
-
isLength
-
splitCssValue
-
isUrl
-
getListStyleType
-
getListStyleTypeDeprecated
-
getListStylePosition
-
getListStyle
-
isFontStyle
-
isFontVariant
-
isFontWeight
-
getBorderInfo
-
getBorderStyles
-
isBackgroundRepeat
-
isBackgroundPosition
-