info.informatica.doc.style.css.visual
Interface CSSBox

All Known Subinterfaces:
CSSContainerBox, CSSInlineBox, CSSTableCellBox, CSSTableRowBox, ReplacedElementBox<C>
All Known Implementing Classes:
AbsolutelyPositionedBox, AbstractBlockBox, AbstractCSSBox, AbstractInlineBox, AbstractReplacedBox, BlockBox, FloatingBlockBox, FloatingBox, ImgReplacedBox, InlineBox, InlineTable, ListItemBox, ListItemBox.ListItemMarkerBox, ListItemBox.ListItemNumberedMarkerBox, PDFImgReplacedBox, PDFInputTextReplacedBox, RunInBox, Table, TableCellBox, TableRowBox

public interface CSSBox

CSS box.

Author:
Carlos Amengual (amengual at informatica.info)

Method Summary
 CSSPoint getBackgroundPosition()
          Gets the position for the background image, if any.
 org.w3c.dom.css.CSSPrimitiveValue getBorderBottomColor()
           
 float getBorderBottomWidth()
           
 org.w3c.dom.css.CSSPrimitiveValue getBorderLeftColor()
           
 float getBorderLeftWidth()
           
 org.w3c.dom.css.CSSPrimitiveValue getBorderRightColor()
           
 float getBorderRightWidth()
           
 org.w3c.dom.css.CSSPrimitiveValue getBorderTopColor()
           
 float getBorderTopWidth()
           
 CSS2ComputedProperties getComputedStyle()
          Gets the computed style for the element that generated this box.
 CSSContainerBox getContainingBlock()
          Gets the 'containing block' for thid box, as defined by the CSS specification.
 CSSBox getGeneratedSibling()
          Gets the box generated by the element that generated this box.
 float getLeft()
           
 float getMarginBottom()
          Gets the value of the margin-bottom property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getMarginLeft()
          Gets the value of the margin-left property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getMarginRight()
          Gets the value of the margin-right property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getMarginTop()
          Gets the value of the margin-top property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getPaddingBottom()
          Gets the value of the padding-bottom property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getPaddingLeft()
          Gets the value of the padding-left property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getPaddingRight()
          Gets the value of the padding-right property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getPaddingTop()
          Gets the value of the padding-top property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.
 float getRight()
           
 void setErrorHandler(CSSErrorHandler errorHandler)
          Sets the CSS error handler.
 

Method Detail

getComputedStyle

CSS2ComputedProperties getComputedStyle()
Gets the computed style for the element that generated this box.

Returns:
the computed style.

setErrorHandler

void setErrorHandler(CSSErrorHandler errorHandler)
Sets the CSS error handler.

Parameters:
errorHandler - the error handler.

getContainingBlock

CSSContainerBox getContainingBlock()
Gets the 'containing block' for thid box, as defined by the CSS specification.

Returns:
the block box corresponding to the 'containing block', or null if it is the topmost box.

getGeneratedSibling

CSSBox getGeneratedSibling()
Gets the box generated by the element that generated this box.

Returns:
the next box generated by the element, or null if this box does not generate content.

getLeft

float getLeft()

getRight

float getRight()

getBorderTopColor

org.w3c.dom.css.CSSPrimitiveValue getBorderTopColor()

getBorderRightColor

org.w3c.dom.css.CSSPrimitiveValue getBorderRightColor()

getBorderBottomColor

org.w3c.dom.css.CSSPrimitiveValue getBorderBottomColor()

getBorderLeftColor

org.w3c.dom.css.CSSPrimitiveValue getBorderLeftColor()

getBorderTopWidth

float getBorderTopWidth()

getBorderRightWidth

float getBorderRightWidth()

getBorderBottomWidth

float getBorderBottomWidth()

getBorderLeftWidth

float getBorderLeftWidth()

getMarginTop

float getMarginTop()
Gets the value of the margin-top property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the margin-top property.

getMarginBottom

float getMarginBottom()
Gets the value of the margin-bottom property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the margin-bottom property.

getMarginRight

float getMarginRight()
Gets the value of the margin-right property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the margin-right property.

getMarginLeft

float getMarginLeft()
Gets the value of the margin-left property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the margin-left property.

getPaddingTop

float getPaddingTop()
Gets the value of the padding-top property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the padding-top property.

getPaddingRight

float getPaddingRight()
Gets the value of the padding-right property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the padding-right property.

getPaddingBottom

float getPaddingBottom()
Gets the value of the padding-bottom property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the padding-bottom property.

getPaddingLeft

float getPaddingLeft()
Gets the value of the padding-left property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method.

Returns:
the value of the padding-left property.

getBackgroundPosition

CSSPoint getBackgroundPosition()
Gets the position for the background image, if any.

Returns:
the position for the background image.


Copyright © 2011 informatica.info. All Rights Reserved.