Package com.prineside.tdi2.utils
Class AbstractDrawable
java.lang.Object
com.prineside.tdi2.utils.AbstractDrawable
- All Implemented Interfaces:
com.badlogic.gdx.scenes.scene2d.utils.Drawable
- Direct Known Subclasses:
Quad
,QuadRegion
public abstract class AbstractDrawable
extends Object
implements com.badlogic.gdx.scenes.scene2d.utils.Drawable
Similar to BaseDrawable but has a smaller memory footprint and does not have a name
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final int
static final int
static final int
static final int
static final int
static final int
protected float[]
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
float
float
float
protected void
void
setBottomHeight
(float bottomHeight) void
setLeftWidth
(float leftWidth) void
setMinHeight
(float minHeight) void
setMinWidth
(float minWidth) void
setRightWidth
(float rightWidth) void
setTopHeight
(float topHeight) Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
Methods inherited from interface com.badlogic.gdx.scenes.scene2d.utils.Drawable
draw
-
Field Details
-
DRAWABLE_PARAM_LEFT_WIDTH
public static final int DRAWABLE_PARAM_LEFT_WIDTH- See Also:
-
DRAWABLE_PARAM_RIGHT_WIDTH
public static final int DRAWABLE_PARAM_RIGHT_WIDTH- See Also:
-
DRAWABLE_PARAM_TOP_HEIGHT
public static final int DRAWABLE_PARAM_TOP_HEIGHT- See Also:
-
DRAWABLE_PARAM_BOTTOM_HEIGHT
public static final int DRAWABLE_PARAM_BOTTOM_HEIGHT- See Also:
-
DRAWABLE_PARAM_MIN_WIDTH
public static final int DRAWABLE_PARAM_MIN_WIDTH- See Also:
-
DRAWABLE_PARAM_MIN_HEIGHT
public static final int DRAWABLE_PARAM_MIN_HEIGHT- See Also:
-
drawableParams
protected float[] drawableParams
-
-
Constructor Details
-
AbstractDrawable
public AbstractDrawable()
-
-
Method Details
-
initializeDrawableParams
protected void initializeDrawableParams() -
getLeftWidth
public float getLeftWidth()- Specified by:
getLeftWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
setLeftWidth
public void setLeftWidth(float leftWidth) - Specified by:
setLeftWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
getRightWidth
public float getRightWidth()- Specified by:
getRightWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
setRightWidth
public void setRightWidth(float rightWidth) - Specified by:
setRightWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
getTopHeight
public float getTopHeight()- Specified by:
getTopHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
setTopHeight
public void setTopHeight(float topHeight) - Specified by:
setTopHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
getBottomHeight
public float getBottomHeight()- Specified by:
getBottomHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
setBottomHeight
public void setBottomHeight(float bottomHeight) - Specified by:
setBottomHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
getMinWidth
public float getMinWidth()- Specified by:
getMinWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
setMinWidth
public void setMinWidth(float minWidth) - Specified by:
setMinWidth
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
getMinHeight
public float getMinHeight()- Specified by:
getMinHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-
setMinHeight
public void setMinHeight(float minHeight) - Specified by:
setMinHeight
in interfacecom.badlogic.gdx.scenes.scene2d.utils.Drawable
-