public interface StyledElementViewFactory
A StyledElementViewFactory is invoked as follows (MathML example):
mml|msqrt { display: view("com.xmlmind.xmleditapp.mathml.MathElementViewFactory"); }
In the above example, the StyledElementView created by com.xmlmind.xmleditapp.mathml.MathElementViewFactory is used as the custom styled view of the mml:msqrt element.
Modifier and Type | Method and Description |
---|---|
StyledElementView |
createStyledElementView(Element element,
Style style,
StyleValue[] parameters,
StyledViewFactory viewFactory)
Creates a custom styled view of specified element.
|
StyledElementView createStyledElementView(Element element, Style style, StyleValue[] parameters, StyledViewFactory viewFactory)
element
- the element for which a custom styled view needs to be
createdstyle
- the style of the custom styled viewparameters
- the arguments other than the fully qualified class
name of this factory possibly passed to the view() CSS
pseudo-function. May be an empty array.viewFactory
- the StyledViewFactory invoking this
StyledElementViewFactorynull
if,
for any reason, the custom view cannot be created