Modelers

org.topcased.modeler.editor
Class DropFactory

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

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

This factory is used for the creation of graphical objects from existing model objects.
creation : 4 mai 2005


Constructor Summary
DropFactory(Modeler editor)
          The Constructor
 
Method Summary
 java.lang.Object getNewObject()
          Returns the List of object selected.
 java.lang.Object getObjectType()
          Returns the type of the new object.
 void setTransferredObjects(java.util.List transf)
          Set the objects that are dragged.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DropFactory

public DropFactory(Modeler editor)
The Constructor

Parameters:
editor - the Topcased editor
Method Detail

getNewObject

public java.lang.Object getNewObject()
Returns the List of object selected. Only GraphNodes are treated.

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

getObjectType

public java.lang.Object getObjectType()
Returns the type of the new object. Always null

Specified by:
getObjectType in interface org.eclipse.gef.requests.CreationFactory
Returns:
null
See Also:
CreationFactory.getObjectType()

setTransferredObjects

public void setTransferredObjects(java.util.List transf)
Set the objects that are dragged.

Parameters:
transf - the list of object

Modelers

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