pl.edu.agh.cast.schema.editor.request
Class SchemaNodeFactory

java.lang.Object
  extended by pl.edu.agh.cast.schema.editor.request.SchemaNodeFactory
All Implemented Interfaces:
org.eclipse.gef.requests.CreationFactory, ICreationFactory

public class SchemaNodeFactory
extends Object
implements ICreationFactory

Creation factory which produces new visual and presentation schema nodes.

Author:
AGH CAST Team

Constructor Summary
SchemaNodeFactory(IVisualResource resource)
          Constructor.
 
Method Summary
 Object getNewObject()
          This method is unsupported by this implementation.
 Object getNewObject(ISchemaDataSet dataSet)
          Returns the new object which belongs to given data set.
 Type getObjectType()
          
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SchemaNodeFactory

public SchemaNodeFactory(IVisualResource resource)
Constructor.

Parameters:
resource - resource associated with new node objects create by this factory
Method Detail

getNewObject

public Object getNewObject()
This method is unsupported by this implementation. Use getNewObject(ISchemaDataSet) method instead.

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

getObjectType

public Type getObjectType()

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

getNewObject

public Object getNewObject(ISchemaDataSet dataSet)
Returns the new object which belongs to given data set. This method is used by SchemaNodeCreateRequest.

Specified by:
getNewObject in interface ICreationFactory
Parameters:
dataSet - visual data set
Returns:
a new visual node object


Copyright © 2007-2009 IISG AGH-UST Krakow, Poland. All Rights Reserved.