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