Class GraphvizContentTransformer
- java.lang.Object
-
- org.eclipse.epsilon.picto.transformers.GraphvizContentTransformer
-
- All Implemented Interfaces:
ViewContentTransformer
public class GraphvizContentTransformer extends 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)
String
getLabel(ViewContent content)
protected static ExternalContentTransformation
graphviz(String program, String graphviz, String imageType)
static Path
graphvizToImage(String program, String graphviz, String imageType)
static String
graphvizToRawSvg(String program, String graphviz)
static Path
graphvizToSvg(String program, 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 Exception
- Specified by:
transform
in interfaceViewContentTransformer
- Throws:
Exception
-
getLabel
public String getLabel(ViewContent content)
- Specified by:
getLabel
in interfaceViewContentTransformer
-
graphvizToSvg
public static Path graphvizToSvg(String program, String graphviz) throws IOException
- Throws:
IOException
-
graphvizToRawSvg
public static String graphvizToRawSvg(String program, String graphviz) throws IOException
- Throws:
IOException
-
graphvizToImage
public static Path graphvizToImage(String program, String graphviz, String imageType) throws IOException
- Throws:
IOException
-
graphviz
protected static ExternalContentTransformation graphviz(String program, String graphviz, String imageType) throws IOException
- Throws:
IOException
-
-