Interface EntitySidebar


  • public interface EntitySidebar
    A sidebar showing all current entities
    Version:
    1.0
    Author:
    Tobias Wältken
    • Method Detail

      • setSimulationTreeRootNode

        void setSimulationTreeRootNode​(SimulationTreeNode treeNode)
        Setter function to attach a SimulationTree to the entity sidebar.
        Parameters:
        treeNode - The root node of the simulation tree.
      • updateSimulationTree

        void updateSimulationTree()
        This function should be called if the simulation tree changes.
      • setEntityInspectorEntries

        void setEntityInspectorEntries​(EntityInspectorEntry[] entries)
        This function deletes all currently created ui elements and creates a new inspector
        Parameters:
        entries - The entries to create the inspector from
      • getSimulationTreeSelectedElement

        SimulationTreeNode getSimulationTreeSelectedElement()
        Get the selected element of the simulation tree.
        Returns:
        the currently selected SimulationTreeNode
      • setSimulationTreeSelectedElement

        void setSimulationTreeSelectedElement​(SimulationTreeNode node)
        Set the selected element of the simulation tree.
        Parameters:
        node - The SimulationTreeNode to select
      • enableSimulationTree

        void enableSimulationTree()
        Enable the simulation tree.
      • disbaleSimulationTree

        void disbaleSimulationTree()
        Disable the simulation tree.
      • setEntityInspectorName

        void setEntityInspectorName​(String name)
        Set the name of the entity inspector.
        Parameters:
        name - The name to set
      • getEntityInspectorName

        String getEntityInspectorName()
        Get the current name of the entity inspector.
        Returns:
        The name
      • enableEntityInspector

        void enableEntityInspector()
        Enable the entity inspector.
      • disableEntityInspector

        void disableEntityInspector()
        Disable the entity inspector.