public class StyleSheetRenderState extends java.lang.Object implements RenderState
| Modifier and Type | Field and Description |
|---|---|
protected BorderInfo |
borderInfo |
protected HTMLDocumentImpl |
document |
protected HTMLElementImpl |
element |
protected BackgroundInfo |
iBackgroundInfo |
protected static BackgroundInfo |
INVALID_BACKGROUND_INFO |
protected static BorderInfo |
INVALID_BORDER_INFO |
protected static java.awt.Color |
INVALID_COLOR |
protected static HtmlInsets |
INVALID_INSETS |
protected java.lang.Integer |
iWhiteSpace |
protected HtmlInsets |
marginInsets |
protected int |
overflowX |
protected int |
overflowY |
protected HtmlInsets |
paddingInsets |
protected RenderState |
prevRenderState |
DISPLAY_BLOCK, DISPLAY_INLINE, DISPLAY_LIST_ITEM, DISPLAY_NONE, DISPLAY_TABLE, DISPLAY_TABLE_CELL, DISPLAY_TABLE_ROW, FLOAT_LEFT, FLOAT_NONE, FLOAT_RIGHT, MASK_TEXTDECORATION_BLINK, MASK_TEXTDECORATION_LINE_THROUGH, MASK_TEXTDECORATION_OVERLINE, MASK_TEXTDECORATION_UNDERLINE, OVERFLOW_AUTO, OVERFLOW_HIDDEN, OVERFLOW_NONE, OVERFLOW_SCROLL, OVERFLOW_VISIBLE, POSITION_ABSOLUTE, POSITION_FIXED, POSITION_RELATIVE, POSITION_STATIC, TEXTTRANSFORM_CAPITALIZE, TEXTTRANSFORM_LOWERCASE, TEXTTRANSFORM_NONE, TEXTTRANSFORM_UPPERCASE, VISIBILITY_COLLAPSE, VISIBILITY_HIDDEN, VISIBILITY_VISIBLE, WS_NORMAL, WS_NOWRAP, WS_PRE| Constructor and Description |
|---|
StyleSheetRenderState(HTMLDocumentImpl document) |
StyleSheetRenderState(RenderState prevRenderState,
HTMLElementImpl element) |
| Modifier and Type | Method and Description |
|---|---|
int |
getAlignXPercent() |
int |
getAlignYPercent() |
java.awt.Color |
getBackgroundColor() |
BackgroundInfo |
getBackgroundInfo() |
int |
getBlankWidth() |
BorderInfo |
getBorderInfo() |
java.awt.Color |
getColor() |
int |
getCount(java.lang.String counter,
int nesting) |
protected AbstractCSS2Properties |
getCssProperties() |
protected int |
getDefaultDisplay() |
int |
getDisplay() |
int |
getFloat() |
java.awt.Font |
getFont() |
int |
getFontBase() |
java.awt.FontMetrics |
getFontMetrics() |
HtmlInsets |
getMarginInsets() |
int |
getOverflowX() |
int |
getOverflowY() |
java.awt.Color |
getOverlayColor() |
HtmlInsets |
getPaddingInsets() |
int |
getPosition() |
RenderState |
getPreviousRenderState() |
java.awt.Color |
getTextBackgroundColor() |
int |
getTextDecorationMask() |
int |
getTextIndent(int availSize) |
java.lang.String |
getTextIndentText() |
int |
getTextTransform() |
int |
getVisibility() |
int |
getWhiteSpace() |
org.lobobrowser.html.style.WordInfo |
getWordInfo(java.lang.String word) |
int |
incrementCount(java.lang.String counter,
int nesting) |
void |
invalidate() |
boolean |
isHighlight() |
void |
repaint() |
void |
resetCount(java.lang.String counter,
int nesting,
int value) |
void |
setHighlight(boolean highlight) |
java.lang.String |
toString() |
protected static final HtmlInsets INVALID_INSETS
protected static final BackgroundInfo INVALID_BACKGROUND_INFO
protected static final BorderInfo INVALID_BORDER_INFO
protected static final java.awt.Color INVALID_COLOR
protected final HTMLElementImpl element
protected final HTMLDocumentImpl document
protected final RenderState prevRenderState
protected BackgroundInfo iBackgroundInfo
protected java.lang.Integer iWhiteSpace
protected HtmlInsets marginInsets
protected HtmlInsets paddingInsets
protected int overflowX
protected int overflowY
protected BorderInfo borderInfo
public StyleSheetRenderState(RenderState prevRenderState, HTMLElementImpl element)
public StyleSheetRenderState(HTMLDocumentImpl document)
protected int getDefaultDisplay()
public int getDisplay()
getDisplay in interface RenderStatepublic RenderState getPreviousRenderState()
getPreviousRenderState in interface RenderStatepublic int getFontBase()
getFontBase in interface RenderStatepublic void repaint()
protected final AbstractCSS2Properties getCssProperties()
public void invalidate()
invalidate in interface RenderStatepublic java.awt.Font getFont()
getFont in interface RenderStatepublic java.awt.Color getColor()
getColor in interface RenderStatepublic java.awt.Color getBackgroundColor()
getBackgroundColor in interface RenderStatepublic java.awt.Color getTextBackgroundColor()
getTextBackgroundColor in interface RenderStatepublic java.awt.Color getOverlayColor()
getOverlayColor in interface RenderStatepublic int getTextDecorationMask()
getTextDecorationMask in interface RenderStatepublic int getTextTransform()
getTextTransform in interface RenderStatepublic final java.awt.FontMetrics getFontMetrics()
getFontMetrics in interface RenderStatepublic int getBlankWidth()
getBlankWidth in interface RenderStatepublic boolean isHighlight()
isHighlight in interface RenderStatepublic void setHighlight(boolean highlight)
setHighlight in interface RenderStatehighlight - The iHighlight to set.public final org.lobobrowser.html.style.WordInfo getWordInfo(java.lang.String word)
getWordInfo in interface RenderStatepublic int getAlignXPercent()
getAlignXPercent in interface RenderStatepublic int getAlignYPercent()
getAlignYPercent in interface RenderStatepublic int getCount(java.lang.String counter,
int nesting)
getCount in interface RenderStatepublic void resetCount(java.lang.String counter,
int nesting,
int value)
resetCount in interface RenderStatepublic int incrementCount(java.lang.String counter,
int nesting)
incrementCount in interface RenderStatepublic BackgroundInfo getBackgroundInfo()
getBackgroundInfo in interface RenderStatepublic java.lang.String getTextIndentText()
getTextIndentText in interface RenderStatepublic int getTextIndent(int availSize)
getTextIndent in interface RenderStatepublic int getWhiteSpace()
getWhiteSpace in interface RenderStatepublic HtmlInsets getMarginInsets()
getMarginInsets in interface RenderStatepublic HtmlInsets getPaddingInsets()
getPaddingInsets in interface RenderStatepublic int getVisibility()
getVisibility in interface RenderStatepublic int getPosition()
getPosition in interface RenderStatepublic int getFloat()
getFloat in interface RenderStatepublic java.lang.String toString()
toString in class java.lang.Objectpublic int getOverflowX()
getOverflowX in interface RenderStatepublic int getOverflowY()
getOverflowY in interface RenderStatepublic BorderInfo getBorderInfo()
getBorderInfo in interface RenderState