Class EMFNotationGModelFactory

  • All Implemented Interfaces:
    GModelFactory

    public abstract class EMFNotationGModelFactory
    extends EMFGModelFactory
    A graph model factory produces a graph model from the semantic model and the notation model in the model state.
    • Constructor Detail

      • EMFNotationGModelFactory

        public EMFNotationGModelFactory()
    • Method Detail

      • fillRootElement

        protected void fillRootElement​(GModelRoot newRoot)
        Description copied from class: EMFGModelFactory
        Fills the new root element with a graph model derived from the source model.
        Specified by:
        fillRootElement in class EMFGModelFactory
        Parameters:
        newRoot - new graph model root
      • fillRootElement

        protected abstract void fillRootElement​(org.eclipse.emf.ecore.EObject semanticModel,
                                                Diagram notationModel,
                                                GModelRoot newRoot)
        Fills the new root element with a graph model drived from the semantic and the notation model.
        Parameters:
        semanticModel - semantic model root
        notationModel - notation model root
        newRoot - new graph model root
      • applyShapeData

        protected GNodeBuilder applyShapeData​(org.eclipse.emf.ecore.EObject shapeElement,
                                              GNodeBuilder builder)
        Applies all layout related data from the shape semantic element to the builder if possible.
        Parameters:
        shapeElement - element represented by a shape in the notation
        builder - node builder
        Returns:
        the given builder
      • applyEdgeData

        protected GEdgeBuilder applyEdgeData​(org.eclipse.emf.ecore.EObject edgeElement,
                                             GEdgeBuilder builder)
        Applies all layout related data from the edge semantic element to the builder if possible.
        Parameters:
        edgeElement - element represented by an edge in the notation
        builder - edge builder
        Returns:
        the given builder