Interface GraphFigureProvider

  • All Known Implementing Classes:
    BPMNSymbols, ModelGlue

    public interface GraphFigureProvider
    Implement this interface to provide your own symbols for the AristaFlow process graph
    Author:
    MartinJurisch
    • Method Summary

      All Methods Instance Methods Abstract Methods 
      Modifier and Type Method Description
      void adaptDataEdgeFigure​(de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface pci, ActivityConstants.AccessType type, boolean optional, boolean decision)
      Adapts the designated process connection (representing a data edge) according to the designated type and optional flag.
      de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface createFigureForEdge​(ProcessConstants.EdgeType type)
      Create an appropriate ProcessConnection depending on the given edge type
      org.eclipse.draw2d.IFigure getBranchFigure()
      Creates an IFigure from the widgets package for a branch edit part
      org.eclipse.draw2d.ConnectionRouter getConnectionRouter​(UISettings uiSettings)
      Creates and returns a connection router which is used to route the connection between graph elements
      de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface getDataEdgeFigure​(ActivityConstants.AccessType type, boolean optional, boolean decision)
      Create a ProcessConnection for a data edge.
      de.aristaflow.adept2.ui.processvisualisation.widgets.DataElementAnchor getDataElementAnchor​(org.eclipse.draw2d.IFigure figure)
      Creates an Anchor for a data element figure
      de.aristaflow.adept2.ui.processvisualisation.widgets.DataFigureInterface getDataElementFigure​(de.aristaflow.adept2.ui.processvisualisation.parts.DataElementEditPart editPart)
      Create an IFigure from the widgets package for a data element
      de.aristaflow.adept2.ui.processvisualisation.widgets.GraphFigureFormatter getGraphFigureFormatter()
      Creates and returns a formatter for the process graph figures
      de.aristaflow.adept2.ui.processvisualisation.widgets.NodeAnchor getNodeAnchor​(ProcessConstants.NodeType type, org.eclipse.draw2d.IFigure figure)
      Creates an Anchor for a node figure
      de.aristaflow.adept2.ui.processvisualisation.widgets.NodeFigureInterface getNodeFigure​(ProcessConstants.NodeType type)
      Creates an IFigure from the widgets package for a Node
      List<Integer> sortNodes​(int[] nodes, Template t)
      Sort a list of Nodes by their branch ID and return the sorted Collection as a new List.
    • Method Detail

      • getGraphFigureFormatter

        de.aristaflow.adept2.ui.processvisualisation.widgets.GraphFigureFormatter getGraphFigureFormatter()
        Creates and returns a formatter for the process graph figures
        Returns:
        a graph formatter
      • getBranchFigure

        org.eclipse.draw2d.IFigure getBranchFigure()
        Creates an IFigure from the widgets package for a branch edit part
        Returns:
        the widget for the branch
      • getNodeAnchor

        de.aristaflow.adept2.ui.processvisualisation.widgets.NodeAnchor getNodeAnchor​(ProcessConstants.NodeType type,
                                                                                      org.eclipse.draw2d.IFigure figure)
        Creates an Anchor for a node figure
        Parameters:
        type - the NodeType of the represented node
        figure - the figure where the anchor should be created for
        Returns:
        an appropriate NodeAnchor
      • getNodeFigure

        de.aristaflow.adept2.ui.processvisualisation.widgets.NodeFigureInterface getNodeFigure​(ProcessConstants.NodeType type)
        Creates an IFigure from the widgets package for a Node
        Parameters:
        type - the type of the Node
        Returns:
        the widget for the node
      • getDataElementAnchor

        de.aristaflow.adept2.ui.processvisualisation.widgets.DataElementAnchor getDataElementAnchor​(org.eclipse.draw2d.IFigure figure)
        Creates an Anchor for a data element figure
        Parameters:
        figure - the figure where the anchor should be created for
        Returns:
        an appropriate DataElementAnchor
      • getDataElementFigure

        de.aristaflow.adept2.ui.processvisualisation.widgets.DataFigureInterface getDataElementFigure​(de.aristaflow.adept2.ui.processvisualisation.parts.DataElementEditPart editPart)
        Create an IFigure from the widgets package for a data element
        Parameters:
        editPart - the editPart the widget is created for
        Returns:
        the widget for the data element
      • getConnectionRouter

        org.eclipse.draw2d.ConnectionRouter getConnectionRouter​(UISettings uiSettings)
        Creates and returns a connection router which is used to route the connection between graph elements
        Parameters:
        uiSettings - the uiSettings which can be used to get default values for the routing
        Returns:
        an appropriate ConnectionRouuter
      • createFigureForEdge

        de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface createFigureForEdge​(ProcessConstants.EdgeType type)
        Create an appropriate ProcessConnection depending on the given edge type
        Parameters:
        type - the type of the edge
        Returns:
        a ProcessConnection that is correct for the edges type
      • getDataEdgeFigure

        de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface getDataEdgeFigure​(ActivityConstants.AccessType type,
                                                                                                          boolean optional,
                                                                                                          boolean decision)
        Create a ProcessConnection for a data edge.
        Parameters:
        type - The access type of the data edge.
        optional - Whether the data edge is optional.
        decision - Whether the data edge is a decision data edge.
        Returns:
        a ProcessConnection for a data edge
      • adaptDataEdgeFigure

        void adaptDataEdgeFigure​(de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface pci,
                                 ActivityConstants.AccessType type,
                                 boolean optional,
                                 boolean decision)
        Adapts the designated process connection (representing a data edge) according to the designated type and optional flag.
        Parameters:
        pci - The ProcessConnection for a data edge.
        type - The access type of the data edge.
        optional - Whether the data edge is optional.
        decision - Whether the data edge is a decision data edge.
      • sortNodes

        List<Integer> sortNodes​(int[] nodes,
                                Template t)
        Sort a list of Nodes by their branch ID and return the sorted Collection as a new List. The passed List is not modified
        Parameters:
        nodes - the list of node IDs
        t - the Template containing the nodes
        Returns:
        a sorted copy of the List