Class StyleSheetRenderState
- All Implemented Interfaces:
RenderState
- Direct Known Subclasses:
BlockRenderState
,BodyRenderState
,DisplayRenderState
,IFrameRenderState
,ImageRenderState
,LinkRenderState
,TableRenderState
StyleSheetRenderState class.
-
Field Summary
Modifier and TypeFieldDescriptionprotected BorderInfo
protected final HTMLDocumentImpl
protected final HTMLElementImpl
protected BackgroundInfo
protected static final BackgroundInfo
Constant INVALID_BACKGROUND_INFOprotected static final BorderInfo
Constant INVALID_BORDER_INFOprotected static final Color
Constant INVALID_COLORprotected static final HtmlInsets
Constant INVALID_INSETSprotected Integer
protected HtmlInsets
protected int
protected int
protected HtmlInsets
protected final RenderState
Fields 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
ConstructorDescriptionStyleSheetRenderState
(HTMLDocumentImpl document) Constructor for StyleSheetRenderState.StyleSheetRenderState
(RenderState prevRenderState, HTMLElementImpl element) Constructor for StyleSheetRenderState. -
Method Summary
Modifier and TypeMethodDescriptiongetAlignContent.getAlignItems.int
getAlignXPercent.int
getAlignYPercent.getBackgroundColor.getBackgroundImageInfo
(int width, int height) getBackgroundImageInfo.getBackgroundInfo.int
getBlankWidth.getBorderInfo.getBottom.getBoxSizing.int
getClear()
getClear.getColor()
getColor.int
getCount.protected final CSSStyleDeclaration
getCssProperties.getCursor.int
getDefaultDisplay.int
getDisplay.getFlexDirection.getFlexFlow.getFlexWrap.int
getFloat()
getFloat.getFont()
getFont.int
getFontBase.final FontMetrics
getFontMetrics.getJustifyContent.getLeft()
getLeft.getMarginInsets.int
getOverflowX.int
getOverflowY.getOverlayColor.getPaddingInsets.int
getPosition.getPreviousRenderState.getRight()
getRight.getTextBackgroundColor.int
getTextDecorationMask.int
getTextIndent
(int availSize) getTextIndent.getTextIndentText.int
getTextTransform.getTop()
getTop.getVerticalAlign.int
getVisibility.int
getWhiteSpace.final WordInfo
getWordInfo
(String word) getWordInfo.int
incrementCount
(String counter, int nesting) incrementCount.void
invalidate.boolean
isHighlight.void
resetCount
(String counter, int nesting, int value) resetCount.void
setCursor.void
setHighlight
(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
- aHTMLDocumentImpl
object.
-
StyleSheetRenderState
Constructor for StyleSheetRenderState.
- Parameters:
prevRenderState
- aRenderState
object.element
- aHTMLElementImpl
object.
-
-
Method Details
-
getAlignXPercent
public int getAlignXPercent()getAlignXPercent.
- Specified by:
getAlignXPercent
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getAlignYPercent
public int getAlignYPercent()getAlignYPercent.
- Specified by:
getAlignYPercent
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getAlignItems
getAlignItems.
- Specified by:
getAlignItems
in interfaceRenderState
- Returns:
- a String.
-
getAlignContent
getAlignContent.
- Specified by:
getAlignContent
in interfaceRenderState
- Returns:
- a String.
-
getBackgroundColor
getBackgroundColor.
- Specified by:
getBackgroundColor
in interfaceRenderState
- Returns:
- a
Color
object.
-
getBackgroundInfo
getBackgroundInfo.
- Specified by:
getBackgroundInfo
in interfaceRenderState
- Returns:
- a
BackgroundInfo
object.
-
getBackgroundImageInfo
getBackgroundImageInfo.
- Specified by:
getBackgroundImageInfo
in interfaceRenderState
- Parameters:
width
- aInteger
object.height
- aInteger
object.- Returns:
- a
BackgroundInfo
object.
-
getBlankWidth
public int getBlankWidth()getBlankWidth.
- Specified by:
getBlankWidth
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getBorderInfo
getBorderInfo.
- Specified by:
getBorderInfo
in interfaceRenderState
- Returns:
- a
BorderInfo
object.
-
getColor
getColor.
- Specified by:
getColor
in interfaceRenderState
- Returns:
- a
Color
object.
-
getCount
getCount.
- Specified by:
getCount
in interfaceRenderState
- Parameters:
counter
- aString
object.nesting
- aInteger
object.- Returns:
- a
Integer
object.
-
getCssProperties
getCssProperties.
- Returns:
- a
CSSStyleDeclaration
object.
-
getDefaultDisplay
public int getDefaultDisplay()getDefaultDisplay.
- Specified by:
getDefaultDisplay
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getDisplay
public int getDisplay()getDisplay.
- Specified by:
getDisplay
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getFloat
public int getFloat()getFloat.
- Specified by:
getFloat
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getFlexDirection
getFlexDirection.
- Specified by:
getFlexDirection
in interfaceRenderState
- Returns:
- a String.
-
getFlexWrap
getFlexWrap.
- Specified by:
getFlexWrap
in interfaceRenderState
- Returns:
- a String.
-
getFlexFlow
getFlexFlow.
- Specified by:
getFlexFlow
in interfaceRenderState
- Returns:
- a String.
-
getJustifyContent
getJustifyContent.
- Specified by:
getJustifyContent
in interfaceRenderState
- Returns:
- a String.
-
getFont
getFont.
- Specified by:
getFont
in interfaceRenderState
- Returns:
- a
Font
object.
-
getFontBase
public int getFontBase()getFontBase.
- Specified by:
getFontBase
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getFontMetrics
getFontMetrics.
- Specified by:
getFontMetrics
in interfaceRenderState
- Returns:
- a
FontMetrics
object.
-
getMarginInsets
getMarginInsets.
- Specified by:
getMarginInsets
in interfaceRenderState
- Returns:
- a
HtmlInsets
object.
-
getOverflowX
public int getOverflowX()getOverflowX.
- Specified by:
getOverflowX
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getOverflowY
public int getOverflowY()getOverflowY.
- Specified by:
getOverflowY
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getOverlayColor
getOverlayColor.
- Specified by:
getOverlayColor
in interfaceRenderState
- Returns:
- a
Color
object.
-
getPaddingInsets
getPaddingInsets.
- Specified by:
getPaddingInsets
in interfaceRenderState
- Returns:
- a
HtmlInsets
object.
-
getPosition
public int getPosition()getPosition.
- Specified by:
getPosition
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getPreviousRenderState
getPreviousRenderState.
- Specified by:
getPreviousRenderState
in interfaceRenderState
- Returns:
- a
RenderState
object.
-
getTextBackgroundColor
getTextBackgroundColor.
- Specified by:
getTextBackgroundColor
in interfaceRenderState
- Returns:
- a
Color
object.
-
getTextDecorationMask
public int getTextDecorationMask()getTextDecorationMask.
- Specified by:
getTextDecorationMask
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getTextIndent
public int getTextIndent(int availSize) getTextIndent.
- Specified by:
getTextIndent
in interfaceRenderState
- Parameters:
availSize
- aInteger
object.- Returns:
- a
Integer
object.
-
getTextIndentText
getTextIndentText.
- Specified by:
getTextIndentText
in interfaceRenderState
- Returns:
- a
String
object.
-
getTextTransform
public int getTextTransform()getTextTransform.
- Specified by:
getTextTransform
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getVisibility
public int getVisibility()getVisibility.
- Specified by:
getVisibility
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getWhiteSpace
public int getWhiteSpace()getWhiteSpace.
- Specified by:
getWhiteSpace
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getWordInfo
getWordInfo.
- Specified by:
getWordInfo
in interfaceRenderState
- Parameters:
word
- aString
object.- Returns:
- a
WordInfo
object.
-
incrementCount
incrementCount.
- Specified by:
incrementCount
in interfaceRenderState
- Parameters:
counter
- aString
object.nesting
- aInteger
object.- Returns:
- a
Integer
object.
-
invalidate
public void invalidate()invalidate.
- Specified by:
invalidate
in interfaceRenderState
-
isHighlight
public boolean isHighlight()isHighlight.
- Specified by:
isHighlight
in interfaceRenderState
- Returns:
- a boolean.
-
resetCount
resetCount.
- Specified by:
resetCount
in interfaceRenderState
- Parameters:
counter
- aString
object.nesting
- aInteger
object.value
- aInteger
object.
-
setHighlight
public void setHighlight(boolean highlight) setHighlight.
- Specified by:
setHighlight
in interfaceRenderState
- Parameters:
highlight
- a boolean.
-
toString
-
getClear
public int getClear()getClear.
- Specified by:
getClear
in interfaceRenderState
- Returns:
- a
Integer
object.
-
getBoxSizing
getBoxSizing.
- Specified by:
getBoxSizing
in interfaceRenderState
- Returns:
- a
String
object.
-
getLeft
getLeft.
- Specified by:
getLeft
in interfaceRenderState
- Returns:
- a
String
object.
-
getTop
getTop.
- Specified by:
getTop
in interfaceRenderState
- Returns:
- a
String
object.
-
getRight
getRight.
- Specified by:
getRight
in interfaceRenderState
- Returns:
- a
String
object.
-
getBottom
getBottom.
- Specified by:
getBottom
in interfaceRenderState
- Returns:
- a
String
object.
-
setCursor
setCursor.
- Specified by:
setCursor
in interfaceRenderState
- Parameters:
cursor
- aCursor
object.
-
getCursor
getCursor.
- Specified by:
getCursor
in interfaceRenderState
- Returns:
- a
Cursor
object.
-
getVerticalAlign
getVerticalAlign.
- Specified by:
getVerticalAlign
in interfaceRenderState
- Returns:
- a
String
object.
-