Class AbstractStyleResolver
- java.lang.Object
-
- org.pentaho.reporting.libraries.css.resolver.impl.AbstractStyleResolver
-
- All Implemented Interfaces:
StyleResolver
- Direct Known Subclasses:
DefaultStyleResolver
public abstract class AbstractStyleResolver extends Object implements StyleResolver
-
-
Constructor Summary
Constructors Modifier Constructor Description protected
AbstractStyleResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected boolean
containsResolveableFunction(CSSValue value)
protected void
copyStyleInformation(LayoutStyle target, CSSDeclarationRule rule, LayoutElement element)
protected DocumentContext
getDocumentContext()
LayoutStyle
getInitialStyle()
Returns the style for a generic element for which none of the defined selectors (except the global one) match.protected StyleKey[]
getKeys()
protected NamespaceCollection
getNamespaces()
void
initialize(DocumentContext documentContext)
protected void
loadInitialStyle(DocumentContext context)
protected abstract void
resolveOutOfContext(LayoutElement element)
protected CSSValue
resolveValue(CSSValue value, LayoutElement element)
-
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.pentaho.reporting.libraries.css.resolver.StyleResolver
deriveInstance, isPseudoElementStyleResolvable, resolvePageStyle, resolveStyle
-
-
-
-
Method Detail
-
initialize
public void initialize(DocumentContext documentContext)
- Specified by:
initialize
in interfaceStyleResolver
-
loadInitialStyle
protected void loadInitialStyle(DocumentContext context)
-
copyStyleInformation
protected void copyStyleInformation(LayoutStyle target, CSSDeclarationRule rule, LayoutElement element)
-
resolveValue
protected CSSValue resolveValue(CSSValue value, LayoutElement element) throws FunctionEvaluationException
- Throws:
FunctionEvaluationException
-
containsResolveableFunction
protected boolean containsResolveableFunction(CSSValue value)
-
getInitialStyle
public LayoutStyle getInitialStyle()
Description copied from interface:StyleResolver
Returns the style for a generic element for which none of the defined selectors (except the global one) match.- Specified by:
getInitialStyle
in interfaceStyleResolver
- Returns:
- the initial style.
-
getDocumentContext
protected DocumentContext getDocumentContext()
-
getKeys
protected StyleKey[] getKeys()
-
getNamespaces
protected NamespaceCollection getNamespaces()
-
resolveOutOfContext
protected abstract void resolveOutOfContext(LayoutElement element)
-
-