Class BaseDrawable

java.lang.Object
arc.scene.style.BaseDrawable
All Implemented Interfaces:
Drawable
Direct Known Subclasses:
NinePatchDrawable, TextureRegionDrawable

public class BaseDrawable extends Object implements Drawable
Drawable that stores the size information but doesn't draw anything.
  • Constructor Details

    • BaseDrawable

      public BaseDrawable()
    • BaseDrawable

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

    • draw

      public void draw(float x, float y, float width, float height)
      Description copied from interface: Drawable
      Draws this drawable at the specified bounds.
      Specified by:
      draw in interface Drawable
    • draw

      public void draw(float x, float y, float originX, float originY, float width, float height, float scaleX, float scaleY, float rotation)
      Specified by:
      draw in interface Drawable
    • getLeftWidth

      public float getLeftWidth()
      Specified by:
      getLeftWidth in interface Drawable
    • setLeftWidth

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

      public float getRightWidth()
      Specified by:
      getRightWidth in interface Drawable
    • setRightWidth

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

      public float getTopHeight()
      Specified by:
      getTopHeight in interface Drawable
    • setTopHeight

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

      public float getBottomHeight()
      Specified by:
      getBottomHeight in interface Drawable
    • setBottomHeight

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

      public float getMinWidth()
      Specified by:
      getMinWidth in interface Drawable
    • setMinWidth

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

      public float getMinHeight()
      Specified by:
      getMinHeight in interface Drawable
    • setMinHeight

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

      public String getName()
    • setName

      public void setName(String name)
    • toString

      public String toString()
      Overrides:
      toString in class Object