info.informatica.doc.style.css.visual.box
Class AbsolutelyPositionedBox

java.lang.Object
  extended by info.informatica.doc.style.css.visual.box.AbstractCSSBox
      extended by info.informatica.doc.style.css.visual.box.AbstractBlockBox
          extended by info.informatica.doc.style.css.visual.box.BlockBox
              extended by info.informatica.doc.style.css.visual.box.AbsolutelyPositionedBox
All Implemented Interfaces:
CSSBox, CSSContainerBox, NonStaticallyPositioned

public class AbsolutelyPositionedBox
extends BlockBox
implements NonStaticallyPositioned

CSS absolutely positioned Box.

Author:
Carlos Amengual (amengual at informatica.info)

Constructor Summary
AbsolutelyPositionedBox(CSS2ComputedProperties style)
           
 
Method Summary
 void computeDimension()
           
 void computeDimension(float preferredMinimumWidth, float preferredWidth)
           
 float getLeft()
           
 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 getRight()
           
 float getWidth()
          Gets the width of this box.
 
Methods inherited from class info.informatica.doc.style.css.visual.box.BlockBox
asContainerBox, computeAutoHeight, setBoxContainer
 
Methods inherited from class info.informatica.doc.style.css.visual.box.AbstractBlockBox
automaticLeftMargin, automaticRightMargin, computeMarginSubproperty, computeScrollbarWidth, getHeight, getMarginBottom, getMarginTop
 
Methods inherited from class info.informatica.doc.style.css.visual.box.AbstractCSSBox
computeNumberOrZero, computeNumberOrZero, getBackgroundPosition, getBorderBottomColor, getBorderBottomWidth, getBorderLeftColor, getBorderLeftWidth, getBorderRightColor, getBorderRightWidth, getBorderTopColor, getBorderTopWidth, getComputedStyle, getContainerWidth, getContainingBlock, getCSSValue, getErrorHandler, getFontFamily, getFontSize, getFontWeight, getGeneratedSibling, getLeading, getLeading, getLineHeight, getLineHeight, getLineHeightCSSValue, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingSubproperty, getPaddingTop, isContainerHeightAuto, isHeightAuto, isWidthAuto, overflowsWithScroll, setContainingBlock, setErrorHandler, shrinkToFit, textLengthToNaturalUnit
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface info.informatica.doc.style.css.visual.CSSContainerBox
getHeight
 
Methods inherited from interface info.informatica.doc.style.css.visual.CSSBox
getBackgroundPosition, getBorderBottomColor, getBorderBottomWidth, getBorderLeftColor, getBorderLeftWidth, getBorderRightColor, getBorderRightWidth, getBorderTopColor, getBorderTopWidth, getComputedStyle, getContainingBlock, getGeneratedSibling, getMarginBottom, getMarginTop, getPaddingBottom, getPaddingLeft, getPaddingRight, getPaddingTop, setErrorHandler
 

Constructor Detail

AbsolutelyPositionedBox

public AbsolutelyPositionedBox(CSS2ComputedProperties style)
Method Detail

computeDimension

public void computeDimension()
Specified by:
computeDimension in interface NonStaticallyPositioned

computeDimension

public void computeDimension(float preferredMinimumWidth,
                             float preferredWidth)

getMarginRight

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

Specified by:
getMarginRight in interface CSSBox
Overrides:
getMarginRight in class AbstractBlockBox
Returns:
the value of the margin-right property.

getMarginLeft

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

Specified by:
getMarginLeft in interface CSSBox
Overrides:
getMarginLeft in class AbstractBlockBox
Returns:
the value of the margin-left property.

getLeft

public float getLeft()
Specified by:
getLeft in interface CSSBox
Overrides:
getLeft in class AbstractCSSBox

getRight

public float getRight()
Specified by:
getRight in interface CSSBox
Overrides:
getRight in class AbstractCSSBox

getWidth

public float getWidth()
Description copied from class: AbstractCSSBox
Gets the width of this box.

This is defined to be the value of the width property, for boxes where it is defined, or the content width otherwise.

Specified by:
getWidth in interface CSSContainerBox
Overrides:
getWidth in class AbstractBlockBox
Returns:
the width of this box.


Copyright © 2011 informatica.info. All Rights Reserved.