Class GraphvizContentTransformer
- java.lang.Object
-
- org.eclipse.epsilon.picto.transformers.GraphvizContentTransformer
-
- All Implemented Interfaces:
ViewContentTransformer
public class GraphvizContentTransformer extends java.lang.Object implements ViewContentTransformer
-
-
Constructor Summary
Constructors Constructor Description GraphvizContentTransformer()
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description boolean
canTransform(ViewContent content)
java.lang.String
getLabel(ViewContent content)
protected static ExternalContentTransformation
graphviz(java.lang.String program, java.lang.String graphviz, java.lang.String imageType)
static java.nio.file.Path
graphvizToImage(java.lang.String program, java.lang.String graphviz, java.lang.String imageType)
static java.lang.String
graphvizToRawSvg(java.lang.String program, java.lang.String graphviz)
static java.nio.file.Path
graphvizToSvg(java.lang.String program, java.lang.String graphviz)
ViewContent
transform(ViewContent content, PictoView pictoView)
-
-
-
Method Detail
-
canTransform
public boolean canTransform(ViewContent content)
- Specified by:
canTransform
in interfaceViewContentTransformer
-
transform
public ViewContent transform(ViewContent content, PictoView pictoView) throws java.lang.Exception
- Specified by:
transform
in interfaceViewContentTransformer
- Throws:
java.lang.Exception
-
getLabel
public java.lang.String getLabel(ViewContent content)
- Specified by:
getLabel
in interfaceViewContentTransformer
-
graphvizToSvg
public static java.nio.file.Path graphvizToSvg(java.lang.String program, java.lang.String graphviz) throws java.io.IOException
- Throws:
java.io.IOException
-
graphvizToRawSvg
public static java.lang.String graphvizToRawSvg(java.lang.String program, java.lang.String graphviz) throws java.io.IOException
- Throws:
java.io.IOException
-
graphvizToImage
public static java.nio.file.Path graphvizToImage(java.lang.String program, java.lang.String graphviz, java.lang.String imageType) throws java.io.IOException
- Throws:
java.io.IOException
-
graphviz
protected static ExternalContentTransformation graphviz(java.lang.String program, java.lang.String graphviz, java.lang.String imageType) throws java.io.IOException
- Throws:
java.io.IOException
-
-