Package org.lobobrowser.html.style
Class StyleSheetRenderState
- java.lang.Object
-
- org.lobobrowser.html.style.StyleSheetRenderState
-
- All Implemented Interfaces:
RenderState
- Direct Known Subclasses:
BlockRenderState,BodyRenderState,DisplayRenderState,IFrameRenderState,ImageRenderState,TableRenderState
public class StyleSheetRenderState extends java.lang.Object implements RenderState
- Author:
- J. H. S.
-
-
Field Summary
Fields Modifier and Type Field Description protected BorderInfoborderInfoprotected HTMLDocumentImpldocumentprotected HTMLElementImplelementprotected BackgroundInfoiBackgroundInfoprotected static BackgroundInfoINVALID_BACKGROUND_INFOprotected static BorderInfoINVALID_BORDER_INFOprotected static java.awt.ColorINVALID_COLORprotected static HtmlInsetsINVALID_INSETSprotected java.lang.IntegeriWhiteSpaceprotected HtmlInsetsmarginInsetsprotected intoverflowXprotected intoverflowYprotected HtmlInsetspaddingInsetsprotected RenderStateprevRenderState-
Fields inherited from interface org.lobobrowser.html.style.RenderState
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 Summary
Constructors Constructor Description StyleSheetRenderState(HTMLDocumentImpl document)StyleSheetRenderState(RenderState prevRenderState, HTMLElementImpl element)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description intgetAlignXPercent()intgetAlignYPercent()java.awt.ColorgetBackgroundColor()BackgroundInfogetBackgroundInfo()intgetBlankWidth()BorderInfogetBorderInfo()java.awt.ColorgetColor()intgetCount(java.lang.String counter, int nesting)protected AbstractCSS2PropertiesgetCssProperties()protected intgetDefaultDisplay()intgetDisplay()intgetFloat()java.awt.FontgetFont()intgetFontBase()java.awt.FontMetricsgetFontMetrics()HtmlInsetsgetMarginInsets()intgetOverflowX()intgetOverflowY()java.awt.ColorgetOverlayColor()HtmlInsetsgetPaddingInsets()intgetPosition()RenderStategetPreviousRenderState()java.awt.ColorgetTextBackgroundColor()intgetTextDecorationMask()intgetTextIndent(int availSize)java.lang.StringgetTextIndentText()intgetTextTransform()intgetVisibility()intgetWhiteSpace()org.lobobrowser.html.style.WordInfogetWordInfo(java.lang.String word)intincrementCount(java.lang.String counter, int nesting)voidinvalidate()booleanisHighlight()voidrepaint()voidresetCount(java.lang.String counter, int nesting, int value)voidsetHighlight(boolean highlight)java.lang.StringtoString()
-
-
-
Field Detail
-
INVALID_INSETS
protected static final HtmlInsets INVALID_INSETS
-
INVALID_BACKGROUND_INFO
protected static final BackgroundInfo INVALID_BACKGROUND_INFO
-
INVALID_BORDER_INFO
protected static final BorderInfo INVALID_BORDER_INFO
-
INVALID_COLOR
protected static final java.awt.Color INVALID_COLOR
-
element
protected final HTMLElementImpl element
-
document
protected final HTMLDocumentImpl document
-
prevRenderState
protected final RenderState prevRenderState
-
iBackgroundInfo
protected BackgroundInfo iBackgroundInfo
-
iWhiteSpace
protected java.lang.Integer iWhiteSpace
-
marginInsets
protected HtmlInsets marginInsets
-
paddingInsets
protected HtmlInsets paddingInsets
-
overflowX
protected int overflowX
-
overflowY
protected int overflowY
-
borderInfo
protected BorderInfo borderInfo
-
-
Constructor Detail
-
StyleSheetRenderState
public StyleSheetRenderState(RenderState prevRenderState, HTMLElementImpl element)
-
StyleSheetRenderState
public StyleSheetRenderState(HTMLDocumentImpl document)
-
-
Method Detail
-
getDefaultDisplay
protected int getDefaultDisplay()
-
getDisplay
public int getDisplay()
- Specified by:
getDisplayin interfaceRenderState
-
getPreviousRenderState
public RenderState getPreviousRenderState()
- Specified by:
getPreviousRenderStatein interfaceRenderState
-
getFontBase
public int getFontBase()
- Specified by:
getFontBasein interfaceRenderState
-
repaint
public void repaint()
-
getCssProperties
protected final AbstractCSS2Properties getCssProperties()
-
invalidate
public void invalidate()
- Specified by:
invalidatein interfaceRenderState
-
getFont
public java.awt.Font getFont()
- Specified by:
getFontin interfaceRenderState
-
getColor
public java.awt.Color getColor()
- Specified by:
getColorin interfaceRenderState
-
getBackgroundColor
public java.awt.Color getBackgroundColor()
- Specified by:
getBackgroundColorin interfaceRenderState
-
getTextBackgroundColor
public java.awt.Color getTextBackgroundColor()
- Specified by:
getTextBackgroundColorin interfaceRenderState
-
getOverlayColor
public java.awt.Color getOverlayColor()
- Specified by:
getOverlayColorin interfaceRenderState
-
getTextDecorationMask
public int getTextDecorationMask()
- Specified by:
getTextDecorationMaskin interfaceRenderState
-
getTextTransform
public int getTextTransform()
- Specified by:
getTextTransformin interfaceRenderState
-
getFontMetrics
public final java.awt.FontMetrics getFontMetrics()
- Specified by:
getFontMetricsin interfaceRenderState
-
getBlankWidth
public int getBlankWidth()
- Specified by:
getBlankWidthin interfaceRenderState
-
isHighlight
public boolean isHighlight()
- Specified by:
isHighlightin interfaceRenderState- Returns:
- Returns the iHighlight.
-
setHighlight
public void setHighlight(boolean highlight)
- Specified by:
setHighlightin interfaceRenderState- Parameters:
highlight- The iHighlight to set.
-
getWordInfo
public final org.lobobrowser.html.style.WordInfo getWordInfo(java.lang.String word)
- Specified by:
getWordInfoin interfaceRenderState
-
getAlignXPercent
public int getAlignXPercent()
- Specified by:
getAlignXPercentin interfaceRenderState
-
getAlignYPercent
public int getAlignYPercent()
- Specified by:
getAlignYPercentin interfaceRenderState
-
getCount
public int getCount(java.lang.String counter, int nesting)- Specified by:
getCountin interfaceRenderState
-
resetCount
public void resetCount(java.lang.String counter, int nesting, int value)- Specified by:
resetCountin interfaceRenderState
-
incrementCount
public int incrementCount(java.lang.String counter, int nesting)- Specified by:
incrementCountin interfaceRenderState
-
getBackgroundInfo
public BackgroundInfo getBackgroundInfo()
- Specified by:
getBackgroundInfoin interfaceRenderState
-
getTextIndentText
public java.lang.String getTextIndentText()
- Specified by:
getTextIndentTextin interfaceRenderState
-
getTextIndent
public int getTextIndent(int availSize)
- Specified by:
getTextIndentin interfaceRenderState
-
getWhiteSpace
public int getWhiteSpace()
- Specified by:
getWhiteSpacein interfaceRenderState
-
getMarginInsets
public HtmlInsets getMarginInsets()
- Specified by:
getMarginInsetsin interfaceRenderState
-
getPaddingInsets
public HtmlInsets getPaddingInsets()
- Specified by:
getPaddingInsetsin interfaceRenderState
-
getVisibility
public int getVisibility()
- Specified by:
getVisibilityin interfaceRenderState
-
getPosition
public int getPosition()
- Specified by:
getPositionin interfaceRenderState
-
getFloat
public int getFloat()
- Specified by:
getFloatin interfaceRenderState
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
getOverflowX
public int getOverflowX()
- Specified by:
getOverflowXin interfaceRenderState
-
getOverflowY
public int getOverflowY()
- Specified by:
getOverflowYin interfaceRenderState
-
getBorderInfo
public BorderInfo getBorderInfo()
- Specified by:
getBorderInfoin interfaceRenderState
-
-