Interface GraphicalModelFactory
-
- All Superinterfaces:
CommonModelFactory
public interface GraphicalModelFactory extends CommonModelFactory
Factory for the graphical model.- Author:
- Ulrich Kreher
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description ProcessImageData
createProcessImageData(String type, byte[] image, int width, int height)
Creates image data for the designated image having the designated values without node and data element areas and no user attributes and no plugin data.ProcessImageData
createProcessImageData(String type, byte[] image, int width, int height, Map<Integer,Rectangle> nodeArea, Map<Integer,Rectangle> dataElementArea)
Creates image data for the designated image having the designated values and no user attributes and no plugin data.ProcessImageData
createProcessImageData(String type, byte[] image, int width, int height, Map<Integer,Rectangle> nodeArea, Map<Integer,Rectangle> dataElementArea, Map<String,Set<String>> supportedPlugins, Map<String,PluginData> pluginData, Map<String,String> userAttributes)
Creates image data for the designated image having the designated values.RenderOptions
createRenderOptions(String type, boolean dataEdgesVisible, boolean dataElementsVisible, boolean systemDataEdgesVisible, boolean systemDataElementsVisible, boolean decisionDataEdgesVisible, boolean decisionDataElementsVisible, boolean dataFlowLaneVisible, boolean syncEdgesVisible, boolean hiddenNodesVisible, Map<String,String> advancedOptions)
Creates render options with the designated values for the complete and unscaled image.RenderOptions
createRenderOptions(String type, int width, int height, boolean dataEdgesVisible, boolean dataElementsVisible, boolean systemDataEdgesVisible, boolean systemDataElementsVisible, boolean decisionDataEdgesVisible, boolean decisionDataElementsVisible, boolean dataFlowLaneVisible, boolean syncEdgesVisible, boolean hiddenNodesVisible, Map<String,String> advancedOptions)
Creates render options with the designated values for the complete image.RenderOptions
createRenderOptions(String type, int width, int height, Rectangle viewPort, boolean dataEdgesVisible, boolean dataElementsVisible, boolean systemDataEdgesVisible, boolean systemDataElementsVisible, boolean decisionDataEdgesVisible, boolean decisionDataElementsVisible, boolean dataFlowLaneVisible, boolean syncEdgesVisible, boolean hiddenNodesVisible, Map<String,String> advancedOptions)
Creates render options with the designated values.-
Methods inherited from interface de.aristaflow.adept2.model.common.CommonModelFactory
createActivityConfiguration, createActivityConfiguration, createActivityConfiguration, createChangeableActivityConfiguration, createChangeableActivityConfiguration, createChangeableConfiguration, createChangeableConfiguration, createChangeableConfigurationDescription, createConfiguration, createConfiguration, createConfiguration, createConfigurationDescription, createConfigurationEntry, createConfigurationWrapper, createIconDescriptor, createMergingConfiguration, createPluginData, createPluginDataContainer, createResourceDescriptor
-
-
-
-
Method Detail
-
createRenderOptions
RenderOptions createRenderOptions(String type, boolean dataEdgesVisible, boolean dataElementsVisible, boolean systemDataEdgesVisible, boolean systemDataElementsVisible, boolean decisionDataEdgesVisible, boolean decisionDataElementsVisible, boolean dataFlowLaneVisible, boolean syncEdgesVisible, boolean hiddenNodesVisible, Map<String,String> advancedOptions)
Creates render options with the designated values for the complete and unscaled image.- Parameters:
type
- The type of the image to be rendered.dataEdgesVisible
- Whether data edges are to be rendered.dataElementsVisible
- Whether data elements are to be rendered.systemDataEdgesVisible
- Whether system data edges are to be rendered.systemDataElementsVisible
- Whether system data elements are to be rendered.decisionDataEdgesVisible
- Whether decision data edges are to be rendered.decisionDataElementsVisible
- Whether decision data elements are to be rendered.dataFlowLaneVisible
- Whether the data flow lane (part displaying data elements and edges) is to be rendered.syncEdgesVisible
- Whether synchronisation edges are to be rendered.hiddenNodesVisible
- Whether hidden nodes are to be rendered.advancedOptions
- Arbitrary additional options for the renderer ornull
for no additional options.- Returns:
- Render options with the designated values for the complete and unscaled image.
-
createRenderOptions
RenderOptions createRenderOptions(String type, int width, int height, boolean dataEdgesVisible, boolean dataElementsVisible, boolean systemDataEdgesVisible, boolean systemDataElementsVisible, boolean decisionDataEdgesVisible, boolean decisionDataElementsVisible, boolean dataFlowLaneVisible, boolean syncEdgesVisible, boolean hiddenNodesVisible, Map<String,String> advancedOptions)
Creates render options with the designated values for the complete image.- Parameters:
type
- The type of the image to be rendered.width
- The width of the rendered image to which it will be scaled. 0 omits scaling.height
- The height of the rendered image to which it will be scaled. 0 omits scaling.dataEdgesVisible
- Whether data edges are to be rendered.dataElementsVisible
- Whether data elements are to be rendered.systemDataEdgesVisible
- Whether system data edges are to be rendered.systemDataElementsVisible
- Whether system data elements are to be rendered.decisionDataEdgesVisible
- Whether decision data edges are to be rendered.decisionDataElementsVisible
- Whether decision data elements are to be rendered.dataFlowLaneVisible
- Whether the data flow lane (part displaying data elements and edges) is to be rendered.syncEdgesVisible
- Whether synchronisation edges are to be rendered.hiddenNodesVisible
- Whether hidden nodes are to be rendered.advancedOptions
- Arbitrary additional options for the renderer ornull
for no additional options.- Returns:
- Render options with the designated values for the complete image.
-
createRenderOptions
RenderOptions createRenderOptions(String type, int width, int height, Rectangle viewPort, boolean dataEdgesVisible, boolean dataElementsVisible, boolean systemDataEdgesVisible, boolean systemDataElementsVisible, boolean decisionDataEdgesVisible, boolean decisionDataElementsVisible, boolean dataFlowLaneVisible, boolean syncEdgesVisible, boolean hiddenNodesVisible, Map<String,String> advancedOptions)
Creates render options with the designated values.- Parameters:
type
- The type of the image to be rendered.width
- The width of the rendered image to which it will be scaled. 0 omits scaling.height
- The height of the rendered image to which it will be scaled. 0 omits scaling.viewPort
- The part of the rendered image to be returned.null
returns the complete image. TheRectangle
must not be relative.dataEdgesVisible
- Whether data edges are to be rendered.dataElementsVisible
- Whether data elements are to be rendered.systemDataEdgesVisible
- Whether system data edges are to be rendered.systemDataElementsVisible
- Whether system data elements are to be rendered.decisionDataEdgesVisible
- Whether decision data edges are to be rendered.decisionDataElementsVisible
- Whether decision data elements are to be rendered.dataFlowLaneVisible
- Whether the data flow lane (part displaying data elements and edges) is to be rendered.syncEdgesVisible
- Whether synchronisation edges are to be rendered.hiddenNodesVisible
- Whether hidden nodes are to be rendered.advancedOptions
- Arbitrary additional options for the renderer ornull
for no additional options.- Returns:
- Render options with the designated values.
-
createProcessImageData
ProcessImageData createProcessImageData(String type, byte[] image, int width, int height)
Creates image data for the designated image having the designated values without node and data element areas and no user attributes and no plugin data.- Parameters:
type
- The type of the image.image
- The image.width
- The width of the image.height
- The height of the image.- Returns:
- Image data for the designated image having the designated values without node and data element areas and no user attributes and no plugin data.
-
createProcessImageData
ProcessImageData createProcessImageData(String type, byte[] image, int width, int height, Map<Integer,Rectangle> nodeArea, Map<Integer,Rectangle> dataElementArea)
Creates image data for the designated image having the designated values and no user attributes and no plugin data.- Parameters:
type
- The type of the image.image
- The image.width
- The width of the image.height
- The height of the image.nodeArea
- The area of the image where there are nodes, mapped from node ID to the corresponding rectangular area ornull
.dataElementArea
- The area of the image where there are data elements, mapped from data element ID to the corresponding rectangular area ornull
.- Returns:
- Image data for the designated image having the designated values and no user attributes and no plugin data.
-
createProcessImageData
ProcessImageData createProcessImageData(String type, byte[] image, int width, int height, Map<Integer,Rectangle> nodeArea, Map<Integer,Rectangle> dataElementArea, Map<String,Set<String>> supportedPlugins, Map<String,PluginData> pluginData, Map<String,String> userAttributes)
Creates image data for the designated image having the designated values.- Parameters:
type
- The type of the image.image
- The image.width
- The width of the image.height
- The height of the image.nodeArea
- The area of the image where there are nodes, mapped from node ID to the corresponding rectangular area ornull
.dataElementArea
- The area of the image where there are data elements, mapped from data element ID to the corresponding rectangular area ornull
.supportedPlugins
- Map from extension point IDs to plug-in IDs.pluginData
- Map from plug-in IDs to the associated plug-in data objects.userAttributes
- The user attributes.- Returns:
- Image data for the designated image having the designated values.
-
-