com.tensegrity.gui.swt.document
Class DocumentFactoryImpl

java.lang.Object
  extended bycom.tensegrity.gui.graphdocument.DocumentFactory
      extended bycom.tensegrity.gui.swt.document.DocumentFactoryImpl

public class DocumentFactoryImpl
extends DocumentFactory

This class provides several factory methods allowing creating GraphDocument s in a SWT context.

Version:
$Id: DocumentFactoryImpl.java,v 1.13 2005/12/16 09:04:42 BurkhardWick Exp $
Author:
Stepan Rutz, S�bastien Guyon

Constructor Summary
DocumentFactoryImpl()
          Constructs a new DocumentFactoryImpl instance.
 
Method Summary
 GraphDocument newGraphDocument(java.lang.String name, ApplicationFrame applicationFrame, DragContext vgoDragSource)
          The passed graphapplication is assumed to be a implementation of SwtParentContainerProvider
 GraphDocument newGraphDocument(java.lang.String name, ApplicationFrame applicationFrame, GraphController graphcontroller, VisualGraphView visualgraphview)
          Note that this implementation assumes that the passsed GraphApplication is also an SwtParentContainerProvider implementation.
 GraphDocument newGraphDocument(java.lang.String name, ApplicationFrame appFrame, GraphController graphcontroller, VisualGraphView visualgraphview, DragContext vgoDragSource)
          Note that this implementation assumes that the passsed GraphApplication is also an SwtParentContainerProvider implementation.
 GraphDocument newGraphDocument(java.lang.String name, GraphController graphcontroller, VisualGraphView visualgraphview)
          This method returns a new graphdocument.
 GraphDocument newGraphDocument(java.lang.String name, GraphController graphcontroller, VisualGraphView visualgraphview, DragContext vgoDragSource)
          This method returns a new graphdocument.
 
Methods inherited from class com.tensegrity.gui.graphdocument.DocumentFactory
newGraphDocument, newGraphDocument, newGraphDocument, newInstance, setDefaultFactory, setServiceFile
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

DocumentFactoryImpl

public DocumentFactoryImpl()
Constructs a new DocumentFactoryImpl instance.

Method Detail

newGraphDocument

public GraphDocument newGraphDocument(java.lang.String name,
                                      ApplicationFrame applicationFrame,
                                      GraphController graphcontroller,
                                      VisualGraphView visualgraphview)
Note that this implementation assumes that the passsed GraphApplication is also an SwtParentContainerProvider implementation.

Specified by:
newGraphDocument in class DocumentFactory
Parameters:
name - name of the document.
applicationFrame - reference to the application context.
graphcontroller - the graphcontroller instance that keeps the model.
visualgraphview - the visualgraph instance to show in the document.
Returns:
the created graph document instance.
See Also:
DocumentFactory.newGraphDocument(java.lang.String, com.tensegrity.gui.component.GraphApplication, com.tensegrity.graph.controller.GraphController, com.tensegrity.graph.view.VisualGraphView)

newGraphDocument

public GraphDocument newGraphDocument(java.lang.String name,
                                      GraphController graphcontroller,
                                      VisualGraphView visualgraphview)
Description copied from class: DocumentFactory
This method returns a new graphdocument.

Specified by:
newGraphDocument in class DocumentFactory
Parameters:
name - name of the document.
graphcontroller - the graphcontroller instance that keeps the model.
visualgraphview - the visualgraph instance to show in the document.
Returns:
the created graph document instance.
See Also:
DocumentFactory.newGraphDocument(java.lang.String, com.tensegrity.graph.controller.GraphController, com.tensegrity.graph.view.VisualGraphView)

newGraphDocument

public GraphDocument newGraphDocument(java.lang.String name,
                                      ApplicationFrame appFrame,
                                      GraphController graphcontroller,
                                      VisualGraphView visualgraphview,
                                      DragContext vgoDragSource)
Note that this implementation assumes that the passsed GraphApplication is also an SwtParentContainerProvider implementation.

Specified by:
newGraphDocument in class DocumentFactory
Parameters:
name - name of the document.
appFrame - reference to the application context.
graphcontroller - the graphcontroller instance that keeps the model.
visualgraphview - the visualgraph instance to show in the document.
vgoDragSource - a drag context that provide additional information about the recently dragged object.
Returns:
the created graph document instance.
See Also:
DocumentFactory.newGraphDocument(java.lang.String, com.tensegrity.gui.component.GraphApplication, com.tensegrity.graph.controller.GraphController, com.tensegrity.graph.view.VisualGraphView, com.tensegrity.gui.swing.dnd.DragContext)

newGraphDocument

public GraphDocument newGraphDocument(java.lang.String name,
                                      GraphController graphcontroller,
                                      VisualGraphView visualgraphview,
                                      DragContext vgoDragSource)
Description copied from class: DocumentFactory
This method returns a new graphdocument.

Specified by:
newGraphDocument in class DocumentFactory
Parameters:
name - name of the document.
graphcontroller - the graphcontroller instance that keeps the model.
visualgraphview - the visualgraph instance to show in the document.
vgoDragSource - a drag context that provide additional information about the recently dragged object.
Returns:
the created graph document instance.
See Also:
DocumentFactory.newGraphDocument(java.lang.String, com.tensegrity.graph.controller.GraphController, com.tensegrity.graph.view.VisualGraphView, com.tensegrity.gui.swing.dnd.DragContext)

newGraphDocument

public GraphDocument newGraphDocument(java.lang.String name,
                                      ApplicationFrame applicationFrame,
                                      DragContext vgoDragSource)
The passed graphapplication is assumed to be a implementation of SwtParentContainerProvider

Specified by:
newGraphDocument in class DocumentFactory
Parameters:
name - name of the document.
applicationFrame - reference to the application context.
vgoDragSource - a drag context that provide additional information about the recently dragged object.
Returns:
the created graph document instance.
See Also:
DocumentFactory.newGraphDocument(java.lang.String, com.tensegrity.gui.component.GraphApplication, com.tensegrity.gui.swing.dnd.DragContext)


Copyright © 2005 Tensegrity Software GmbH. All Rights Reserved. Date of creation: 09.06.2006.