public abstract class AbstractSVGPrimitiveTranslator<E extends Element,O extends AbstractPrimitiveDefinition<?>> extends Object implements SVGElementTranslator<E,O>
| 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 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,
SVGTranslatorContext context) |
protected void |
translatePosition(E element,
O def,
SVGTranslatorContext context) |
protected void |
translatePrimitiveSpecific(E element,
O def,
SVGTranslatorContext context) |
protected StyleDefinition |
translateStyles(E element,
O def,
SVGTranslatorContext context) |
protected TransformDefinition |
translateTransforms(E element,
O def,
SVGTranslatorContext context) |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitgetTagNamegetInputTypeprotected 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 void translatePrimitiveSpecific(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, SVGTranslatorContext context) throws TranslatorException
TranslatorExceptionprotected TransformDefinition translateTransforms(E element, O def, SVGTranslatorContext context) 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–2017 JBoss by Red Hat. All rights reserved.