Interface GraphicalModelFactory

    • 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 or null 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 or null 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. The Rectangle 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 or null 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 or null.
        dataElementArea - The area of the image where there are data elements, mapped from data element ID to the corresponding rectangular area or null.
        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 or null.
        dataElementArea - The area of the image where there are data elements, mapped from data element ID to the corresponding rectangular area or null.
        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.