Class NIconButton

All Implemented Interfaces:
HasLocalTransform, CloneableSmartAsset, Collidable, Savable, JmeCloneable, Cloneable

public class NIconButton extends Button
  • Field Details

  • Constructor Details

    • NIconButton

      public NIconButton(String iconPath)
    • NIconButton

      public NIconButton(String iconPath, String elementId)
  • Method Details

    • setColor

      @StyleAttribute("color") public void setColor(ColorRGBA color)
      Overrides:
      setColor in class Button
    • setSVGIcon

      @StyleAttribute("svgIcon") @Deprecated public void setSVGIcon(String iconPath)
      Deprecated.
      causes deadlocks when compiling to teavm, use setSVGIconComponent ("svgIconComponent") instead
      Parameters:
      iconPath -
    • setSVGIconComponent

      @StyleAttribute("svgIconComponent") public void setSVGIconComponent(NSVGIcon icon)
    • setIconSize

      @StyleAttribute("iconSize") public void setIconSize(float iconSize)
    • clone

      public NIconButton clone()
      Description copied from interface: CloneableSmartAsset
      Creates a clone of the asset. Please see Object.clone() for more info on how this method should be implemented.
      Specified by:
      clone in interface CloneableSmartAsset
      Overrides:
      clone in class Spatial
      Returns:
      A clone of this Spatial, the scene graph in its entirety is cloned and can be altered independently of the original scene graph. Note that meshes of geometries are not cloned explicitly, they are shared if static, or specially cloned if animated.
      See Also: