|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectorg.eclipse.gef.Request
org.eclipse.gef.requests.CreateRequest
public class CreateRequest
A Request to create a new object.
Constructor Summary | |
---|---|
CreateRequest()
Creates a CreateRequest with the default type. |
|
CreateRequest(java.lang.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. |
java.lang.Object |
getNewObject()
Gets the new object from the factory and returns that object. |
java.lang.Object |
getNewObjectType()
Returns the type of the new object. |
Dimension |
getSize()
Returns the size of the object to be created. |
boolean |
isSnapToEnabled()
Returns true if snap-to is enabled |
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. |
void |
setSnapToEnabled(boolean value)
Used to set whether snap-to is being performed. |
Methods inherited from class org.eclipse.gef.Request |
---|
getExtendedData, getType, setExtendedData, 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(java.lang.Object type)
type
- The type of request.Method Detail |
---|
protected CreationFactory getFactory()
public Point getLocation()
getLocation
in interface DropRequest
public java.lang.Object getNewObject()
public java.lang.Object getNewObjectType()
public Dimension getSize()
public boolean isSnapToEnabled()
true
if snap-to is enabled
true
if the request is for a creation with snap-to
enabledpublic void setFactory(CreationFactory factory)
factory
- the factorypublic void setLocation(Point location)
location
- the locationpublic void setSize(Dimension size)
size
- the sizepublic void setSnapToEnabled(boolean value)
value
- true
if the request is for a creation with
snap-to enabled
|
GEF (MVC) 3.9.0.201308190730 |
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |