pl.edu.agh.cast.model.visual
Class NodeFactory

java.lang.Object
  extended by pl.edu.agh.cast.model.visual.NodeFactory
All Implemented Interfaces:
org.eclipse.gef.requests.CreationFactory

public class NodeFactory
extends java.lang.Object
implements org.eclipse.gef.requests.CreationFactory

Class responsible for creating new nodes

Author:
awos

Constructor Summary
NodeFactory(java.lang.String prefix, java.lang.String imageId)
           
 
Method Summary
 IDiagram getDiagram()
           
 java.lang.String getImageId()
          Returns image identifier that should be used as an icon for entities created by this factory
 java.lang.Object getNewObject()
           
 java.lang.Object getObjectType()
           
 void setDiagram(Diagram diagram)
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

NodeFactory

public NodeFactory(java.lang.String prefix,
                   java.lang.String imageId)
Method Detail

getNewObject

public java.lang.Object getNewObject()
Specified by:
getNewObject in interface org.eclipse.gef.requests.CreationFactory

getObjectType

public java.lang.Object getObjectType()
Specified by:
getObjectType in interface org.eclipse.gef.requests.CreationFactory

getImageId

public java.lang.String getImageId()
Returns image identifier that should be used as an icon for entities created by this factory


getDiagram

public IDiagram getDiagram()

setDiagram

public void setDiagram(Diagram diagram)


Copyright © 2007-2008 AGH University of Science and Technology. All Rights Reserved.