org.lobobrowser.html.style

Class StyleSheetRenderState

Implemented Interfaces:
RenderState
Known Direct Subclasses:
BlockRenderState, DisplayRenderState, ImageRenderState, TableRenderState

public class StyleSheetRenderState
extends java.lang.Object
implements RenderState

Author:
J. H. S.

Field Summary

protected static BackgroundInfo
INVALID_BACKGROUND_INFO
protected static Color
INVALID_COLOR
protected static Insets
INVALID_INSETS
protected HTMLDocumentImpl
document
protected HTMLElementImpl
element
protected Integer
iWhiteSpace
protected java.awt.Insets
marginInsets
protected java.awt.Insets
paddingInsets
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, FLOAT_LEFT, FLOAT_NONE, FLOAT_RIGHT, MASK_TEXTDECORATION_BLINK, MASK_TEXTDECORATION_LINE_THROUGH, MASK_TEXTDECORATION_OVERLINE, MASK_TEXTDECORATION_UNDERLINE, POSITION_ABSOLUTE, POSITION_FIXED, POSITION_RELATIVE, POSITION_STATIC, VISIBILITY_COLLAPSE, VISIBILITY_HIDDEN, VISIBILITY_VISIBLE, WS_NORMAL, WS_NOWRAP, WS_PRE

Constructor Summary

StyleSheetRenderState(HTMLDocumentImpl document)
StyleSheetRenderState(RenderState prevRenderState, HTMLElementImpl element)

Method Summary

int
getAlignXPercent()
int
getAlignYPercent()
Color
getBackgroundColor()
BackgroundInfo
getBackgroundInfo()
int
getBlankWidth()
Color
getColor()
int
getCount(String counter, int nesting)
protected AbstractCSS2Properties
getCssProperties()
protected int
getDefaultDisplay()
int
getDisplay()
int
getFloat()
Font
getFont()
int
getFontBase()
FontMetrics
getFontMetrics()
java.awt.Insets
getMarginInsets()
Color
getOverlayColor()
java.awt.Insets
getPaddingInsets()
int
getPosition()
RenderState
getPreviousRenderState()
Color
getTextBackgroundColor()
int
getTextDecorationMask()
int
getTextIndent(int availSize)
String
getTextIndentText()
int
getVisibility()
int
getWhiteSpace()
org.lobobrowser.html.style.WordInfo
getWordInfo(String word)
int
incrementCount(String counter, int nesting)
void
invalidate()
boolean
isHighlight()
void
repaint()
void
resetCount(String counter, int nesting, int value)
void
setHighlight(boolean highlight)
String
toString()

Field Details

INVALID_BACKGROUND_INFO

protected static final BackgroundInfo INVALID_BACKGROUND_INFO

INVALID_COLOR

protected static final Color INVALID_COLOR

INVALID_INSETS

protected static final Insets INVALID_INSETS

document

protected final HTMLDocumentImpl document

element

protected final HTMLElementImpl element

iWhiteSpace

protected Integer iWhiteSpace

marginInsets

protected java.awt.Insets marginInsets

paddingInsets

protected java.awt.Insets paddingInsets

prevRenderState

protected final RenderState prevRenderState

Constructor Details

StyleSheetRenderState

public StyleSheetRenderState(HTMLDocumentImpl document)

StyleSheetRenderState

public StyleSheetRenderState(RenderState prevRenderState,
                             HTMLElementImpl element)

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

getCssProperties

protected final AbstractCSS2Properties getCssProperties()

getDefaultDisplay

protected int getDefaultDisplay()

getDisplay

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

getFloat

public int getFloat()
Specified by:
getFloat 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 final FontMetrics getFontMetrics()
Specified by:
getFontMetrics in interface RenderState

getMarginInsets

public java.awt.Insets getMarginInsets()
Specified by:
getMarginInsets in interface RenderState

getOverlayColor

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

getPaddingInsets

public java.awt.Insets getPaddingInsets()
Specified by:
getPaddingInsets in interface RenderState

getPosition

public int getPosition()
Specified by:
getPosition 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 availSize)
Specified by:
getTextIndent in interface RenderState

getTextIndentText

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

getVisibility

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

getWhiteSpace

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

getWordInfo

public final 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
Returns:
Returns the iHighlight.

repaint

public void repaint()

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
Parameters:
highlight - The iHighlight to set.

toString

public String toString()