org.lobobrowser.html.style
Class HtmlValues
java.lang.Object
org.lobobrowser.html.style.HtmlValues
public class HtmlValues
- extends java.lang.Object
Method Summary |
static java.awt.Insets |
getBorderInsets(java.awt.Insets borderStyles,
CSS2Properties cssProperties,
RenderState renderState)
|
static java.awt.Insets |
getBorderStyles(CSS2Properties properties)
|
static java.lang.String |
getColorFromBackground(java.lang.String background)
|
static int |
getFontNumberOldStyle(java.lang.String oldHtmlSpec,
RenderState renderState)
Gets a number for 1 to 7. |
static float |
getFontSize(int fontNumber)
|
static float |
getFontSize(java.lang.String spec,
RenderState parentRenderState)
|
static java.awt.Insets |
getInsets(java.lang.String insetsSpec,
RenderState renderState,
boolean negativeOK)
|
static ListStyle |
getListStyle(java.lang.String listStyleText)
|
static int |
getListStylePosition(java.lang.String token)
|
static int |
getListStyleType(java.lang.String token)
|
static int |
getListStyleTypeDeprecated(java.lang.String token)
|
static java.awt.Insets |
getMarginInsets(CSS2Properties cssProperties,
RenderState renderState)
|
static int |
getOldSyntaxPixelSize(java.lang.String spec,
int availSize,
int errorValue)
|
static java.awt.Insets |
getPaddingInsets(CSS2Properties cssProperties,
RenderState renderState)
|
static int |
getPixelSize(java.lang.String spec,
RenderState renderState,
int errorValue)
|
static int |
getPixelSize(java.lang.String spec,
RenderState renderState,
int errorValue,
int availSize)
|
static java.net.URL |
getURIFromStyleValue(java.lang.String fullURLStyleValue)
|
static boolean |
isBackgroundPosition(java.lang.String token)
|
static boolean |
isBackgroundRepeat(java.lang.String repeat)
|
static boolean |
isBorderStyle(java.lang.String token)
|
static boolean |
isFontStyle(java.lang.String token)
|
static boolean |
isFontVariant(java.lang.String token)
|
static boolean |
isFontWeight(java.lang.String token)
|
static boolean |
isLength(java.lang.String token)
|
static boolean |
isUrl(java.lang.String token)
|
static java.lang.String |
quoteAndEscape(java.lang.String text)
|
static java.lang.String[] |
splitCssValue(java.lang.String cssValue)
|
static java.lang.String |
unquoteAndUnescape(java.lang.String text)
|
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
SYSTEM_FONTS
public static final java.util.Map SYSTEM_FONTS
DEFAULT_FONT_SIZE
public static final float DEFAULT_FONT_SIZE
- See Also:
- Constant Field Values
DEFAULT_FONT_SIZE_INT
public static final int DEFAULT_FONT_SIZE_INT
- See Also:
- Constant Field Values
DEFAULT_FONT_SIZE_BOX
public static final java.lang.Float DEFAULT_FONT_SIZE_BOX
DEFAULT_BORDER_WIDTH
public static final int DEFAULT_BORDER_WIDTH
- See Also:
- Constant Field Values
BORDER_STYLE_NONE
public static final int BORDER_STYLE_NONE
- See Also:
- Constant Field Values
BORDER_STYLE_HIDDEN
public static final int BORDER_STYLE_HIDDEN
- See Also:
- Constant Field Values
BORDER_STYLE_DOTTED
public static final int BORDER_STYLE_DOTTED
- See Also:
- Constant Field Values
BORDER_STYLE_DASHED
public static final int BORDER_STYLE_DASHED
- See Also:
- Constant Field Values
BORDER_STYLE_SOLID
public static final int BORDER_STYLE_SOLID
- See Also:
- Constant Field Values
BORDER_STYLE_DOUBLE
public static final int BORDER_STYLE_DOUBLE
- See Also:
- Constant Field Values
BORDER_STYLE_GROOVE
public static final int BORDER_STYLE_GROOVE
- See Also:
- Constant Field Values
BORDER_STYLE_RIDGE
public static final int BORDER_STYLE_RIDGE
- See Also:
- Constant Field Values
BORDER_STYLE_INSET
public static final int BORDER_STYLE_INSET
- See Also:
- Constant Field Values
BORDER_STYLE_OUTSET
public static final int BORDER_STYLE_OUTSET
- See Also:
- Constant Field Values
isBorderStyle
public static boolean isBorderStyle(java.lang.String token)
getMarginInsets
public static java.awt.Insets getMarginInsets(CSS2Properties cssProperties,
RenderState renderState)
getPaddingInsets
public static java.awt.Insets getPaddingInsets(CSS2Properties cssProperties,
RenderState renderState)
getBorderInsets
public static java.awt.Insets getBorderInsets(java.awt.Insets borderStyles,
CSS2Properties cssProperties,
RenderState renderState)
getInsets
public static java.awt.Insets getInsets(java.lang.String insetsSpec,
RenderState renderState,
boolean negativeOK)
getFontNumberOldStyle
public static final int getFontNumberOldStyle(java.lang.String oldHtmlSpec,
RenderState renderState)
- 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)
getFontSize
public static final float getFontSize(java.lang.String spec,
RenderState parentRenderState)
getPixelSize
public static final int getPixelSize(java.lang.String spec,
RenderState renderState,
int errorValue,
int availSize)
getPixelSize
public static final int getPixelSize(java.lang.String spec,
RenderState renderState,
int errorValue)
getOldSyntaxPixelSize
public static int getOldSyntaxPixelSize(java.lang.String spec,
int availSize,
int errorValue)
getURIFromStyleValue
public static java.net.URL getURIFromStyleValue(java.lang.String fullURLStyleValue)
unquoteAndUnescape
public static java.lang.String unquoteAndUnescape(java.lang.String text)
quoteAndEscape
public static java.lang.String quoteAndEscape(java.lang.String text)
getColorFromBackground
public static java.lang.String getColorFromBackground(java.lang.String background)
isLength
public static boolean isLength(java.lang.String token)
splitCssValue
public static java.lang.String[] splitCssValue(java.lang.String cssValue)
isUrl
public static boolean isUrl(java.lang.String token)
getListStyleType
public static int getListStyleType(java.lang.String token)
getListStyleTypeDeprecated
public static int getListStyleTypeDeprecated(java.lang.String token)
getListStylePosition
public static int getListStylePosition(java.lang.String token)
getListStyle
public static ListStyle getListStyle(java.lang.String listStyleText)
isFontStyle
public static boolean isFontStyle(java.lang.String token)
isFontVariant
public static boolean isFontVariant(java.lang.String token)
isFontWeight
public static boolean isFontWeight(java.lang.String token)
getBorderStyles
public static java.awt.Insets getBorderStyles(CSS2Properties properties)
isBackgroundRepeat
public static boolean isBackgroundRepeat(java.lang.String repeat)
isBackgroundPosition
public static boolean isBackgroundPosition(java.lang.String token)