
com.onemillionworlds.tamarin.vrhands.functions.handmenu.MenuLeaf Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of tamarin Show documentation
Show all versions of tamarin Show documentation
A VR utilities library that extends the functionality in JMonkeyEngine
package com.onemillionworlds.tamarin.vrhands.functions.handmenu;
import com.jme3.scene.Spatial;
import java.util.function.Supplier;
/**
* A terminal leaf-node that actually contains items
* @param the type of objects that this menu contains
*/
public class MenuLeaf extends MenuItem {
private final T leafItem;
public MenuLeaf(Spatial optionGeometry, T leafItem) {
super(optionGeometry);
this.leafItem = leafItem;
}
public MenuLeaf(Supplier optionGeometry, T leafItem) {
super(optionGeometry);
this.leafItem = leafItem;
}
@Override
public String toString() {
return "MenuLeaf{" + leafItem + '}';
}
public T getLeafItem() {
return this.leafItem;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy