Class RenderStateDelegator
- All Implemented Interfaces:
RenderState
- Direct Known Subclasses:
FontStyleRenderState
,SmallRenderState
,TextDecorationRenderState
Abstract RenderStateDelegator class.
-
Field Summary
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
ConstructorDescriptionRenderStateDelegator
(RenderState delegate) Constructor for RenderStateDelegator. -
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.getCursor.int
getDisplay.getFlexDirection.getFlexFlow.getFlexWrap.int
getFloat()
getFloat.getFont()
getFont.int
getFontBase.getFontMetrics.getJustifyContent.getLeft()
getLeft.getMarginInsets.int
getOverflowX.int
getOverflowY.getOverlayColor.getPaddingInsets.int
getPosition.getPreviousRenderState.getRight()
getRight.getTextBackgroundColor.int
getTextDecorationMask.int
getTextIndent
(int availWidth) getTextIndent.getTextIndentText.int
getTextTransform.getTop()
getTop.getVerticalAlign.int
getVisibility.int
getWhiteSpace.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.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface org.loboevolution.html.renderstate.RenderState
getDefaultDisplay
-
Field Details
-
delegate
-
-
Constructor Details
-
RenderStateDelegator
Constructor for RenderStateDelegator.
- Parameters:
delegate
- aRenderState
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.
-
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 availWidth) getTextIndent.
- Specified by:
getTextIndent
in interfaceRenderState
- Parameters:
availWidth
- 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.
-
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.
-
getBottom
getBottom.
- Specified by:
getBottom
in interfaceRenderState
- Returns:
- a
String
object.
-
getRight
getRight.
- Specified by:
getRight
in interfaceRenderState
- Returns:
- a
String
object.
-
getCursor
getCursor.
- Specified by:
getCursor
in interfaceRenderState
- Returns:
- a
Cursor
object.
-
setCursor
setCursor.
- Specified by:
setCursor
in interfaceRenderState
- Parameters:
cursor
- aCursor
object.
-
getVerticalAlign
getVerticalAlign.
- Specified by:
getVerticalAlign
in interfaceRenderState
- Returns:
- a
String
object.
-