Package org.apache.batik.css.engine
Class SVGCSSEngine
- java.lang.Object
-
- org.apache.batik.css.engine.CSSEngine
-
- org.apache.batik.css.engine.SVGCSSEngine
-
- Direct Known Subclasses:
SVG12CSSEngine
public class SVGCSSEngine extends CSSEngine
This class provides a CSS engine initialized for SVG.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class org.apache.batik.css.engine.CSSEngine
CSSEngine.CSSNavigableDocumentHandler, CSSEngine.DocumentAdapter, CSSEngine.DOMAttrModifiedListener, CSSEngine.DOMCharacterDataModifiedListener, CSSEngine.DOMNodeInsertedListener, CSSEngine.DOMNodeRemovedListener, CSSEngine.DOMSubtreeModifiedListener, CSSEngine.MainPropertyReceiver, CSSEngine.StyleDeclarationBuilder, CSSEngine.StyleDeclarationDocumentHandler, CSSEngine.StyleDeclarationUpdateHandler, CSSEngine.StyleSheetDocumentHandler
-
-
Field Summary
-
Fields inherited from class org.apache.batik.css.engine.CSSEngine
ALL_PROPERTIES, alternateStyleSheet, classLocalName, classNamespaceURI, colorIndex, cssBaseURI, cssConditionFactory, cssContext, cssNavigableDocumentListener, document, documentURI, domAttrModifiedListener, domCharacterDataModifiedListener, domNodeInsertedListener, domNodeRemovedListener, domSubtreeModifiedListener, element, fontFaces, fontSizeIndex, indexes, isCSSNavigableDocument, lineHeightIndex, LISTENER_ARRAY, listeners, media, nonCSSPresentationalHints, nonCSSPresentationalHintsNamespaceURI, parser, pseudoElementNames, removedStylableElementSibling, selectorAttributes, shorthandIndexes, shorthandManagers, styleDeclarationBuilder, styleDeclarationDocumentHandler, styleDeclarationUpdateHandler, styleLocalName, styleNamespaceURI, styleSheetDocumentHandler, styleSheetNodes, styleSheetRemoved, userAgent, userAgentStyleSheet, userStyleSheet, valueManagers
-
-
Constructor Summary
Constructors Modifier Constructor Description SVGCSSEngine(org.w3c.dom.Document doc, ParsedURL uri, ExtendedParser p, CSSContext ctx)
Creates a new SVGCSSEngine.protected
SVGCSSEngine(org.w3c.dom.Document doc, ParsedURL uri, ExtendedParser p, ValueManager[] vms, ShorthandManager[] sms, java.lang.String[] pe, java.lang.String sns, java.lang.String sln, java.lang.String cns, java.lang.String cln, boolean hints, java.lang.String hintsNS, CSSContext ctx)
SVGCSSEngine(org.w3c.dom.Document doc, ParsedURL uri, ExtendedParser p, ValueManager[] vms, ShorthandManager[] sms, CSSContext ctx)
Creates a new SVGCSSEngine.
-
Method Summary
All Methods Static Methods Concrete Methods Modifier and Type Method Description protected static ShorthandManager[]
mergeArrays(ShorthandManager[] a1, ShorthandManager[] a2)
Merges the given arrays.protected static ValueManager[]
mergeArrays(ValueManager[] a1, ValueManager[] a2)
Merges the given arrays.-
Methods inherited from class org.apache.batik.css.engine.CSSEngine
addCSSEngineListener, addEventListeners, addMatchingRules, addRules, dispose, disposeStyleMaps, findSelectorAttributes, findStyleSheetNodes, firePropertiesChangedEvent, getCascadedStyleMap, getColorIndex, getComputedStyle, getCSSBaseURI, getCSSContext, getCSSEngineUserAgent, getCSSFirstChild, getCSSNextSibling, getCSSParentNode, getCSSPreviousSibling, getDocument, getFontFaces, getFontSizeIndex, getLineHeightIndex, getNumberOfProperties, getParentCSSStylableElement, getPropertyIndex, getPropertyName, getShorthandIndex, getShorthandManagers, getStyleSheetNodes, getValueManagers, handleAttrModified, handleCharacterDataModified, handleNodeInserted, handleNodeRemoved, handleSubtreeModified, hasStyleSheetNode, importCascadedStyleMaps, inlineStyleAttributeUpdated, invalidateProperties, mediaMatch, nonCSSPresentationalHintUpdated, parsePropertyValue, parseStyleDeclaration, parseStyleSheet, parseStyleSheet, parseStyleSheet, parseStyleSheet, parseStyleSheet, parseStyleSheet, propagateChanges, putAuthorProperty, removeCSSEngineListener, removeEventListeners, setAlternateStyleSheet, setCSSEngineUserAgent, setMainProperties, setMedia, setUserAgentStyleSheet, setUserStyleSheet, sortRules
-
-
-
-
Field Detail
-
SVG_VALUE_MANAGERS
public static final ValueManager[] SVG_VALUE_MANAGERS
The value managers for SVG.
-
SVG_SHORTHAND_MANAGERS
public static final ShorthandManager[] SVG_SHORTHAND_MANAGERS
The shorthand managers for SVG.
-
ALIGNMENT_BASELINE_INDEX
public static final int ALIGNMENT_BASELINE_INDEX
- See Also:
- Constant Field Values
-
BASELINE_SHIFT_INDEX
public static final int BASELINE_SHIFT_INDEX
- See Also:
- Constant Field Values
-
CLIP_INDEX
public static final int CLIP_INDEX
- See Also:
- Constant Field Values
-
CLIP_PATH_INDEX
public static final int CLIP_PATH_INDEX
- See Also:
- Constant Field Values
-
CLIP_RULE_INDEX
public static final int CLIP_RULE_INDEX
- See Also:
- Constant Field Values
-
COLOR_INDEX
public static final int COLOR_INDEX
- See Also:
- Constant Field Values
-
COLOR_INTERPOLATION_INDEX
public static final int COLOR_INTERPOLATION_INDEX
- See Also:
- Constant Field Values
-
COLOR_INTERPOLATION_FILTERS_INDEX
public static final int COLOR_INTERPOLATION_FILTERS_INDEX
- See Also:
- Constant Field Values
-
COLOR_PROFILE_INDEX
public static final int COLOR_PROFILE_INDEX
- See Also:
- Constant Field Values
-
COLOR_RENDERING_INDEX
public static final int COLOR_RENDERING_INDEX
- See Also:
- Constant Field Values
-
CURSOR_INDEX
public static final int CURSOR_INDEX
- See Also:
- Constant Field Values
-
DIRECTION_INDEX
public static final int DIRECTION_INDEX
- See Also:
- Constant Field Values
-
DISPLAY_INDEX
public static final int DISPLAY_INDEX
- See Also:
- Constant Field Values
-
DOMINANT_BASELINE_INDEX
public static final int DOMINANT_BASELINE_INDEX
- See Also:
- Constant Field Values
-
ENABLE_BACKGROUND_INDEX
public static final int ENABLE_BACKGROUND_INDEX
- See Also:
- Constant Field Values
-
FILL_INDEX
public static final int FILL_INDEX
- See Also:
- Constant Field Values
-
FILL_OPACITY_INDEX
public static final int FILL_OPACITY_INDEX
- See Also:
- Constant Field Values
-
FILL_RULE_INDEX
public static final int FILL_RULE_INDEX
- See Also:
- Constant Field Values
-
FILTER_INDEX
public static final int FILTER_INDEX
- See Also:
- Constant Field Values
-
FLOOD_COLOR_INDEX
public static final int FLOOD_COLOR_INDEX
- See Also:
- Constant Field Values
-
FLOOD_OPACITY_INDEX
public static final int FLOOD_OPACITY_INDEX
- See Also:
- Constant Field Values
-
FONT_FAMILY_INDEX
public static final int FONT_FAMILY_INDEX
- See Also:
- Constant Field Values
-
FONT_SIZE_INDEX
public static final int FONT_SIZE_INDEX
- See Also:
- Constant Field Values
-
FONT_SIZE_ADJUST_INDEX
public static final int FONT_SIZE_ADJUST_INDEX
- See Also:
- Constant Field Values
-
FONT_STRETCH_INDEX
public static final int FONT_STRETCH_INDEX
- See Also:
- Constant Field Values
-
FONT_STYLE_INDEX
public static final int FONT_STYLE_INDEX
- See Also:
- Constant Field Values
-
FONT_VARIANT_INDEX
public static final int FONT_VARIANT_INDEX
- See Also:
- Constant Field Values
-
FONT_WEIGHT_INDEX
public static final int FONT_WEIGHT_INDEX
- See Also:
- Constant Field Values
-
GLYPH_ORIENTATION_HORIZONTAL_INDEX
public static final int GLYPH_ORIENTATION_HORIZONTAL_INDEX
- See Also:
- Constant Field Values
-
GLYPH_ORIENTATION_VERTICAL_INDEX
public static final int GLYPH_ORIENTATION_VERTICAL_INDEX
- See Also:
- Constant Field Values
-
IMAGE_RENDERING_INDEX
public static final int IMAGE_RENDERING_INDEX
- See Also:
- Constant Field Values
-
KERNING_INDEX
public static final int KERNING_INDEX
- See Also:
- Constant Field Values
-
LETTER_SPACING_INDEX
public static final int LETTER_SPACING_INDEX
- See Also:
- Constant Field Values
-
LIGHTING_COLOR_INDEX
public static final int LIGHTING_COLOR_INDEX
- See Also:
- Constant Field Values
-
MARKER_END_INDEX
public static final int MARKER_END_INDEX
- See Also:
- Constant Field Values
-
MARKER_MID_INDEX
public static final int MARKER_MID_INDEX
- See Also:
- Constant Field Values
-
MARKER_START_INDEX
public static final int MARKER_START_INDEX
- See Also:
- Constant Field Values
-
MASK_INDEX
public static final int MASK_INDEX
- See Also:
- Constant Field Values
-
OPACITY_INDEX
public static final int OPACITY_INDEX
- See Also:
- Constant Field Values
-
OVERFLOW_INDEX
public static final int OVERFLOW_INDEX
- See Also:
- Constant Field Values
-
POINTER_EVENTS_INDEX
public static final int POINTER_EVENTS_INDEX
- See Also:
- Constant Field Values
-
SRC_INDEX
public static final int SRC_INDEX
- See Also:
- Constant Field Values
-
SHAPE_RENDERING_INDEX
public static final int SHAPE_RENDERING_INDEX
- See Also:
- Constant Field Values
-
STOP_COLOR_INDEX
public static final int STOP_COLOR_INDEX
- See Also:
- Constant Field Values
-
STOP_OPACITY_INDEX
public static final int STOP_OPACITY_INDEX
- See Also:
- Constant Field Values
-
STROKE_INDEX
public static final int STROKE_INDEX
- See Also:
- Constant Field Values
-
STROKE_DASHARRAY_INDEX
public static final int STROKE_DASHARRAY_INDEX
- See Also:
- Constant Field Values
-
STROKE_DASHOFFSET_INDEX
public static final int STROKE_DASHOFFSET_INDEX
- See Also:
- Constant Field Values
-
STROKE_LINECAP_INDEX
public static final int STROKE_LINECAP_INDEX
- See Also:
- Constant Field Values
-
STROKE_LINEJOIN_INDEX
public static final int STROKE_LINEJOIN_INDEX
- See Also:
- Constant Field Values
-
STROKE_MITERLIMIT_INDEX
public static final int STROKE_MITERLIMIT_INDEX
- See Also:
- Constant Field Values
-
STROKE_OPACITY_INDEX
public static final int STROKE_OPACITY_INDEX
- See Also:
- Constant Field Values
-
STROKE_WIDTH_INDEX
public static final int STROKE_WIDTH_INDEX
- See Also:
- Constant Field Values
-
TEXT_ANCHOR_INDEX
public static final int TEXT_ANCHOR_INDEX
- See Also:
- Constant Field Values
-
TEXT_DECORATION_INDEX
public static final int TEXT_DECORATION_INDEX
- See Also:
- Constant Field Values
-
TEXT_RENDERING_INDEX
public static final int TEXT_RENDERING_INDEX
- See Also:
- Constant Field Values
-
UNICODE_BIDI_INDEX
public static final int UNICODE_BIDI_INDEX
- See Also:
- Constant Field Values
-
VISIBILITY_INDEX
public static final int VISIBILITY_INDEX
- See Also:
- Constant Field Values
-
WORD_SPACING_INDEX
public static final int WORD_SPACING_INDEX
- See Also:
- Constant Field Values
-
WRITING_MODE_INDEX
public static final int WRITING_MODE_INDEX
- See Also:
- Constant Field Values
-
FINAL_INDEX
public static final int FINAL_INDEX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SVGCSSEngine
public SVGCSSEngine(org.w3c.dom.Document doc, ParsedURL uri, ExtendedParser p, CSSContext ctx)
Creates a new SVGCSSEngine.- Parameters:
doc
- The associated document.uri
- The document URI.p
- The CSS parser to use.ctx
- The CSS context.
-
SVGCSSEngine
public SVGCSSEngine(org.w3c.dom.Document doc, ParsedURL uri, ExtendedParser p, ValueManager[] vms, ShorthandManager[] sms, CSSContext ctx)
Creates a new SVGCSSEngine.- Parameters:
doc
- The associated document.uri
- The document URI.p
- The CSS parser to use.vms
- Extension value managers.sms
- Extension shorthand managers.ctx
- The CSS context.
-
SVGCSSEngine
protected SVGCSSEngine(org.w3c.dom.Document doc, ParsedURL uri, ExtendedParser p, ValueManager[] vms, ShorthandManager[] sms, java.lang.String[] pe, java.lang.String sns, java.lang.String sln, java.lang.String cns, java.lang.String cln, boolean hints, java.lang.String hintsNS, CSSContext ctx)
-
-
Method Detail
-
mergeArrays
protected static ValueManager[] mergeArrays(ValueManager[] a1, ValueManager[] a2)
Merges the given arrays.
-
mergeArrays
protected static ShorthandManager[] mergeArrays(ShorthandManager[] a1, ShorthandManager[] a2)
Merges the given arrays.
-
-