Modelers

org.topcased.modeler.editor
Class GraphElementCreationFactory

java.lang.Object
  extended by org.topcased.modeler.editor.GraphElementCreationFactory
All Implemented Interfaces:
org.eclipse.gef.requests.CreationFactory

public class GraphElementCreationFactory
extends java.lang.Object
implements org.eclipse.gef.requests.CreationFactory

Basic factory to create Graph Element objects.
creation : 8 nov. 2004


Constructor Summary
GraphElementCreationFactory(ICreationUtils creation, EClass eClass)
          Constructor
GraphElementCreationFactory(ICreationUtils creation, EClass eClass, java.lang.String presentation)
          Constructor
GraphElementCreationFactory(ICreationUtils creation, java.lang.String type, boolean isNode)
          Constructor
GraphElementCreationFactory(ICreationUtils creation, java.lang.String type, java.lang.String presentation, boolean isNode)
          Constructor
 
Method Summary
 EClass getEClass()
           
 EObject getNewModelObject()
          Get the EObject that is instantiated
 java.lang.Object getNewObject()
           
 java.lang.Object getObjectType()
           
 java.lang.String getPresentation()
           
 java.lang.String getType()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GraphElementCreationFactory

public GraphElementCreationFactory(ICreationUtils creation,
                                   EClass eClass)
Constructor

Parameters:
creation - The class to initialize the objects
eClass - the EClass to create

GraphElementCreationFactory

public GraphElementCreationFactory(ICreationUtils creation,
                                   EClass eClass,
                                   java.lang.String presentation)
Constructor

Parameters:
creation - The class to initialize the objects
eClass - the EClass to create
presentation - the presentation of the graphical element

GraphElementCreationFactory

public GraphElementCreationFactory(ICreationUtils creation,
                                   java.lang.String type,
                                   boolean isNode)
Constructor

Parameters:
creation - The class to initialize the objects
type - the type identifying the object
isNode -

GraphElementCreationFactory

public GraphElementCreationFactory(ICreationUtils creation,
                                   java.lang.String type,
                                   java.lang.String presentation,
                                   boolean isNode)
Constructor

Parameters:
creation - The class to initialize the objects
type - the type identifying the object
presentation - the presentation of the graphical element
isNode -
Method Detail

getNewModelObject

public EObject getNewModelObject()
Get the EObject that is instantiated

Returns:
EObject

getNewObject

public java.lang.Object getNewObject()
Specified by:
getNewObject in interface org.eclipse.gef.requests.CreationFactory
See Also:
CreationFactory.getNewObject()

getObjectType

public java.lang.Object getObjectType()
Specified by:
getObjectType in interface org.eclipse.gef.requests.CreationFactory
See Also:
CreationFactory.getObjectType()

getPresentation

public java.lang.String getPresentation()
Returns:
the presentation

getEClass

public EClass getEClass()
Returns:
the eClass

getType

public java.lang.String getType()
Returns:
the type

Modelers

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