Interface GraphObject

All Superinterfaces:
GraphContext, GraphManagerContext, ProducingNode, RegistryContext
All Known Subinterfaces:
SecGraph
All Known Implementing Classes:
GraphObjectImpl, GraphObjectRef, SecGraphImpl, SecGraphRef

public interface GraphObject extends RegistryContext, GraphManagerContext, ProducingNode
  • Method Summary

    Modifier and Type
    Method
    Description
    clone the graph of the rootnode and returns it
    Gives an array of node types and number contained in the GraphObject
    Return the graph manager of the GraphObject.
    Gives the name if one exists
    Return a node of the given name
    Return the root node of the GraphObject, i.e. the root of the object loaded
    void
    If the GraphObject uses some modules defined in the project, reload forces the modules in the GraphObject to be relinked after compilation
    Resolves the real object if a reference is used If the real object is used the function returns it self
    void
    Set the rootnode of a GraphObject object.
    void
    Opens the 2d view of the current graph
    void
    Opens the 3d view of the current graph
    void
    Override the file GraphObject in the project with its current version.

    Methods inherited from interface de.grogra.imp.objects.ProducingNode

    produceNode

    Methods inherited from interface de.grogra.pf.registry.RegistryContext

    getRegistry
  • Method Details

    • getRootNode

      Node getRootNode()
      Return the root node of the GraphObject, i.e. the root of the object loaded
      Returns:
      a Node
    • setRootNode

      void setRootNode(Node root)
      Set the rootnode of a GraphObject object.
      Parameters:
      root -
    • cloneGraph

      Node cloneGraph() throws CloneNotSupportedException
      clone the graph of the rootnode and returns it
      Returns:
      Throws:
      CloneNotSupportedException
    • write

      void write()
      Override the file GraphObject in the project with its current version. Required on GraphObject created in RGG to be saved
    • reload

      void reload()
      If the GraphObject uses some modules defined in the project, reload forces the modules in the GraphObject to be relinked after compilation
    • describes

      Object describes()
      Gives an array of node types and number contained in the GraphObject
      Returns:
    • getGraph

      GraphManager getGraph()
      Return the graph manager of the GraphObject. It is different from the graph manager of the project & workbench.
      Specified by:
      getGraph in interface GraphContext
      Specified by:
      getGraph in interface GraphManagerContext
      Returns:
    • getNode

      Node getNode(String key)
      Return a node of the given name
      Parameters:
      key - : the name of the type of node
    • resolve

      GraphObject resolve()
      Resolves the real object if a reference is used If the real object is used the function returns it self
      Returns:
    • view3d

      void view3d(Context ctx)
      Opens the 3d view of the current graph
      Parameters:
      ctx -
    • view2d

      void view2d(Context ctx)
      Opens the 2d view of the current graph
      Parameters:
      ctx -
    • getName

      String getName()
      Gives the name if one exists
      Returns: