Backend

izumi.fundamentals.platform.graphs.dotml.Backend
object Backend

Attributes

Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Backend.type

Members list

Value members

Concrete methods

def command(engine: String, format: String, filePath: String): (String, String)

Return command for execution and name of the rendered file.

Return command for execution and name of the rendered file.

Value parameters

engine

The layout commmand used for rendering ('dot', 'neato', ...).

filePath

The output path of the source file.

format

The output format used for rendering ('pdf', 'png', ...).

Attributes

Returns

render command to execute.

def doRender(engine: String, format: String, filePath: String): String

Render file with Graphviz engine into format, return result filename.

Render file with Graphviz engine into format, return result filename.

Value parameters

engine

The layout commmand used for rendering ('dot', 'neato', ...).

filepath

Path to the DOT source file to render.

format

The output format used for rendering ('pdf', 'png', ...).

Attributes

def doView(filePath: String): Unit

Open filepath with its default viewing application (platform-specific). For know only support linux.

Open filepath with its default viewing application (platform-specific). For know only support linux.

Attributes

def render(graphVizDotML: GraphVizDotML, engine: String, format: String, fileName: String, directory: String, view: Boolean, cleanUp: Boolean): String

Save the source to file and render with the Graphviz engine.

Save the source to file and render with the Graphviz engine.

Value parameters

cleanup

Whether delete the source file after rendering.

directory

Directory to save the Dot source file.

engine

The layout commmand used for rendering ('dot', 'neato', ...).

fileName

Name of the DOT source file to render.

format

The output format used for rendering ('pdf', 'png', ...).

view

Whether open the rendered result with the default application.

Attributes

Returns

The (possibly relative) path of the rendered file.

def view(graphVizDotML: GraphVizDotML, engine: String, format: String, fileName: String, directory: String, cleanUp: Boolean): String

Save the source to file, open the rendered result in a viewer.

Save the source to file, open the rendered result in a viewer.

Value parameters

cleanup

Whether delete the source file after rendering.

directory

Directory to save the Dot source file.

engine

The layout commmand used for rendering ('dot', 'neato', ...).

fileName

Name of the DOT source file to render.

format

The output format used for rendering ('pdf', 'png', ...).

Attributes

Returns

The (possibly relative) path of the rendered file.