|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectinfo.informatica.doc.style.css.visual.box.AbstractCSSBox
public abstract class AbstractCSSBox
Abstract CSS box.
| Constructor Summary | |
|---|---|
AbstractCSSBox(CSS2ComputedProperties style)
|
|
| Method Summary | |
|---|---|
protected float |
computeNumberOrZero(org.w3c.dom.css.CSSPrimitiveValue cssValue)
Computes the float value of a number, or returns zero if finds a non-numeric value. |
protected float |
computeNumberOrZero(String property)
|
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. |
protected float |
getContainerWidth()
|
CSSContainerBox |
getContainingBlock()
Gets the 'containing block' for thid box, as defined by the CSS specification. |
protected org.w3c.dom.css.CSSPrimitiveValue |
getCSSValue(String property)
|
protected CSSErrorHandler |
getErrorHandler()
|
String |
getFontFamily()
Gets the 'used' value for the font-family property. |
int |
getFontSize()
Gets the computed value of the font-size property. |
String |
getFontWeight()
Gets the computed font weight. |
CSSBox |
getGeneratedSibling()
Gets the box generated by the element that generated this box. |
protected abstract float |
getHeight()
Gets the height of this box. |
float |
getLeading()
|
float |
getLeading(float defval)
|
float |
getLeft()
|
float |
getLineHeight()
|
float |
getLineHeight(float defval)
|
org.w3c.dom.css.CSSValue |
getLineHeightCSSValue()
|
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. |
protected float |
getPaddingSubproperty(String subpropertyName)
|
float |
getPaddingTop()
Gets the value of the padding-top property, expressed in the unit given by the StyleDatabase.getNaturalUnit() method. |
float |
getRight()
|
protected abstract float |
getWidth()
Gets the width of this box. |
protected boolean |
isContainerHeightAuto()
|
protected boolean |
isHeightAuto()
|
protected boolean |
isWidthAuto()
|
protected boolean |
overflowsWithScroll()
|
void |
setContainingBlock(CSSContainerBox enclosingBlock)
|
void |
setErrorHandler(CSSErrorHandler errorHandler)
Sets the CSS error handler. |
protected float |
shrinkToFit(float preferredMinimum,
float available,
float preferred)
Performs a shrink-to-fit computation as defined by the CSS specification, paragraph 10.3.5. |
protected float |
textLengthToNaturalUnit(int length)
|
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public AbstractCSSBox(CSS2ComputedProperties style)
| Method Detail |
|---|
public CSS2ComputedProperties getComputedStyle()
CSSBox
getComputedStyle in interface CSSBoxprotected org.w3c.dom.css.CSSPrimitiveValue getCSSValue(String property)
public CSSContainerBox getContainingBlock()
CSSBox
getContainingBlock in interface CSSBoxpublic void setContainingBlock(CSSContainerBox enclosingBlock)
protected CSSErrorHandler getErrorHandler()
public void setErrorHandler(CSSErrorHandler errorHandler)
CSSBox
setErrorHandler in interface CSSBoxerrorHandler - the error handler.public CSSBox getGeneratedSibling()
CSSBox
getGeneratedSibling in interface CSSBoxprotected float computeNumberOrZero(String property)
protected float computeNumberOrZero(org.w3c.dom.css.CSSPrimitiveValue cssValue)
The container width is used as the base for percentages.
cssValue - the CSS object value.
protected abstract float getWidth()
This is defined to be the value of the width property, for boxes where it is defined, or the content width otherwise.
protected abstract float getHeight()
This is defined to be the value of the height property, for boxes where it is defined, or the content height otherwise.
protected boolean isWidthAuto()
protected boolean isHeightAuto()
protected float getContainerWidth()
protected boolean isContainerHeightAuto()
protected float shrinkToFit(float preferredMinimum,
float available,
float preferred)
preferredMinimum - available - preferred -
protected boolean overflowsWithScroll()
protected float textLengthToNaturalUnit(int length)
public float getLeft()
getLeft in interface CSSBoxpublic float getRight()
getRight in interface CSSBoxpublic float getBorderTopWidth()
getBorderTopWidth in interface CSSBoxpublic float getBorderRightWidth()
getBorderRightWidth in interface CSSBoxpublic float getBorderBottomWidth()
getBorderBottomWidth in interface CSSBoxpublic float getBorderLeftWidth()
getBorderLeftWidth in interface CSSBoxpublic float getMarginTop()
StyleDatabase.getNaturalUnit() method.
getMarginTop in interface CSSBoxpublic float getMarginBottom()
StyleDatabase.getNaturalUnit() method.
getMarginBottom in interface CSSBoxpublic float getMarginRight()
StyleDatabase.getNaturalUnit() method.
getMarginRight in interface CSSBoxpublic float getMarginLeft()
StyleDatabase.getNaturalUnit() method.
getMarginLeft in interface CSSBoxpublic float getPaddingTop()
CSSBoxStyleDatabase.getNaturalUnit() method.
getPaddingTop in interface CSSBoxpublic float getPaddingRight()
CSSBoxStyleDatabase.getNaturalUnit() method.
getPaddingRight in interface CSSBoxpublic float getPaddingBottom()
CSSBoxStyleDatabase.getNaturalUnit() method.
getPaddingBottom in interface CSSBoxpublic float getPaddingLeft()
CSSBoxStyleDatabase.getNaturalUnit() method.
getPaddingLeft in interface CSSBoxprotected float getPaddingSubproperty(String subpropertyName)
public String getFontFamily()
This method requires a style database.
IllegalStateException - if the style database has not been set.public String getFontWeight()
public int getFontSize()
May require a style database to work.
public float getLineHeight()
public float getLineHeight(float defval)
public float getLeading()
public float getLeading(float defval)
public org.w3c.dom.css.CSSValue getLineHeightCSSValue()
public org.w3c.dom.css.CSSPrimitiveValue getBorderTopColor()
getBorderTopColor in interface CSSBoxpublic org.w3c.dom.css.CSSPrimitiveValue getBorderRightColor()
getBorderRightColor in interface CSSBoxpublic org.w3c.dom.css.CSSPrimitiveValue getBorderBottomColor()
getBorderBottomColor in interface CSSBoxpublic org.w3c.dom.css.CSSPrimitiveValue getBorderLeftColor()
getBorderLeftColor in interface CSSBoxpublic CSSPoint getBackgroundPosition()
CSSBox
getBackgroundPosition in interface CSSBox
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||