Class KEdgeExtensions
java.lang.Object
de.cau.cs.kieler.klighd.krendering.extensions.KEdgeExtensions
Provides some helpful extension methods for simplifying the composition of KGraph/KRendering-based view models.
In order to employ them beyond KLighD diagram syntheses you best declare a field of type
Make sure to bind the
By means of that
In order to employ them beyond KLighD diagram syntheses you best declare a field of type
KNodeExtensions in your class and annotate it with Inject.Make sure to bind the
ViewSynthesisShared annotation in the employed
Injector to a Scope, e.g. by calling
Guice.createInjector(KRenderingExtensionsPlugin.createSingletonScopeBindingModule()); or
Guice.createInjector(KRenderingExtensionsPlugin.createNoScopeBindingModule());.By means of that
Injector you may get a new instance of your class,
or you may inject the above mentioned attribute within instances of your class, e.g. by calling
injector.injectMembers(this) in the constructor of your class.- Author:
- chsch, ssm, nre
- This class contains Xtend extension methods.
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> KEdgeaddLayoutParam(KEdge edge, org.eclipse.elk.graph.properties.IProperty<? super T> property, T value) addPolyline(KEdge e) addPolyline(KEdge e, float lineWidth) addRoundedBendsPolyline(KEdge e, float bendRadius) addRoundedBendsPolyline(KEdge e, float bendRadius, float lineWidth) A convenience method to create a KEdge without relating it to a business object.createEdge(Object o1) An alias ofgetEdge(Object o1)allowing to express in business that the KEdge will be created at this place.createEdge(Object... os) An alias ofgetEdge(Object o1)allowing to express in business that the KEdge will be created at this place.createEdge(Object o1, Object o2) An alias ofgetEdge(Object o1, Object o2)allowing to express in business that the KEdge will be created at this place.createEdge(Object o1, Object o2, Object o3) An alias ofgetEdge(Object o1, Object o2, Object o3)allowing to express in business that the KEdge will be created at this place.createEdge(Object o1, Object o2, Object o3, Object o4) An alias ofgetEdge(Object o1, Object o2, Object o3, Object o4)allowing to express in business that the KEdge will be created at this place.createNewEdge(Object o1) Similar to createEdge, createNewEdge creates a new edge related to an object.createNewEdge(Object o1, Object o2) Similar to createEdge, createNewEdge creates a new edge related to an object.createNewEdge(Object o1, Object o2, Object o3) Similar to createEdge, createNewEdge creates a new edge related to an object.booleanedgeExists(Object o1) A convenient test method to check whether or not a specific edge exists in the create extensionbooleanedgeExists(Object... os) A convenient test method to check whether or not a specific edge exists in the create extensionbooleanedgeExists(Object o1, Object o2) A convenient test method to check whether or not a specific edge exists in the create extensionbooleanedgeExists(Object o1, Object o2, Object o3) A convenient test method to check whether or not a specific edge exists in the create extensionbooleanedgeExists(Object o1, Object o2, Object o3, Object o4) A convenient test method to check whether or not a specific edge exists in the create extensiongetAllEdges(Object o1) The method getAllEdges retrieves all edges linked to a specific (semantic) object.getAllEdges(Object o1, Object o2) The method getAllEdges retrieves all edges linked to a specific (semantic) object.getAllEdges(Object o1, Object o2, Object o3) The method getAllEdges retrieves all edges linked to a specific (semantic) object.A convenient port getter based on a single business object preserving the element image relation by a create extension.A convenient port getter based on a single business object preserving the element image relation by a create extension.A convenient port getter based on a two business objects preserving the element image relation by a create extension.A convenient port getter based on a three business objects preserving the element image relation by a create extension.A convenient port getter based on a four business objects preserving the element image relation by a create extension.getSemanticObject(KEdge edge) getSemanticObject returns the primary (semantic) object of an edge.
-
Constructor Details
-
KEdgeExtensions
public KEdgeExtensions()
-
-
Method Details
-
edgeExists
A convenient test method to check whether or not a specific edge exists in the create extension -
edgeExists
A convenient test method to check whether or not a specific edge exists in the create extension -
edgeExists
A convenient test method to check whether or not a specific edge exists in the create extension -
edgeExists
A convenient test method to check whether or not a specific edge exists in the create extension -
edgeExists
A convenient test method to check whether or not a specific edge exists in the create extension -
getEdge
A convenient port getter based on a single business object preserving the element image relation by a create extension. -
getEdge
A convenient port getter based on a two business objects preserving the element image relation by a create extension. -
getEdge
A convenient port getter based on a three business objects preserving the element image relation by a create extension. -
getEdge
A convenient port getter based on a four business objects preserving the element image relation by a create extension. -
getEdge
A convenient port getter based on a single business object preserving the element image relation by a create extension. -
createEdge
A convenience method to create a KEdge without relating it to a business object. -
createEdge
An alias ofgetEdge(Object o1)allowing to express in business that the KEdge will be created at this place. It is just syntactic sugar. -
createEdge
An alias ofgetEdge(Object o1, Object o2)allowing to express in business that the KEdge will be created at this place. It is just syntactic sugar. -
createEdge
An alias ofgetEdge(Object o1, Object o2, Object o3)allowing to express in business that the KEdge will be created at this place. It is just syntactic sugar. -
createEdge
An alias ofgetEdge(Object o1, Object o2, Object o3, Object o4)allowing to express in business that the KEdge will be created at this place. It is just syntactic sugar. -
createEdge
An alias ofgetEdge(Object o1)allowing to express in business that the KEdge will be created at this place. It is just syntactic sugar. -
createNewEdge
Similar to createEdge, createNewEdge creates a new edge related to an object. Furthermore, the method makes sure a new edge is created and stored in the create extensions. -
createNewEdge
Similar to createEdge, createNewEdge creates a new edge related to an object. Furthermore, the method makes sure a new edge is created and stored in the create extensions. -
createNewEdge
Similar to createEdge, createNewEdge creates a new edge related to an object. Furthermore, the method makes sure a new edge is created and stored in the create extensions. -
getAllEdges
The method getAllEdges retrieves all edges linked to a specific (semantic) object. -
getAllEdges
The method getAllEdges retrieves all edges linked to a specific (semantic) object. -
getAllEdges
The method getAllEdges retrieves all edges linked to a specific (semantic) object. -
getSemanticObject
getSemanticObject returns the primary (semantic) object of an edge. -
addLayoutParam
-
addPolyline
-
addPolyline
-
addRoundedBendsPolyline
-
addRoundedBendsPolyline
-
addSpline
-
addSpline
-