Interface EntitySidebar
-
public interface EntitySidebarA sidebar showing all current entities- Version:
- 1.0
- Author:
- Tobias Wältken
-
-
Method Summary
All Methods Instance Methods Abstract Methods Modifier and Type Method Description voiddisableEntityInspector()Disable the entity inspector.voiddisbaleSimulationTree()Disable the simulation tree.voidenableEntityInspector()Enable the entity inspector.voidenableSimulationTree()Enable the simulation tree.StringgetEntityInspectorName()Get the current name of the entity inspector.SimulationTreeNodegetSimulationTreeSelectedElement()Get the selected element of the simulation tree.voidsetEntityInspectorEntries(EntityInspectorEntry[] entries)This function deletes all currently created ui elements and creates a new inspectorvoidsetEntityInspectorName(String name)Set the name of the entity inspector.voidsetSimulationTreeRootNode(SimulationTreeNode treeNode)Setter function to attach a SimulationTree to the entity sidebar.voidsetSimulationTreeSelectedElement(SimulationTreeNode node)Set the selected element of the simulation tree.voidupdateSimulationTree()This function should be called if the simulation tree changes.
-
-
-
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.
-
-