edu.stanford.hci.dtools.statechart.palette
Class StateCreationFactory

java.lang.Object
  extended by org.eclipse.gef.requests.SimpleFactory
      extended by edu.stanford.hci.dtools.statechart.palette.StateCreationFactory
All Implemented Interfaces:
org.eclipse.gef.requests.CreationFactory

public class StateCreationFactory
extends org.eclipse.gef.requests.SimpleFactory

This software is distributed under the BSD License.

Author:
Michael Bernstein ( mbernst(AT)stanford.edu )

Constructor Summary
StateCreationFactory(java.lang.Class aClass, DeviceConfiguration config)
           
 
Method Summary
 DeviceConfiguration getDeviceConfiguration()
           
 StateModel getNewObject()
          Create the new object.
 void setDeviceConfiguration(DeviceConfiguration newConfig)
           
 
Methods inherited from class org.eclipse.gef.requests.SimpleFactory
getObjectType
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

StateCreationFactory

public StateCreationFactory(java.lang.Class aClass,
                            DeviceConfiguration config)
Method Detail

setDeviceConfiguration

public void setDeviceConfiguration(DeviceConfiguration newConfig)

getDeviceConfiguration

public DeviceConfiguration getDeviceConfiguration()

getNewObject

public StateModel getNewObject()
Create the new object.

Specified by:
getNewObject in interface org.eclipse.gef.requests.CreationFactory
Overrides:
getNewObject in class org.eclipse.gef.requests.SimpleFactory
Returns:
The newly created object.