Class BaseDrawable

    • Constructor Detail

      • BaseDrawable

        public BaseDrawable()
      • BaseDrawable

        public BaseDrawable​(Drawable drawable)
        Creates a new empty drawable with the same sizing information as the specified drawable.
    • Method Detail

      • draw

        public void draw​(Batch batch,
                         float x,
                         float y,
                         float width,
                         float height)
        Description copied from interface: Drawable
        Draws this drawable at the specified bounds. The drawable should be tinted with Batch.getColor(), possibly by mixing its own color.
        Specified by:
        draw in interface Drawable
      • setLeftWidth

        public void setLeftWidth​(float leftWidth)
        Specified by:
        setLeftWidth in interface Drawable
      • setRightWidth

        public void setRightWidth​(float rightWidth)
        Specified by:
        setRightWidth in interface Drawable
      • setTopHeight

        public void setTopHeight​(float topHeight)
        Specified by:
        setTopHeight in interface Drawable
      • setBottomHeight

        public void setBottomHeight​(float bottomHeight)
        Specified by:
        setBottomHeight in interface Drawable
      • setPadding

        public void setPadding​(float topHeight,
                               float leftWidth,
                               float bottomHeight,
                               float rightWidth)
      • setMinWidth

        public void setMinWidth​(float minWidth)
        Specified by:
        setMinWidth in interface Drawable
      • setMinHeight

        public void setMinHeight​(float minHeight)
        Specified by:
        setMinHeight in interface Drawable
      • setMinSize

        public void setMinSize​(float minWidth,
                               float minHeight)
      • getName

        @Null
        public java.lang.String getName()
      • setName

        public void setName​(@Null
                            java.lang.String name)
      • toString

        @Null
        public java.lang.String toString()
        Overrides:
        toString in class java.lang.Object