public abstract class AbstractSVGPrimitiveTranslator<E extends Element,O extends AbstractPrimitiveDefinition<?>> extends Object implements SVGElementTranslator<E,O>
| Modifier and Type | Field and Description |
|---|---|
protected static String |
ID |
protected static String |
X |
protected static String |
Y |
| Constructor and Description |
|---|
AbstractSVGPrimitiveTranslator() |
| Modifier and Type | Method and Description |
|---|---|
protected abstract O |
doTranslate(E pathElement,
SVGTranslatorContext context) |
protected static void |
failIfEmpty(String key,
String value) |
protected static String |
getId(Element element) |
protected String |
getXAttributeName() |
protected String |
getYAttributeName() |
protected static boolean |
isEmpty(String s) |
O |
translate(E element,
SVGTranslatorContext context)
Process the given input and generates the SVG view definition instance for it.
|
protected LayoutDefinition |
translateLayout(E element,
O def) |
protected void |
translatePosition(E element,
O def,
SVGTranslatorContext context) |
protected void |
translatePrimitiveDefinition(E element,
O def,
SVGTranslatorContext context) |
protected boolean |
translatePrimitiveExcluded(E element) |
protected StyleDefinition |
translateStyles(E element,
O def,
SVGTranslatorContext context) |
protected void |
translateTransformDefinition(E element,
O def) |
protected TransformDefinition |
translateTransforms(E element,
O def) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTagNamegetInputTypeprotected static final String ID
protected static final String X
protected static final String Y
protected abstract O doTranslate(E pathElement, SVGTranslatorContext context) throws TranslatorException
TranslatorExceptionpublic O translate(E element, SVGTranslatorContext context) throws TranslatorException
SVGElementTranslatortranslate in interface SVGElementTranslator<E extends Element,O extends AbstractPrimitiveDefinition<?>>element - The source element.context - The translator context.TranslatorExceptionprotected boolean translatePrimitiveExcluded(E element)
protected void translatePrimitiveDefinition(E element, O def, SVGTranslatorContext context) throws TranslatorException
TranslatorExceptionprotected void translatePosition(E element, O def, SVGTranslatorContext context) throws TranslatorException
TranslatorExceptionprotected String getXAttributeName()
protected String getYAttributeName()
protected LayoutDefinition translateLayout(E element, O def)
protected TransformDefinition translateTransforms(E element, O def) throws TranslatorException
TranslatorExceptionprotected StyleDefinition translateStyles(E element, O def, SVGTranslatorContext context) throws TranslatorException
TranslatorExceptionprotected static void failIfEmpty(String key, String value) throws TranslatorException
TranslatorExceptionprotected static boolean isEmpty(String s)
Copyright © 2001–2018 JBoss by Red Hat. All rights reserved.