org.lobobrowser.html.style
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 RenderState
public RenderState getPreviousRenderState()
getPreviousRenderState
in interface RenderState
public int getFontBase()
getFontBase
in interface RenderState
public void repaint()
protected final AbstractCSS2Properties getCssProperties()
public void invalidate()
invalidate
in interface RenderState
public java.awt.Font getFont()
getFont
in interface RenderState
public java.awt.Color getColor()
getColor
in interface RenderState
public java.awt.Color getBackgroundColor()
getBackgroundColor
in interface RenderState
public java.awt.Color getTextBackgroundColor()
getTextBackgroundColor
in interface RenderState
public java.awt.Color getOverlayColor()
getOverlayColor
in interface RenderState
public int getTextDecorationMask()
getTextDecorationMask
in interface RenderState
public int getTextTransform()
getTextTransform
in interface RenderState
public final java.awt.FontMetrics getFontMetrics()
getFontMetrics
in interface RenderState
public int getBlankWidth()
getBlankWidth
in interface RenderState
public boolean isHighlight()
isHighlight
in interface RenderState
public void setHighlight(boolean highlight)
setHighlight
in interface RenderState
highlight
- The iHighlight to set.public final org.lobobrowser.html.style.WordInfo getWordInfo(java.lang.String word)
getWordInfo
in interface RenderState
public int getAlignXPercent()
getAlignXPercent
in interface RenderState
public int getAlignYPercent()
getAlignYPercent
in interface RenderState
public int getCount(java.lang.String counter, int nesting)
getCount
in interface RenderState
public void resetCount(java.lang.String counter, int nesting, int value)
resetCount
in interface RenderState
public int incrementCount(java.lang.String counter, int nesting)
incrementCount
in interface RenderState
public BackgroundInfo getBackgroundInfo()
getBackgroundInfo
in interface RenderState
public java.lang.String getTextIndentText()
getTextIndentText
in interface RenderState
public int getTextIndent(int availSize)
getTextIndent
in interface RenderState
public int getWhiteSpace()
getWhiteSpace
in interface RenderState
public HtmlInsets getMarginInsets()
getMarginInsets
in interface RenderState
public HtmlInsets getPaddingInsets()
getPaddingInsets
in interface RenderState
public int getVisibility()
getVisibility
in interface RenderState
public int getPosition()
getPosition
in interface RenderState
public int getFloat()
getFloat
in interface RenderState
public java.lang.String toString()
toString
in class java.lang.Object
public int getOverflowX()
getOverflowX
in interface RenderState
public int getOverflowY()
getOverflowY
in interface RenderState
public BorderInfo getBorderInfo()
getBorderInfo
in interface RenderState