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.
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"
}
}
}
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.
The mandatory Outlet feature specifies the project and folder the statechart images will be written to. See section "Outlet feature" for details.
Please note: The image generator supports the Outlet feature’s targetProject and targetFolder parameters only.
The mandatory Renderer feature controls the rendering of the images.
Image format | Description |
---|---|
BMP, PNG | Lossless pixel image formats |
JPG, JPEG | Lossy pixel image format |
SVG | Scalable Vector Graphics |
Portable Document Format |
itemis AG
Am Brambusch 15
Lünen NRW 44536
+49 231 9860-606
info@itemis.com