Class StyleSheetRenderState
- All Implemented Interfaces:
RenderState
- Direct Known Subclasses:
BlockRenderState,BodyRenderState,DisplayRenderState,IFrameRenderState,ImageRenderState,LinkRenderState,TableRenderState
StyleSheetRenderState class.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BorderInfoprotected final HTMLDocumentImplprotected final HTMLElementImplprotected BackgroundInfoprotected static final BackgroundInfoConstant INVALID_BACKGROUND_INFOprotected static final BorderInfoConstant INVALID_BORDER_INFOprotected static final ColorConstant INVALID_COLORprotected static final HtmlInsetsConstant INVALID_INSETSprotected Integerprotected HtmlInsetsprotected intprotected intprotected HtmlInsetsprotected final RenderStateFields inherited from interface org.loboevolution.html.renderstate.RenderState
DISPLAY_BLOCK, DISPLAY_FLEX_BOX, DISPLAY_FLEX_CHILD, DISPLAY_INLINE, DISPLAY_INLINE_BLOCK, DISPLAY_INLINE_TABLE, DISPLAY_LIST_ITEM, DISPLAY_NONE, DISPLAY_TABLE, DISPLAY_TABLE_CAPTION, DISPLAY_TABLE_CELL, DISPLAY_TABLE_COLUMN, DISPLAY_TABLE_COLUMN_GROUP, DISPLAY_TABLE_FOOTER_GROUP, DISPLAY_TABLE_HEADER_GROUP, DISPLAY_TABLE_ROW, DISPLAY_TABLE_ROW_GROUP, FLOAT_LEFT, FLOAT_NONE, FLOAT_RIGHT, MASK_TEXTDECORATION_BLINK, MASK_TEXTDECORATION_LINE_THROUGH, MASK_TEXTDECORATION_NONE, 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
ConstructorsConstructorDescriptionStyleSheetRenderState(HTMLDocumentImpl document) Constructor for StyleSheetRenderState.StyleSheetRenderState(RenderState prevRenderState, HTMLElementImpl element) Constructor for StyleSheetRenderState. -
Method Summary
Modifier and TypeMethodDescriptiongetAlignContent.getAlignItems.intgetAlignXPercent.intgetAlignYPercent.getBackgroundColor.getBackgroundImageInfo(int width, int height) getBackgroundImageInfo.getBackgroundInfo.intgetBlankWidth.getBorderInfo.getBottom.getBoxSizing.intgetClear()getClear.getColor()getColor.intgetCount.protected final CSSStyleDeclarationgetCssProperties.getCursor.intgetDefaultDisplay.intgetDisplay.getFlexDirection.getFlexFlow.getFlexWrap.intgetFloat()getFloat.getFont()getFont.intgetFontBase.final FontMetricsgetFontMetrics.getJustifyContent.getLeft()getLeft.getMarginInsets.intgetOverflowX.intgetOverflowY.getOverlayColor.getPaddingInsets.intgetPosition.getPreviousRenderState.getRight()getRight.getTextBackgroundColor.intgetTextDecorationMask.intgetTextIndent(int availSize) getTextIndent.getTextIndentText.intgetTextTransform.getTop()getTop.getVerticalAlign.intgetVisibility.intgetWhiteSpace.final WordInfogetWordInfo(String word) getWordInfo.intincrementCount(String counter, int nesting) incrementCount.voidinvalidate.booleanisHighlight.voidresetCount(String counter, int nesting, int value) resetCount.voidsetCursor.voidsetHighlight(boolean highlight) setHighlight.toString()
-
Field Details
-
INVALID_BACKGROUND_INFO
Constant INVALID_BACKGROUND_INFO -
INVALID_BORDER_INFO
Constant INVALID_BORDER_INFO -
INVALID_COLOR
Constant INVALID_COLOR -
INVALID_INSETS
Constant INVALID_INSETS -
paddingInsets
-
marginInsets
-
document
-
element
-
borderInfo
-
iBackgroundInfo
-
iWhiteSpace
-
overflowX
protected int overflowX -
overflowY
protected int overflowY -
prevRenderState
-
-
Constructor Details
-
StyleSheetRenderState
Constructor for StyleSheetRenderState.
- Parameters:
document- aHTMLDocumentImplobject.
-
StyleSheetRenderState
Constructor for StyleSheetRenderState.
- Parameters:
prevRenderState- aRenderStateobject.element- aHTMLElementImplobject.
-
-
Method Details
-
getAlignXPercent
public int getAlignXPercent()getAlignXPercent.
- Specified by:
getAlignXPercentin interfaceRenderState- Returns:
- a
Integerobject.
-
getAlignYPercent
public int getAlignYPercent()getAlignYPercent.
- Specified by:
getAlignYPercentin interfaceRenderState- Returns:
- a
Integerobject.
-
getAlignItems
getAlignItems.
- Specified by:
getAlignItemsin interfaceRenderState- Returns:
- a String.
-
getAlignContent
getAlignContent.
- Specified by:
getAlignContentin interfaceRenderState- Returns:
- a String.
-
getBackgroundColor
getBackgroundColor.
- Specified by:
getBackgroundColorin interfaceRenderState- Returns:
- a
Colorobject.
-
getBackgroundInfo
getBackgroundInfo.
- Specified by:
getBackgroundInfoin interfaceRenderState- Returns:
- a
BackgroundInfoobject.
-
getBackgroundImageInfo
getBackgroundImageInfo.
- Specified by:
getBackgroundImageInfoin interfaceRenderState- Parameters:
width- aIntegerobject.height- aIntegerobject.- Returns:
- a
BackgroundInfoobject.
-
getBlankWidth
public int getBlankWidth()getBlankWidth.
- Specified by:
getBlankWidthin interfaceRenderState- Returns:
- a
Integerobject.
-
getBorderInfo
getBorderInfo.
- Specified by:
getBorderInfoin interfaceRenderState- Returns:
- a
BorderInfoobject.
-
getColor
getColor.
- Specified by:
getColorin interfaceRenderState- Returns:
- a
Colorobject.
-
getCount
getCount.
- Specified by:
getCountin interfaceRenderState- Parameters:
counter- aStringobject.nesting- aIntegerobject.- Returns:
- a
Integerobject.
-
getCssProperties
getCssProperties.
- Returns:
- a
CSSStyleDeclarationobject.
-
getDefaultDisplay
public int getDefaultDisplay()getDefaultDisplay.
- Specified by:
getDefaultDisplayin interfaceRenderState- Returns:
- a
Integerobject.
-
getDisplay
public int getDisplay()getDisplay.
- Specified by:
getDisplayin interfaceRenderState- Returns:
- a
Integerobject.
-
getFloat
public int getFloat()getFloat.
- Specified by:
getFloatin interfaceRenderState- Returns:
- a
Integerobject.
-
getFlexDirection
getFlexDirection.
- Specified by:
getFlexDirectionin interfaceRenderState- Returns:
- a String.
-
getFlexWrap
getFlexWrap.
- Specified by:
getFlexWrapin interfaceRenderState- Returns:
- a String.
-
getFlexFlow
getFlexFlow.
- Specified by:
getFlexFlowin interfaceRenderState- Returns:
- a String.
-
getJustifyContent
getJustifyContent.
- Specified by:
getJustifyContentin interfaceRenderState- Returns:
- a String.
-
getFont
getFont.
- Specified by:
getFontin interfaceRenderState- Returns:
- a
Fontobject.
-
getFontBase
public int getFontBase()getFontBase.
- Specified by:
getFontBasein interfaceRenderState- Returns:
- a
Integerobject.
-
getFontMetrics
getFontMetrics.
- Specified by:
getFontMetricsin interfaceRenderState- Returns:
- a
FontMetricsobject.
-
getMarginInsets
getMarginInsets.
- Specified by:
getMarginInsetsin interfaceRenderState- Returns:
- a
HtmlInsetsobject.
-
getOverflowX
public int getOverflowX()getOverflowX.
- Specified by:
getOverflowXin interfaceRenderState- Returns:
- a
Integerobject.
-
getOverflowY
public int getOverflowY()getOverflowY.
- Specified by:
getOverflowYin interfaceRenderState- Returns:
- a
Integerobject.
-
getOverlayColor
getOverlayColor.
- Specified by:
getOverlayColorin interfaceRenderState- Returns:
- a
Colorobject.
-
getPaddingInsets
getPaddingInsets.
- Specified by:
getPaddingInsetsin interfaceRenderState- Returns:
- a
HtmlInsetsobject.
-
getPosition
public int getPosition()getPosition.
- Specified by:
getPositionin interfaceRenderState- Returns:
- a
Integerobject.
-
getPreviousRenderState
getPreviousRenderState.
- Specified by:
getPreviousRenderStatein interfaceRenderState- Returns:
- a
RenderStateobject.
-
getTextBackgroundColor
getTextBackgroundColor.
- Specified by:
getTextBackgroundColorin interfaceRenderState- Returns:
- a
Colorobject.
-
getTextDecorationMask
public int getTextDecorationMask()getTextDecorationMask.
- Specified by:
getTextDecorationMaskin interfaceRenderState- Returns:
- a
Integerobject.
-
getTextIndent
public int getTextIndent(int availSize) getTextIndent.
- Specified by:
getTextIndentin interfaceRenderState- Parameters:
availSize- aIntegerobject.- Returns:
- a
Integerobject.
-
getTextIndentText
getTextIndentText.
- Specified by:
getTextIndentTextin interfaceRenderState- Returns:
- a
Stringobject.
-
getTextTransform
public int getTextTransform()getTextTransform.
- Specified by:
getTextTransformin interfaceRenderState- Returns:
- a
Integerobject.
-
getVisibility
public int getVisibility()getVisibility.
- Specified by:
getVisibilityin interfaceRenderState- Returns:
- a
Integerobject.
-
getWhiteSpace
public int getWhiteSpace()getWhiteSpace.
- Specified by:
getWhiteSpacein interfaceRenderState- Returns:
- a
Integerobject.
-
getWordInfo
getWordInfo.
- Specified by:
getWordInfoin interfaceRenderState- Parameters:
word- aStringobject.- Returns:
- a
WordInfoobject.
-
incrementCount
incrementCount.
- Specified by:
incrementCountin interfaceRenderState- Parameters:
counter- aStringobject.nesting- aIntegerobject.- Returns:
- a
Integerobject.
-
invalidate
public void invalidate()invalidate.
- Specified by:
invalidatein interfaceRenderState
-
isHighlight
public boolean isHighlight()isHighlight.
- Specified by:
isHighlightin interfaceRenderState- Returns:
- a boolean.
-
resetCount
resetCount.
- Specified by:
resetCountin interfaceRenderState- Parameters:
counter- aStringobject.nesting- aIntegerobject.value- aIntegerobject.
-
setHighlight
public void setHighlight(boolean highlight) setHighlight.
- Specified by:
setHighlightin interfaceRenderState- Parameters:
highlight- a boolean.
-
toString
-
getClear
public int getClear()getClear.
- Specified by:
getClearin interfaceRenderState- Returns:
- a
Integerobject.
-
getBoxSizing
getBoxSizing.
- Specified by:
getBoxSizingin interfaceRenderState- Returns:
- a
Stringobject.
-
getLeft
getLeft.
- Specified by:
getLeftin interfaceRenderState- Returns:
- a
Stringobject.
-
getTop
getTop.
- Specified by:
getTopin interfaceRenderState- Returns:
- a
Stringobject.
-
getRight
getRight.
- Specified by:
getRightin interfaceRenderState- Returns:
- a
Stringobject.
-
getBottom
getBottom.
- Specified by:
getBottomin interfaceRenderState- Returns:
- a
Stringobject.
-
setCursor
setCursor.
- Specified by:
setCursorin interfaceRenderState- Parameters:
cursor- aCursorobject.
-
getCursor
getCursor.
- Specified by:
getCursorin interfaceRenderState- Returns:
- a
Cursorobject.
-
getVerticalAlign
getVerticalAlign.
- Specified by:
getVerticalAlignin interfaceRenderState- Returns:
- a
Stringobject.
-