Class BPMNSymbols
java.lang.Object
de.aristaflow.adept2.ui.processvisualisation.widgets.bpmn.BPMNSymbols
- All Implemented Interfaces:
GraphFigureProvider
An implementation for graph elements using BPMN symbols instead of the normal AristaFlow symbols.
- Author:
- MartinJurisch
-
Field Summary
FieldsModifier and TypeFieldDescriptionprotected de.aristaflow.adept2.ui.processvisualisation.widgets.bpmn.BPMNConnectionRoutera connection router for BPMN connection figuresprotected de.aristaflow.adept2.ui.processvisualisation.widgets.GraphFigureFormattera figure formatter for BPMN figuresprotected static final LoggerThe logger used to log error messages. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoidadaptDataEdgeFigure(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.ProcessConnectionInterfaceCreate an appropriate ProcessConnection depending on the given edge typeorg.eclipse.draw2d.IFigureCreates an IFigure from the widgets package for a branch edit partorg.eclipse.draw2d.ConnectionRoutergetConnectionRouter(UISettings uiSettings) Creates and returns a connection router which is used to route the connection between graph elementsde.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterfacegetDataEdgeFigure(ActivityConstants.AccessType type, boolean optional, boolean decision) Create a ProcessConnection for a data edge.de.aristaflow.adept2.ui.processvisualisation.widgets.DataElementAnchorgetDataElementAnchor(org.eclipse.draw2d.IFigure figure) Creates an Anchor for a data element figurede.aristaflow.adept2.ui.processvisualisation.widgets.DataFigureInterfacegetDataElementFigure(de.aristaflow.adept2.ui.processvisualisation.parts.DataElementEditPart editPart) Create an IFigure from the widgets package for a data elementde.aristaflow.adept2.ui.processvisualisation.widgets.GraphFigureFormatterCreates and returns a formatter for the process graph figuresde.aristaflow.adept2.ui.processvisualisation.widgets.NodeAnchorgetNodeAnchor(ProcessConstants.NodeType type, org.eclipse.draw2d.IFigure figure) Creates an Anchor for a node figurede.aristaflow.adept2.ui.processvisualisation.widgets.bpmn.NodeFigureCreates an IFigure from the widgets package for a NodeSort a list of Nodes by their branch ID and return the sorted Collection as a new List.
-
Field Details
-
logger
The logger used to log error messages. -
formatter
protected de.aristaflow.adept2.ui.processvisualisation.widgets.GraphFigureFormatter formattera figure formatter for BPMN figures -
connectionRouter
protected de.aristaflow.adept2.ui.processvisualisation.widgets.bpmn.BPMNConnectionRouter connectionRoutera connection router for BPMN connection figures
-
-
Constructor Details
-
BPMNSymbols
public BPMNSymbols()
-
-
Method Details
-
getGraphFigureFormatter
public de.aristaflow.adept2.ui.processvisualisation.widgets.GraphFigureFormatter getGraphFigureFormatter()Description copied from interface:GraphFigureProviderCreates and returns a formatter for the process graph figures- Specified by:
getGraphFigureFormatterin interfaceGraphFigureProvider- Returns:
- a graph formatter
-
createFigureForEdge
public de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface createFigureForEdge(ProcessConstants.EdgeType type) Description copied from interface:GraphFigureProviderCreate an appropriate ProcessConnection depending on the given edge type- Specified by:
createFigureForEdgein interfaceGraphFigureProvider- Parameters:
type- the type of the edge- Returns:
- a ProcessConnection that is correct for the edges type
-
getConnectionRouter
Description copied from interface:GraphFigureProviderCreates and returns a connection router which is used to route the connection between graph elements- Specified by:
getConnectionRouterin interfaceGraphFigureProvider- Parameters:
uiSettings- the uiSettings which can be used to get default values for the routing- Returns:
- an appropriate ConnectionRouuter
-
getNodeAnchor
public de.aristaflow.adept2.ui.processvisualisation.widgets.NodeAnchor getNodeAnchor(ProcessConstants.NodeType type, org.eclipse.draw2d.IFigure figure) Description copied from interface:GraphFigureProviderCreates an Anchor for a node figure- Specified by:
getNodeAnchorin interfaceGraphFigureProvider- Parameters:
type- the NodeType of the represented nodefigure- the figure where the anchor should be created for- Returns:
- an appropriate NodeAnchor
-
getDataElementAnchor
public de.aristaflow.adept2.ui.processvisualisation.widgets.DataElementAnchor getDataElementAnchor(org.eclipse.draw2d.IFigure figure) Description copied from interface:GraphFigureProviderCreates an Anchor for a data element figure- Specified by:
getDataElementAnchorin interfaceGraphFigureProvider- Parameters:
figure- the figure where the anchor should be created for- Returns:
- an appropriate DataElementAnchor
-
getNodeFigure
public de.aristaflow.adept2.ui.processvisualisation.widgets.bpmn.NodeFigure getNodeFigure(ProcessConstants.NodeType type) Description copied from interface:GraphFigureProviderCreates an IFigure from the widgets package for a Node- Specified by:
getNodeFigurein interfaceGraphFigureProvider- Parameters:
type- the type of the Node- Returns:
- the widget for the node
-
getBranchFigure
public org.eclipse.draw2d.IFigure getBranchFigure()Description copied from interface:GraphFigureProviderCreates an IFigure from the widgets package for a branch edit part- Specified by:
getBranchFigurein interfaceGraphFigureProvider- Returns:
- the widget for the branch
-
getDataElementFigure
public de.aristaflow.adept2.ui.processvisualisation.widgets.DataFigureInterface getDataElementFigure(de.aristaflow.adept2.ui.processvisualisation.parts.DataElementEditPart editPart) Description copied from interface:GraphFigureProviderCreate an IFigure from the widgets package for a data element- Specified by:
getDataElementFigurein interfaceGraphFigureProvider- Parameters:
editPart- the editPart the widget is created for- Returns:
- the widget for the data element
-
getDataEdgeFigure
public de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface getDataEdgeFigure(ActivityConstants.AccessType type, boolean optional, boolean decision) Description copied from interface:GraphFigureProviderCreate a ProcessConnection for a data edge.- Specified by:
getDataEdgeFigurein interfaceGraphFigureProvider- 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
public void adaptDataEdgeFigure(de.aristaflow.adept2.ui.processvisualisation.widgets.ProcessConnectionInterface pci, ActivityConstants.AccessType type, boolean optional, boolean decision) Description copied from interface:GraphFigureProviderAdapts the designated process connection (representing a data edge) according to the designated type and optional flag.- Specified by:
adaptDataEdgeFigurein interfaceGraphFigureProvider- 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
Description copied from interface:GraphFigureProviderSort a list of Nodes by their branch ID and return the sorted Collection as a new List. The passed List is not modified- Specified by:
sortNodesin interfaceGraphFigureProvider- Parameters:
nodes- the list of node IDst- the Template containing the nodes- Returns:
- a sorted copy of the List
-