Package org.lobobrowser.html.style
Class StyleSheetRenderState
java.lang.Object
org.lobobrowser.html.style.StyleSheetRenderState
- All Implemented Interfaces:
RenderState
- Direct Known Subclasses:
BlockRenderState
,BodyRenderState
,DisplayRenderState
,IFrameRenderState
,ImageRenderState
,TableRenderState
- Author:
- J. H. S.
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected BorderInfo
protected final HTMLDocumentImpl
protected final HTMLElementImpl
protected BackgroundInfo
protected static final BackgroundInfo
protected static final BorderInfo
protected static final Color
protected static final HtmlInsets
protected Integer
protected HtmlInsets
protected int
protected int
protected HtmlInsets
protected final RenderState
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
ConstructorsConstructorDescriptionStyleSheetRenderState
(HTMLDocumentImpl document) StyleSheetRenderState
(RenderState prevRenderState, HTMLElementImpl element) -
Method Summary
Modifier and TypeMethodDescriptionint
int
int
getColor()
int
protected final AbstractCSS2Properties
protected int
int
int
getFloat()
getFont()
int
final FontMetrics
int
int
int
int
int
getTextIndent
(int availSize) int
int
int
final org.lobobrowser.html.style.WordInfo
getWordInfo
(String word) int
incrementCount
(String counter, int nesting) void
boolean
void
repaint()
void
resetCount
(String counter, int nesting, int value) void
setHighlight
(boolean highlight) toString()
-
Field Details
-
INVALID_INSETS
-
INVALID_BACKGROUND_INFO
-
INVALID_BORDER_INFO
-
INVALID_COLOR
-
element
-
document
-
prevRenderState
-
iBackgroundInfo
-
iWhiteSpace
-
marginInsets
-
paddingInsets
-
overflowX
protected int overflowX -
overflowY
protected int overflowY -
borderInfo
-
-
Constructor Details
-
StyleSheetRenderState
-
StyleSheetRenderState
-
-
Method Details
-
getDefaultDisplay
protected int getDefaultDisplay() -
getDisplay
public int getDisplay()- Specified by:
getDisplay
in interfaceRenderState
-
getPreviousRenderState
- Specified by:
getPreviousRenderState
in interfaceRenderState
-
getFontBase
public int getFontBase()- Specified by:
getFontBase
in interfaceRenderState
-
repaint
public void repaint() -
getCssProperties
-
invalidate
public void invalidate()- Specified by:
invalidate
in interfaceRenderState
-
getFont
- Specified by:
getFont
in interfaceRenderState
-
getColor
- Specified by:
getColor
in interfaceRenderState
-
getBackgroundColor
- Specified by:
getBackgroundColor
in interfaceRenderState
-
getTextBackgroundColor
- Specified by:
getTextBackgroundColor
in interfaceRenderState
-
getOverlayColor
- Specified by:
getOverlayColor
in interfaceRenderState
-
getTextDecorationMask
public int getTextDecorationMask()- Specified by:
getTextDecorationMask
in interfaceRenderState
-
getTextTransform
public int getTextTransform()- Specified by:
getTextTransform
in interfaceRenderState
-
getFontMetrics
- Specified by:
getFontMetrics
in interfaceRenderState
-
getBlankWidth
public int getBlankWidth()- Specified by:
getBlankWidth
in interfaceRenderState
-
isHighlight
public boolean isHighlight()- Specified by:
isHighlight
in interfaceRenderState
- Returns:
- Returns the iHighlight.
-
setHighlight
public void setHighlight(boolean highlight) - Specified by:
setHighlight
in interfaceRenderState
- Parameters:
highlight
- The iHighlight to set.
-
getWordInfo
- Specified by:
getWordInfo
in interfaceRenderState
-
getAlignXPercent
public int getAlignXPercent()- Specified by:
getAlignXPercent
in interfaceRenderState
-
getAlignYPercent
public int getAlignYPercent()- Specified by:
getAlignYPercent
in interfaceRenderState
-
getCount
- Specified by:
getCount
in interfaceRenderState
-
resetCount
- Specified by:
resetCount
in interfaceRenderState
-
incrementCount
- Specified by:
incrementCount
in interfaceRenderState
-
getBackgroundInfo
- Specified by:
getBackgroundInfo
in interfaceRenderState
-
getTextIndentText
- Specified by:
getTextIndentText
in interfaceRenderState
-
getTextIndent
public int getTextIndent(int availSize) - Specified by:
getTextIndent
in interfaceRenderState
-
getWhiteSpace
public int getWhiteSpace()- Specified by:
getWhiteSpace
in interfaceRenderState
-
getMarginInsets
- Specified by:
getMarginInsets
in interfaceRenderState
-
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
-
toString
-
getOverflowX
public int getOverflowX()- Specified by:
getOverflowX
in interfaceRenderState
-
getOverflowY
public int getOverflowY()- Specified by:
getOverflowY
in interfaceRenderState
-
getBorderInfo
- Specified by:
getBorderInfo
in interfaceRenderState
-