Class SubGraphImpl

All Implemented Interfaces:
GraphObject, SubGraph, Manageable, Shareable, RegistryContext, Showable, Serializable

public class SubGraphImpl extends GraphObjectImpl implements SubGraph
See Also:
  • Field Details

    • MIME_TYPE

      public static final MimeType MIME_TYPE
  • Constructor Details

    • SubGraphImpl

      public SubGraphImpl(Node n, Context ctx)
    • SubGraphImpl

      public SubGraphImpl(Context ctx)
  • Method Details

    • isAutoRecreate

      public boolean isAutoRecreate()
    • show

      public void show(Context ctx)
      Specified by:
      show in interface Showable
      Overrides:
      show in class GraphObjectImpl
    • reload

      public void reload()
      Description copied from interface: GraphObject
      If the subgraph uses some modules defined in the project, reload forces the modules in the subgraph to be relinked after compilation
      Specified by:
      reload in interface GraphObject
      Overrides:
      reload in class GraphObjectImpl
    • clear

      public void clear()
      Description copied from interface: SubGraph
      removes all Nodes except the root
      Specified by:
      clear in interface SubGraph
    • write

      public void write()
      Description copied from interface: GraphObject
      Override the file subgraph in the project with its current version. Required on subgraph created in RGG to be saved
      Specified by:
      write in interface GraphObject
      Overrides:
      write in class GraphObjectImpl
    • apply

      public void apply(String cmd)
      Description copied from interface: SubGraph
      Apply a RGG function on the subgraph
      Specified by:
      apply in interface SubGraph
      Parameters:
      cmd - : name of the function
    • applyXL

      public void applyXL(String qu)
      Description copied from interface: SubGraph
      Apply an XL Query on the SubGraph
      Specified by:
      applyXL in interface SubGraph
      Parameters:
      qu - : the XL query
    • toMesh

      public Node toMesh()
      Description copied from interface: SubGraph
      creates a rendered Mesh of the subGraph
      Specified by:
      toMesh in interface SubGraph
      Returns:
      the Node holding teh mesh
    • toInstance

      public Node toInstance()
      Description copied from interface: SubGraph
      creates a Node holding a instanciation of teh SubGraph
      Specified by:
      toInstance in interface SubGraph
      Returns:
      the Node
    • handleSaveEvent

      public void handleSaveEvent()
      Description copied from interface: SubGraph
      function triggered by the saving of the project
      Specified by:
      handleSaveEvent in interface SubGraph
    • setAutoRecreate

      public void setAutoRecreate(boolean b)
      Description copied from interface: SubGraph
      defines if the subgraph is automatically recreated if the model is saved
      Specified by:
      setAutoRecreate in interface SubGraph
      Parameters:
      b - sets if recreated or not
    • getInitalProducer

      public Object getInitalProducer()
      Description copied from interface: SubGraph
      create a new producer to initialize the Graph
      Specified by:
      getInitalProducer in interface SubGraph
      Returns:
    • setCurrent

      public void setCurrent()
      Description copied from interface: SubGraph
      set this graph to be the currently used one
      Specified by:
      setCurrent in interface SubGraph
    • releaseCurrent

      public void releaseCurrent()
      Description copied from interface: SubGraph
      set the project graph to be teh current one
      Specified by:
      releaseCurrent in interface SubGraph
    • save

      public static void save(Registry r)