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 protectedAbstractStyleResolver()
-
Method Summary
All Methods Instance Methods Abstract Methods Concrete Methods Modifier and Type Method Description protected booleancontainsResolveableFunction(CSSValue value)protected voidcopyStyleInformation(LayoutStyle target, CSSDeclarationRule rule, LayoutElement element)protected DocumentContextgetDocumentContext()LayoutStylegetInitialStyle()Returns the style for a generic element for which none of the defined selectors (except the global one) match.protected StyleKey[]getKeys()protected NamespaceCollectiongetNamespaces()voidinitialize(DocumentContext documentContext)protected voidloadInitialStyle(DocumentContext context)protected abstract voidresolveOutOfContext(LayoutElement element)protected CSSValueresolveValue(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:
initializein 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:StyleResolverReturns the style for a generic element for which none of the defined selectors (except the global one) match.- Specified by:
getInitialStylein interfaceStyleResolver- Returns:
- the initial style.
-
getDocumentContext
protected DocumentContext getDocumentContext()
-
getKeys
protected StyleKey[] getKeys()
-
getNamespaces
protected NamespaceCollection getNamespaces()
-
resolveOutOfContext
protected abstract void resolveOutOfContext(LayoutElement element)
-
-