Skip to main content

Statechart image generator

The statechart image generator renders a statechart and all its subdiagrams, if any, as image files. The generator supports several pixel-based and vector-based image formats, subject to the capabilities of the Java implementation you are using.

Sample statechart image generator model

The following example is a generator model to create SVG vector images of the turbineControl statechart. The generated images are placed in the images folder, which is located in the powerPlant project.

GeneratorModel for create::images {

statechart turbineControl {

feature Outlet {
targetProject = "powerPlant"
targetFolder = "images"
}

feature Renderer {
format = "svg"
generateByElementName = "main_region_turnOnFan"
}
}
}

Statechart image generator ID

The statechart image generator's ID is create::images. If you are using the itemis CREATE generator model configuration wizard to create a generator model, select the itemis CREATE Image Generator to place the generator ID into the .sgen file.

Statechart image generator features

Outlet feature

The mandatory Outlet feature specifies the project and folder the statechart images will be written to. See section "Outlet feature" for details.

note

The image generator supports the Outlet feature's targetProject and targetFolder parameters only.

Renderer feature

The mandatory Renderer feature controls the rendering of the images.

* format (String, required): Format of the generated images. itemis CREATE supports the following formats:

Image format

Description

BMP, PNG

Lossless pixel image formats

JPG, JPEG

Lossy pixel image format

SVG

Scalable Vector Graphics

  • generateByElementName (String, optional): Name(s) of states or regions to generate image for. Names can be provided via simple name or fully qualified name (which is the full model path of an element separated by "_"). If multiple elements are specified they should be separated by commas.