|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface CSSContext
This interface allows the user of a CSSEngine to provide contextual informations.
Method Summary | |
---|---|
void |
checkLoadExternalResource(ParsedURL resourceURL,
ParsedURL docURL)
This method should throw a SecurityException if the resource found at url and referenced from docURL should not be loaded. |
float |
getBlockHeight(Element elt)
Returns the height of the block which directly contains the given element. |
float |
getBlockWidth(Element elt)
Returns the width of the block which directly contains the given element. |
float |
getBolderFontWeight(float f)
Returns a bolder font-weight. |
CSSEngine |
getCSSEngineForElement(Element e)
Returns the CSS engine associated with given element. |
Value |
getDefaultFontFamily()
Returns the value corresponding to the default font-family. |
float |
getLighterFontWeight(float f)
Returns a lighter font-weight. |
float |
getMediumFontSize()
Returns the medium font size. |
float |
getPixelToMillimeter()
Returns the size of a px CSS unit in millimeters. |
float |
getPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters. |
Value |
getSystemColor(String ident)
Returns the Value corresponding to the given system color. |
boolean |
isDynamic()
Returns true if the document is dynamic, false otherwise. |
boolean |
isInteractive()
Returns true if the document is interactive, false otherwise. |
Method Detail |
---|
Value getSystemColor(String ident)
Value getDefaultFontFamily()
float getLighterFontWeight(float f)
float getBolderFontWeight(float f)
float getPixelUnitToMillimeter()
float getPixelToMillimeter()
getPixelUnitToMillimeter()
float getMediumFontSize()
float getBlockWidth(Element elt)
float getBlockHeight(Element elt)
void checkLoadExternalResource(ParsedURL resourceURL, ParsedURL docURL) throws SecurityException
resourceURL
- url for the resource, as defined in
the resource's xlink:href attribute. If that
attribute was empty, then this parameter should
be nulldocURL
- url for the document into which the
resource was found.
SecurityException
boolean isDynamic()
boolean isInteractive()
CSSEngine getCSSEngineForElement(Element e)
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |