Class SVGDocumentTranslatorImpl
- java.lang.Object
-
- org.kie.workbench.common.stunner.svg.gen.translator.impl.SVGDocumentTranslatorImpl
-
- All Implemented Interfaces:
SVGDocumentTranslator,Translator<Document>
public class SVGDocumentTranslatorImpl extends Object implements SVGDocumentTranslator
-
-
Field Summary
Fields Modifier and Type Field Description static StringHEIGHTstatic StringIDstatic StringVIEW_BOXstatic StringWIDTHstatic StringXstatic doubleX_DEFAULTstatic StringYstatic doubleY_DEFAULT-
Fields inherited from interface org.kie.workbench.common.stunner.svg.gen.translator.SVGDocumentTranslator
STUNNER_ATTR_NS_LAYOUT, STUNNER_ATTR_NS_SHAPE, STUNNER_ATTR_NS_STATE, STUNNER_ATTR_NS_TRANSFORM, STUNNER_ATTR_SHAPE_EXCLUDE, STUNNER_ATTR_TRANSFORM_NON_SCALABLE, STUNNER_ATTR_TRANSFORM_SCALABLE, STUNNER_URI, XLINK_URI
-
-
Constructor Summary
Constructors Constructor Description SVGDocumentTranslatorImpl(SVGElementTranslator<Element,Object>[] elementTranslators)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Class<Document>getInputType()ViewDefinition<org.kie.workbench.common.stunner.svg.client.shape.view.SVGShapeView>translate(SVGTranslatorContext context)
-
-
-
Field Detail
-
ID
public static final String ID
- See Also:
- Constant Field Values
-
X
public static final String X
- See Also:
- Constant Field Values
-
X_DEFAULT
public static final double X_DEFAULT
- See Also:
- Constant Field Values
-
Y
public static final String Y
- See Also:
- Constant Field Values
-
Y_DEFAULT
public static final double Y_DEFAULT
- See Also:
- Constant Field Values
-
WIDTH
public static final String WIDTH
- See Also:
- Constant Field Values
-
HEIGHT
public static final String HEIGHT
- See Also:
- Constant Field Values
-
VIEW_BOX
public static final String VIEW_BOX
- See Also:
- Constant Field Values
-
-
Constructor Detail
-
SVGDocumentTranslatorImpl
public SVGDocumentTranslatorImpl(SVGElementTranslator<Element,Object>[] elementTranslators)
-
-
Method Detail
-
getInputType
public Class<Document> getInputType()
- Specified by:
getInputTypein interfaceTranslator<Document>
-
translate
public ViewDefinition<org.kie.workbench.common.stunner.svg.client.shape.view.SVGShapeView> translate(SVGTranslatorContext context) throws TranslatorException
- Specified by:
translatein interfaceSVGDocumentTranslator- Throws:
TranslatorException
-
-