Modelers

org.topcased.modeler.editor
Class AbstractCreationUtils

java.lang.Object
  extended by org.topcased.modeler.editor.AbstractCreationUtils
All Implemented Interfaces:
ICreationUtils

public abstract class AbstractCreationUtils
extends java.lang.Object
implements ICreationUtils


creation : 2 nov. 2005


Constructor Summary
AbstractCreationUtils(DiagramGraphConf diagramConf)
          Constructor
 
Method Summary
protected  GraphEdge createGraphEdge(EObject model)
          Creates a graph edge for an EMF object
protected  GraphEdge createGraphEdge(EObject model, java.lang.String presentation)
          Creates a graph edge for an EMF object with a given presentation
 GraphElement createGraphElement(EObject model)
          Create the GraphElement with its initial children and a given presentation
protected  GraphNode createGraphNode(EObject model)
          Creates a graph node for an EMF object
protected  GraphNode createGraphNode(EObject model, int featureID)
          Creates a graph node for the EStructuralFeature of an EMF object
protected  GraphNode createGraphNode(EObject model, int featureID, java.lang.String presentation)
          Creates a graph node for the EStructuralFeature of an EMF object with a given presentation
protected  GraphNode createGraphNode(EObject model, java.lang.String presentation)
          Creates a graph node for an EMF object with a given presentation
protected  java.lang.String getDefaultPresentation(EObject obj)
          Get the first presentation of the model object
protected  DiagramGraphConf getDiagramGraphConf()
          Return the Diagram Graphical Configuration associated with this Factory
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface org.topcased.modeler.editor.ICreationUtils
createGraphElement, createModelObject
 

Constructor Detail

AbstractCreationUtils

public AbstractCreationUtils(DiagramGraphConf diagramConf)
Constructor

Parameters:
diagramConf - the Diagram Graphical Configuration
Method Detail

getDiagramGraphConf

protected DiagramGraphConf getDiagramGraphConf()
Return the Diagram Graphical Configuration associated with this Factory

Returns:
the Diagram Graphical Configuration

getDefaultPresentation

protected java.lang.String getDefaultPresentation(EObject obj)
Get the first presentation of the model object

Parameters:
obj - the model object
Returns:
the first presentation encountered in the diagram.graphconf file.

createGraphElement

public GraphElement createGraphElement(EObject model)
Description copied from interface: ICreationUtils
Create the GraphElement with its initial children and a given presentation

Specified by:
createGraphElement in interface ICreationUtils
Parameters:
model - the model object
Returns:
the GraphElement
See Also:
ICreationUtils.createGraphElement(org.eclipse.emf.ecore.EObject)

createGraphNode

protected GraphNode createGraphNode(EObject model)
Creates a graph node for an EMF object

Parameters:
model - the EMF Object
Returns:
the graph node

createGraphNode

protected GraphNode createGraphNode(EObject model,
                                    java.lang.String presentation)
Creates a graph node for an EMF object with a given presentation

Parameters:
model - the EMF Object
presentation - the presentation of the graphical element
Returns:
the graph node

createGraphNode

protected GraphNode createGraphNode(EObject model,
                                    int featureID)
Creates a graph node for the EStructuralFeature of an EMF object

Parameters:
model - the EMF Object
featureID - the EStructuralFeatureID
Returns:
the graph node

createGraphNode

protected GraphNode createGraphNode(EObject model,
                                    int featureID,
                                    java.lang.String presentation)
Creates a graph node for the EStructuralFeature of an EMF object with a given presentation

Parameters:
model - the EMF Object
featureID - the EStructuralFeatureID
presentation - the presentation of the graphical element
Returns:
the graph node

createGraphEdge

protected GraphEdge createGraphEdge(EObject model)
Creates a graph edge for an EMF object

Parameters:
model - the EMF Object
Returns:
the graph edge

createGraphEdge

protected GraphEdge createGraphEdge(EObject model,
                                    java.lang.String presentation)
Creates a graph edge for an EMF object with a given presentation

Parameters:
model - the EMF Object
presentation - the presentation of the graphical element
Returns:
the graph edge

Modelers

Copyright (c) 2005 TOPCASED Contributors 2005 - 2007. All rights reserved.