Package org.apache.batik.css.engine
Interface CSSContext
-
- All Known Implementing Classes:
BridgeContext,SVG12BridgeContext
public interface CSSContextThis interface allows the user of a CSSEngine to provide contextual informations.- Version:
- $Id: CSSContext.java 1733416 2016-03-03 07:07:13Z gadams $
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voidcheckLoadExternalResource(ParsedURL resourceURL, ParsedURL docURL)This method should throw a SecurityException if the resource found at url and referenced from docURL should not be loaded.floatgetBlockHeight(org.w3c.dom.Element elt)Returns the height of the block which directly contains the given element.floatgetBlockWidth(org.w3c.dom.Element elt)Returns the width of the block which directly contains the given element.floatgetBolderFontWeight(float f)Returns a bolder font-weight.CSSEnginegetCSSEngineForElement(org.w3c.dom.Element e)Returns the CSS engine associated with given element.ValuegetDefaultFontFamily()Returns the value corresponding to the default font-family.floatgetLighterFontWeight(float f)Returns a lighter font-weight.floatgetMediumFontSize()Returns the medium font size.floatgetPixelToMillimeter()Returns the size of a px CSS unit in millimeters.floatgetPixelUnitToMillimeter()Returns the size of a px CSS unit in millimeters.ValuegetSystemColor(java.lang.String ident)Returns the Value corresponding to the given system color.booleanisDynamic()Returns true if the document is dynamic, false otherwise.booleanisInteractive()Returns true if the document is interactive, false otherwise.
-
-
-
Method Detail
-
getSystemColor
Value getSystemColor(java.lang.String ident)
Returns the Value corresponding to the given system color.
-
getDefaultFontFamily
Value getDefaultFontFamily()
Returns the value corresponding to the default font-family.
-
getLighterFontWeight
float getLighterFontWeight(float f)
Returns a lighter font-weight.
-
getBolderFontWeight
float getBolderFontWeight(float f)
Returns a bolder font-weight.
-
getPixelUnitToMillimeter
float getPixelUnitToMillimeter()
Returns the size of a px CSS unit in millimeters.
-
getPixelToMillimeter
float getPixelToMillimeter()
Returns the size of a px CSS unit in millimeters. This will be removed after next release.- See Also:
getPixelUnitToMillimeter()
-
getMediumFontSize
float getMediumFontSize()
Returns the medium font size.
-
getBlockWidth
float getBlockWidth(org.w3c.dom.Element elt)
Returns the width of the block which directly contains the given element.
-
getBlockHeight
float getBlockHeight(org.w3c.dom.Element elt)
Returns the height of the block which directly contains the given element.
-
checkLoadExternalResource
void checkLoadExternalResource(ParsedURL resourceURL, ParsedURL docURL) throws java.lang.SecurityException
This method should throw a SecurityException if the resource found at url and referenced from docURL should not be loaded.- Parameters:
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.- Throws:
java.lang.SecurityException
-
isDynamic
boolean isDynamic()
Returns true if the document is dynamic, false otherwise.
-
isInteractive
boolean isInteractive()
Returns true if the document is interactive, false otherwise.
-
getCSSEngineForElement
CSSEngine getCSSEngineForElement(org.w3c.dom.Element e)
Returns the CSS engine associated with given element.
-
-