Class AbstractNodeControl<T>

java.lang.Object
com.jme3.scene.control.AbstractControl
com.simsilica.lemur.core.AbstractNodeControl<T>
All Implemented Interfaces:
Savable, Control, JmeCloneable, Cloneable
Direct Known Subclasses:
GuiControl

public abstract class AbstractNodeControl<T> extends AbstractControl
A default abstract implementation of a Control that will only allow attachment to a Node and provides a special getNode() method to subclasses.
  • Constructor Details Link icon

    • AbstractNodeControl Link icon

      public AbstractNodeControl()
  • Method Details Link icon

    • getNode Link icon

      protected Node getNode()
    • setSpatial Link icon

      public void setSpatial(Spatial s)
      Specified by:
      setSpatial in interface Control
      Overrides:
      setSpatial in class AbstractControl
      Parameters:
      s - the spatial to be controlled. This should not be called from user code.
    • attach Link icon

      protected abstract void attach()
    • detach Link icon

      protected abstract void detach()
    • controlUpdate Link icon

      protected void controlUpdate(float tpf)
      Description copied from class: AbstractControl
      To be implemented in subclass.
      Specified by:
      controlUpdate in class AbstractControl
      Parameters:
      tpf - time per frame (in seconds)
    • controlRender Link icon

      protected void controlRender(RenderManager rm, ViewPort vp)
      Description copied from class: AbstractControl
      To be implemented in subclass.
      Specified by:
      controlRender in class AbstractControl
      Parameters:
      rm - the RenderManager rendering the controlled Spatial (not null)
      vp - the ViewPort being rendered (not null)