|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--org.eclipse.gef.Request | +--org.eclipse.gef.requests.CreateRequest
A Request to create a new object.
Constructor Summary | |
CreateRequest()
Creates a CreateRequest with the default type. |
|
CreateRequest(Object type)
Creates a CreateRequest with the given type. |
Method Summary | |
protected CreationFactory |
getFactory()
Returns the CreationFactory for this request. |
Point |
getLocation()
Returns the location of the object to be created. |
Object |
getNewObject()
Gets the new object from the factory and returns that object. |
Object |
getNewObjectType()
Returns the type of the new object. |
Dimension |
getSize()
Returns the size of the object to be created. |
void |
setFactory(CreationFactory factory)
Sets the factory to be used when creating the new object. |
void |
setLocation(Point location)
Sets the location where the new object will be placed. |
void |
setSize(Dimension size)
Sets the size of the new object. |
Methods inherited from class org.eclipse.gef.Request |
getType, setType |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
public CreateRequest()
public CreateRequest(Object type)
type
- The type of request.Method Detail |
protected CreationFactory getFactory()
public Point getLocation()
getLocation
in interface DropRequest
public Object getNewObject()
public Object getNewObjectType()
public Dimension getSize()
public void setFactory(CreationFactory factory)
factory
- the factorypublic void setLocation(Point location)
location
- the locationpublic void setSize(Dimension size)
size
- the size
|
Eclipse GEF 2.1 |
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |