Class ImageButton

    • Method Detail

      • newImage

        protected Image newImage()
      • getImageDrawable

        @Null
        protected Drawable getImageDrawable()
        Returns the appropriate image drawable from the style based on the current button state.
      • updateImage

        protected void updateImage()
        Sets the image drawable based on the current button state. The default implementation sets the image drawable using getImageDrawable().
      • draw

        public void draw​(Batch batch,
                         float parentAlpha)
        Description copied from class: WidgetGroup
        If this method is overridden, the super method or WidgetGroup.validate() should be called to ensure the widget group is laid out.
        Overrides:
        draw in class Button
        parentAlpha - The parent alpha, to be multiplied with this actor's alpha, allowing the parent's alpha to affect all children.
      • getImage

        public Image getImage()
      • getImageCell

        public Cell getImageCell()
      • toString

        public java.lang.String toString()
        Description copied from class: Group
        Returns a description of the actor hierarchy, recursively.
        Overrides:
        toString in class Group