Package org.lobobrowser.html.style
Class RenderStateDelegator
- java.lang.Object
-
- org.lobobrowser.html.style.RenderStateDelegator
-
- All Implemented Interfaces:
RenderState
- Direct Known Subclasses:
AlignXRenderState
,BaseFontRenderState
,ColorRenderState
,FontNameRenderState
,FontStyleRenderState
,TextDecorationRenderState
public abstract class RenderStateDelegator extends java.lang.Object implements RenderState
-
-
Field Summary
Fields Modifier and Type Field Description protected RenderState
delegate
-
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 RenderStateDelegator(RenderState delegate)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description int
getAlignXPercent()
int
getAlignYPercent()
java.awt.Color
getBackgroundColor()
BackgroundInfo
getBackgroundInfo()
int
getBlankWidth()
BorderInfo
getBorderInfo()
java.awt.Color
getColor()
int
getCount(java.lang.String counter, int nesting)
int
getDisplay()
int
getFloat()
java.awt.Font
getFont()
int
getFontBase()
java.awt.FontMetrics
getFontMetrics()
HtmlInsets
getMarginInsets()
int
getOverflowX()
int
getOverflowY()
java.awt.Color
getOverlayColor()
HtmlInsets
getPaddingInsets()
int
getPosition()
RenderState
getPreviousRenderState()
java.awt.Color
getTextBackgroundColor()
int
getTextDecorationMask()
int
getTextIndent(int availWidth)
java.lang.String
getTextIndentText()
int
getTextTransform()
int
getVisibility()
int
getWhiteSpace()
org.lobobrowser.html.style.WordInfo
getWordInfo(java.lang.String word)
int
incrementCount(java.lang.String counter, int nesting)
void
invalidate()
boolean
isHighlight()
void
resetCount(java.lang.String counter, int nesting, int value)
void
setHighlight(boolean highlight)
-
-
-
Field Detail
-
delegate
protected final RenderState delegate
-
-
Constructor Detail
-
RenderStateDelegator
public RenderStateDelegator(RenderState delegate)
-
-
Method Detail
-
getPreviousRenderState
public RenderState getPreviousRenderState()
- Specified by:
getPreviousRenderState
in interfaceRenderState
-
getAlignXPercent
public int getAlignXPercent()
- Specified by:
getAlignXPercent
in interfaceRenderState
-
getAlignYPercent
public int getAlignYPercent()
- Specified by:
getAlignYPercent
in interfaceRenderState
-
getBlankWidth
public int getBlankWidth()
- Specified by:
getBlankWidth
in interfaceRenderState
-
getColor
public java.awt.Color getColor()
- Specified by:
getColor
in interfaceRenderState
-
getFont
public java.awt.Font getFont()
- Specified by:
getFont
in interfaceRenderState
-
getFontBase
public int getFontBase()
- Specified by:
getFontBase
in interfaceRenderState
-
getFontMetrics
public java.awt.FontMetrics getFontMetrics()
- Specified by:
getFontMetrics
in interfaceRenderState
-
getOverlayColor
public java.awt.Color getOverlayColor()
- Specified by:
getOverlayColor
in interfaceRenderState
-
getBackgroundColor
public java.awt.Color getBackgroundColor()
- Specified by:
getBackgroundColor
in interfaceRenderState
-
getTextDecorationMask
public int getTextDecorationMask()
- Specified by:
getTextDecorationMask
in interfaceRenderState
-
getTextTransform
public int getTextTransform()
- Specified by:
getTextTransform
in interfaceRenderState
-
getWordInfo
public org.lobobrowser.html.style.WordInfo getWordInfo(java.lang.String word)
- Specified by:
getWordInfo
in interfaceRenderState
-
invalidate
public void invalidate()
- Specified by:
invalidate
in interfaceRenderState
-
isHighlight
public boolean isHighlight()
- Specified by:
isHighlight
in interfaceRenderState
-
setHighlight
public void setHighlight(boolean highlight)
- Specified by:
setHighlight
in interfaceRenderState
-
getCount
public int getCount(java.lang.String counter, int nesting)
- Specified by:
getCount
in interfaceRenderState
-
resetCount
public void resetCount(java.lang.String counter, int nesting, int value)
- Specified by:
resetCount
in interfaceRenderState
-
incrementCount
public int incrementCount(java.lang.String counter, int nesting)
- Specified by:
incrementCount
in interfaceRenderState
-
getBackgroundInfo
public BackgroundInfo getBackgroundInfo()
- Specified by:
getBackgroundInfo
in interfaceRenderState
-
getDisplay
public int getDisplay()
- Specified by:
getDisplay
in interfaceRenderState
-
getTextBackgroundColor
public java.awt.Color getTextBackgroundColor()
- Specified by:
getTextBackgroundColor
in interfaceRenderState
-
getTextIndent
public int getTextIndent(int availWidth)
- Specified by:
getTextIndent
in interfaceRenderState
-
getTextIndentText
public java.lang.String getTextIndentText()
- Specified by:
getTextIndentText
in interfaceRenderState
-
getWhiteSpace
public int getWhiteSpace()
- Specified by:
getWhiteSpace
in interfaceRenderState
-
getMarginInsets
public HtmlInsets getMarginInsets()
- Specified by:
getMarginInsets
in interfaceRenderState
-
getPaddingInsets
public HtmlInsets getPaddingInsets()
- Specified by:
getPaddingInsets
in interfaceRenderState
-
getVisibility
public int getVisibility()
- Specified by:
getVisibility
in interfaceRenderState
-
getPosition
public int getPosition()
- Specified by:
getPosition
in interfaceRenderState
-
getFloat
public int getFloat()
- Specified by:
getFloat
in interfaceRenderState
-
getOverflowX
public int getOverflowX()
- Specified by:
getOverflowX
in interfaceRenderState
-
getOverflowY
public int getOverflowY()
- Specified by:
getOverflowY
in interfaceRenderState
-
getBorderInfo
public BorderInfo getBorderInfo()
- Specified by:
getBorderInfo
in interfaceRenderState
-
-