org.lobobrowser.html.style

Class RenderStateDelegator

Implemented Interfaces:
RenderState
Known Direct Subclasses:
AlignXRenderState, BaseFontRenderState, ColorRenderState, FontNameRenderState, FontSizeRenderState, FontStyleRenderState, TextDecorationRenderState

public abstract class RenderStateDelegator
extends java.lang.Object
implements RenderState

Field Summary

protected RenderState
prevRenderState

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, MASK_TEXTDECORATION_BLINK, MASK_TEXTDECORATION_LINE_THROUGH, MASK_TEXTDECORATION_OVERLINE, MASK_TEXTDECORATION_UNDERLINE, WS_NORMAL, WS_NOWRAP, WS_PRE

Constructor Summary

RenderStateDelegator(RenderState prevRenderState)

Method Summary

int
getAlignXPercent()
int
getAlignYPercent()
Color
getBackgroundColor()
BackgroundInfo
getBackgroundInfo()
int
getBlankWidth()
Color
getColor()
int
getCount(String counter, int nesting)
int
getDisplay()
Font
getFont()
int
getFontBase()
FontMetrics
getFontMetrics()
Insets
getMarginInsets()
Color
getOverlayColor()
Insets
getPaddingInsets()
RenderState
getPreviousRenderState()
Color
getTextBackgroundColor()
int
getTextDecorationMask()
int
getTextIndent(int availWidth)
String
getTextIndentText()
int
getWhiteSpace()
org.lobobrowser.html.style.WordInfo
getWordInfo(String word)
int
incrementCount(String counter, int nesting)
void
invalidate()
boolean
isHighlight()
void
resetCount(String counter, int nesting, int value)
void
setHighlight(boolean highlight)

Field Details

prevRenderState

protected final RenderState prevRenderState

Constructor Details

RenderStateDelegator

public RenderStateDelegator(RenderState prevRenderState)

Method Details

getAlignXPercent

public int getAlignXPercent()
Specified by:
getAlignXPercent in interface RenderState

getAlignYPercent

public int getAlignYPercent()
Specified by:
getAlignYPercent in interface RenderState

getBackgroundColor

public Color getBackgroundColor()
Specified by:
getBackgroundColor in interface RenderState

getBackgroundInfo

public BackgroundInfo getBackgroundInfo()
Specified by:
getBackgroundInfo in interface RenderState

getBlankWidth

public int getBlankWidth()
Specified by:
getBlankWidth in interface RenderState

getColor

public Color getColor()
Specified by:
getColor in interface RenderState

getCount

public int getCount(String counter,
                    int nesting)
Specified by:
getCount in interface RenderState

getDisplay

public int getDisplay()
Specified by:
getDisplay in interface RenderState

getFont

public Font getFont()
Specified by:
getFont in interface RenderState

getFontBase

public int getFontBase()
Specified by:
getFontBase in interface RenderState

getFontMetrics

public FontMetrics getFontMetrics()
Specified by:
getFontMetrics in interface RenderState

getMarginInsets

public Insets getMarginInsets()
Specified by:
getMarginInsets in interface RenderState

getOverlayColor

public Color getOverlayColor()
Specified by:
getOverlayColor in interface RenderState

getPaddingInsets

public Insets getPaddingInsets()
Specified by:
getPaddingInsets in interface RenderState

getPreviousRenderState

public RenderState getPreviousRenderState()
Specified by:
getPreviousRenderState in interface RenderState

getTextBackgroundColor

public Color getTextBackgroundColor()
Specified by:
getTextBackgroundColor in interface RenderState

getTextDecorationMask

public int getTextDecorationMask()
Specified by:
getTextDecorationMask in interface RenderState

getTextIndent

public int getTextIndent(int availWidth)
Specified by:
getTextIndent in interface RenderState

getTextIndentText

public String getTextIndentText()
Specified by:
getTextIndentText in interface RenderState

getWhiteSpace

public int getWhiteSpace()
Specified by:
getWhiteSpace in interface RenderState

getWordInfo

public org.lobobrowser.html.style.WordInfo getWordInfo(String word)
Specified by:
getWordInfo in interface RenderState

incrementCount

public int incrementCount(String counter,
                          int nesting)
Specified by:
incrementCount in interface RenderState

invalidate

public void invalidate()
Specified by:
invalidate in interface RenderState

isHighlight

public boolean isHighlight()
Specified by:
isHighlight in interface RenderState

resetCount

public void resetCount(String counter,
                       int nesting,
                       int value)
Specified by:
resetCount in interface RenderState

setHighlight

public void setHighlight(boolean highlight)
Specified by:
setHighlight in interface RenderState