Follow Techotopia on Twitter

On-line Guides
All Guides
eBook Store
iOS / Android
Linux for Beginners
Office Productivity
Linux Installation
Linux Security
Linux Utilities
Linux Virtualization
Linux Kernel
System/Network Admin
Programming
Scripting Languages
Development Tools
Web Development
GUI Toolkits/Desktop
Databases
Mail Systems
openSolaris
Eclipse Documentation
Techotopia.com
Virtuatopia.com

How To Guides
Virtualization
General System Admin
Linux Security
Linux Filesystems
Web Servers
Graphics & Desktop
PC Hardware
Windows
Problem Solutions
Privacy Policy

  




 

 

Eclipse GEF
3.3

org.eclipse.gef.requests
Class CreateRequest

java.lang.Object
  extended by

org.eclipse.gef.Request
      extended by
org.eclipse.gef.requests.CreateRequest
All Implemented Interfaces:
DropRequest
Direct Known Subclasses:
CreateConnectionRequest

public class CreateRequest
extends Request
implements DropRequest

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.
 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
getExtendedData, getType, setExtendedData, setType
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

CreateRequest

public CreateRequest()
Creates a CreateRequest with the default type.


CreateRequest

public CreateRequest(java.lang.Object type)
Creates a CreateRequest with the given type.

Parameters:
type - The type of request.
Method Detail

getFactory

protected 
CreationFactory getFactory()
Returns the CreationFactory for this request.

Returns:
the CreationFactory

getLocation

public 
Point getLocation()
Returns the location of the object to be created.

Specified by:
getLocation in interface DropRequest
Returns:
the location

getNewObject

public java.lang.Object getNewObject()
Gets the new object from the factory and returns that object.

Returns:
the new object

getNewObjectType

public java.lang.Object getNewObjectType()
Returns the type of the new object.

Returns:
the type of the new object

getSize

public 
Dimension getSize()
Returns the size of the object to be created.

Returns:
the size

setFactory

public void setFactory(
CreationFactory factory)
Sets the factory to be used when creating the new object.

Parameters:
factory - the factory

setLocation

public void setLocation(
Point location)
Sets the location where the new object will be placed.

Parameters:
location - the location

setSize

public void setSize(
Dimension size)
Sets the size of the new object.

Parameters:
size - the size

Eclipse GEF
3.3

Copyright (c) IBM Corp. and others 2000, 2007. All Rights Reserved.

 
 
  Published under the terms of the Eclipse Public License Version 1.0 ("EPL") Design by Interspire