Class FontStyleRenderState
java.lang.Object
org.loboevolution.html.renderstate.RenderStateDelegator
org.loboevolution.html.renderstate.FontStyleRenderState
- All Implemented Interfaces:
RenderState
FontStyleRenderState class.
-
Field Summary
Fields inherited from class org.loboevolution.html.renderstate.RenderStateDelegator
delegate
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
ConstructorDescriptionFontStyleRenderState
(RenderState prevRenderState, HTMLElementImpl element, Integer superscript) Constructor for FontStyleRenderState.FontStyleRenderState
(RenderState prevRenderState, HTMLElementImpl element, LAFType type) Constructor for FontStyleRenderState. -
Method Summary
Modifier and TypeMethodDescriptionint
getDefaultDisplay.int
getDisplay.getFont()
getFont.getFontMetrics.final WordInfo
getWordInfo
(String word) getWordInfo.void
invalidate.Methods inherited from class org.loboevolution.html.renderstate.RenderStateDelegator
getAlignContent, getAlignItems, getAlignXPercent, getAlignYPercent, getBackgroundColor, getBackgroundImageInfo, getBackgroundInfo, getBlankWidth, getBorderInfo, getBottom, getBoxSizing, getClear, getColor, getCount, getCursor, getFlexDirection, getFlexFlow, getFlexWrap, getFloat, getFontBase, getJustifyContent, getLeft, getMarginInsets, getOverflowX, getOverflowY, getOverlayColor, getPaddingInsets, getPosition, getPreviousRenderState, getRight, getTextBackgroundColor, getTextDecorationMask, getTextIndent, getTextIndentText, getTextTransform, getTop, getVerticalAlign, getVisibility, getWhiteSpace, incrementCount, isHighlight, resetCount, setCursor, setHighlight
-
Constructor Details
-
FontStyleRenderState
Constructor for FontStyleRenderState.
- Parameters:
prevRenderState
- aRenderState
object.type
- aLAFType
object.
-
FontStyleRenderState
public FontStyleRenderState(RenderState prevRenderState, HTMLElementImpl element, Integer superscript) Constructor for FontStyleRenderState.
- Parameters:
prevRenderState
- aRenderState
object.superscript
- aInteger
object.
-
-
Method Details
-
getFont
getFont.
- Specified by:
getFont
in interfaceRenderState
- Overrides:
getFont
in classRenderStateDelegator
- Returns:
- a
Font
object.
-
getFontMetrics
getFontMetrics.
- Specified by:
getFontMetrics
in interfaceRenderState
- Overrides:
getFontMetrics
in classRenderStateDelegator
- Returns:
- a
FontMetrics
object.
-
getWordInfo
getWordInfo.
- Specified by:
getWordInfo
in interfaceRenderState
- Overrides:
getWordInfo
in classRenderStateDelegator
- Parameters:
word
- aString
object.- Returns:
- a
WordInfo
object.
-
invalidate
public void invalidate()invalidate.
- Specified by:
invalidate
in interfaceRenderState
- Overrides:
invalidate
in classRenderStateDelegator
-
getDefaultDisplay
public int getDefaultDisplay()Description copied from interface:RenderState
getDefaultDisplay.
- Returns:
- a
Integer
object.
-
getDisplay
public int getDisplay()Description copied from class:RenderStateDelegator
getDisplay.
- Specified by:
getDisplay
in interfaceRenderState
- Overrides:
getDisplay
in classRenderStateDelegator
- Returns:
- a
Integer
object.
-