Package info.informatica.doc.style.css

This package and its subpackages provide an implementation of the CSS Object Model API.

See:
          Description

Interface Summary
CSS2ComputedProperties Interface that allows the retrieval of the primitive, "computed" values of CSS properties for practical use in formatting.
CSSErrorHandler CSS Error handler.
StyleDatabase CSS Style database.
StyleDatabaseAware To be implemented by classes that make use of a style database.
 

Class Summary
AbstractStyleDatabase Abstract base class for CSS Style databases.
CSSStyleSheetFactory CSS2 style sheet factory.
DOMCSSStyleSheetFactory CSS2 style sheet factory for DOM.
SACParserFactory SAC Parser Factory.
StyleDeclarationFactory Factory for style declarations.
 

Exception Summary
CSSMediaException CSS media Exception.
CSSStyleException CSS topmost generic Exception.
 

Package info.informatica.doc.style.css Description

This package and its subpackages provide an implementation of the CSS Object Model API.

Parsing requires a SAC parser implementation, and by default uses the excellent Batik open source SAC parser. Only the "batik-css.jar" and "batik-util.jar" files, and not the full Batik, are needed to run this software. Alternatively, you can use the System property org.w3c.css.sac.parser to specify a different parser.

Please note that the org.w3c.dom.css classes are already included in version 5 of the J2SE, so you do not need to put the CSS-DOM jarfile in the classpath. Read the release notes for more information about the package dependencies.

Computed properties for elements in the document tree

CSS4J gives the computed CSS properties for each element in a DOM4J document tree (limited support for other document object model implementations is included, but requires the developer to scan the tree manually for the style sheets).

Style declarations returned by the getComputedStyle can be casted to a non-standard interface (CSS2ComputedProperties), easier to use for retrieving some properties.

Visual formatting model: the visual subpackage

Several classes and interfaces make use of the visual subpackage. Boxes created with the subpackage contain the appropriate methods to compute the dimensions and positions.

For each box, you can obtain the computed properties using the same getComputedStyle method as for document elements.



Copyright © 2011 informatica.info. All Rights Reserved.