Package com.prineside.tdi2.utils
Class AbstractDrawable
java.lang.Object
com.prineside.tdi2.utils.AbstractDrawable
- All Implemented Interfaces:
Drawable
- Direct Known Subclasses:
Quad
,QuadRegion
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
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionfloat
float
float
float
float
float
void
setBottomHeight
(float bottomHeight) void
setLeftWidth
(float leftWidth) void
setMinHeight
(float minHeight) void
setMinWidth
(float minWidth) void
setRightWidth
(float rightWidth) void
setTopHeight
(float topHeight)
-
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:
-
-
Constructor Details
-
AbstractDrawable
public AbstractDrawable()
-
-
Method Details
-
getLeftWidth
public float getLeftWidth()- Specified by:
getLeftWidth
in interfaceDrawable
-
setLeftWidth
public void setLeftWidth(float leftWidth) - Specified by:
setLeftWidth
in interfaceDrawable
-
getRightWidth
public float getRightWidth()- Specified by:
getRightWidth
in interfaceDrawable
-
setRightWidth
public void setRightWidth(float rightWidth) - Specified by:
setRightWidth
in interfaceDrawable
-
getTopHeight
public float getTopHeight()- Specified by:
getTopHeight
in interfaceDrawable
-
setTopHeight
public void setTopHeight(float topHeight) - Specified by:
setTopHeight
in interfaceDrawable
-
getBottomHeight
public float getBottomHeight()- Specified by:
getBottomHeight
in interfaceDrawable
-
setBottomHeight
public void setBottomHeight(float bottomHeight) - Specified by:
setBottomHeight
in interfaceDrawable
-
getMinWidth
public float getMinWidth()- Specified by:
getMinWidth
in interfaceDrawable
-
setMinWidth
public void setMinWidth(float minWidth) - Specified by:
setMinWidth
in interfaceDrawable
-
getMinHeight
public float getMinHeight()- Specified by:
getMinHeight
in interfaceDrawable
-
setMinHeight
public void setMinHeight(float minHeight) - Specified by:
setMinHeight
in interfaceDrawable
-