org.lobobrowser.html.style
Class StyleSheetRenderState

java.lang.Object
  extended by org.lobobrowser.html.style.StyleSheetRenderState
All Implemented Interfaces:
RenderState
Direct Known Subclasses:
BlockRenderState, DisplayRenderState, ImageRenderState, TableRenderState

public class StyleSheetRenderState
extends java.lang.Object
implements RenderState

Author:
J. H. S.

Field Summary
protected  HTMLDocumentImpl document
           
protected  HTMLElementImpl element
           
protected static BackgroundInfo INVALID_BACKGROUND_INFO
           
protected static java.awt.Color INVALID_COLOR
           
protected static java.awt.Insets INVALID_INSETS
           
protected  java.lang.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, TEXTTRANSFORM_CAPITALIZE, TEXTTRANSFORM_LOWERCASE, TEXTTRANSFORM_NONE, TEXTTRANSFORM_UPPERCASE, 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()
           
 java.awt.Color getBackgroundColor()
           
 BackgroundInfo getBackgroundInfo()
           
 int getBlankWidth()
           
 java.awt.Color getColor()
           
 int getCount(java.lang.String counter, int nesting)
           
protected  AbstractCSS2Properties getCssProperties()
           
protected  int getDefaultDisplay()
           
 int getDisplay()
           
 int getFloat()
           
 java.awt.Font getFont()
           
 int getFontBase()
           
 java.awt.FontMetrics getFontMetrics()
           
 java.awt.Insets getMarginInsets()
           
 java.awt.Color getOverlayColor()
           
 java.awt.Insets getPaddingInsets()
           
 int getPosition()
           
 RenderState getPreviousRenderState()
           
 java.awt.Color getTextBackgroundColor()
           
 int getTextDecorationMask()
           
 int getTextIndent(int availSize)
           
 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 repaint()
           
 void resetCount(java.lang.String counter, int nesting, int value)
           
 void setHighlight(boolean highlight)
           
 java.lang.String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Field Detail

INVALID_INSETS

protected static final java.awt.Insets INVALID_INSETS

INVALID_BACKGROUND_INFO

protected static final BackgroundInfo INVALID_BACKGROUND_INFO

INVALID_COLOR

protected static final java.awt.Color INVALID_COLOR

element

protected final HTMLElementImpl element

document

protected final HTMLDocumentImpl document

prevRenderState

protected final RenderState prevRenderState

iWhiteSpace

protected java.lang.Integer iWhiteSpace

marginInsets

protected java.awt.Insets marginInsets

paddingInsets

protected java.awt.Insets paddingInsets
Constructor Detail

StyleSheetRenderState

public StyleSheetRenderState(RenderState prevRenderState,
                             HTMLElementImpl element)

StyleSheetRenderState

public StyleSheetRenderState(HTMLDocumentImpl document)
Method Detail

getDefaultDisplay

protected int getDefaultDisplay()

getDisplay

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

getPreviousRenderState

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

getFontBase

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

repaint

public void repaint()

getCssProperties

protected final AbstractCSS2Properties getCssProperties()

invalidate

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

getFont

public java.awt.Font getFont()
Specified by:
getFont in interface RenderState

getColor

public java.awt.Color getColor()
Specified by:
getColor in interface RenderState

getBackgroundColor

public java.awt.Color getBackgroundColor()
Specified by:
getBackgroundColor in interface RenderState

getTextBackgroundColor

public java.awt.Color getTextBackgroundColor()
Specified by:
getTextBackgroundColor in interface RenderState

getOverlayColor

public java.awt.Color getOverlayColor()
Specified by:
getOverlayColor in interface RenderState

getTextDecorationMask

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

getTextTransform

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

getFontMetrics

public final java.awt.FontMetrics getFontMetrics()
Specified by:
getFontMetrics in interface RenderState

getBlankWidth

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

isHighlight

public boolean isHighlight()
Specified by:
isHighlight in interface RenderState
Returns:
Returns the iHighlight.

setHighlight

public void setHighlight(boolean highlight)
Specified by:
setHighlight in interface RenderState
Parameters:
highlight - The iHighlight to set.

getWordInfo

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

getAlignXPercent

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

getAlignYPercent

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

getCount

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

resetCount

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

incrementCount

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

getBackgroundInfo

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

getTextIndentText

public java.lang.String getTextIndentText()
Specified by:
getTextIndentText in interface RenderState

getTextIndent

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

getWhiteSpace

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

getMarginInsets

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

getPaddingInsets

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

getVisibility

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

getPosition

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

getFloat

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

toString

public java.lang.String toString()
Overrides:
toString in class java.lang.Object