public abstract class ControlDrawable extends ControlElement
| Modifier and Type | Field | Description |
|---|---|---|
protected ControlDrawablesParent |
myParent |
|
static int |
NAME |
|
static int |
PARENT |
ACTION, isUnderEjs, METHOD_FOR_VARIABLE, METHOD_TRIGGER, myGroup, myObject, myPropertiesTable, VARIABLE_CHANGED| Constructor | Description |
|---|---|
ControlDrawable(java.lang.Object _drawable) |
Constructor and utilities
|
| Modifier and Type | Method | Description |
|---|---|---|
protected abstract Drawable |
createDrawable(java.lang.Object drawable) |
|
void |
destroy() |
Clears any trace of myself (specially in the group)
|
Drawable |
getDrawable() |
|
ControlDrawablesParent |
getParent() |
|
java.lang.String |
getPropertyInfo(java.lang.String _property) |
Returns information about a given property.
|
java.util.ArrayList<java.lang.String> |
getPropertyList() |
Returns the list of all properties that can be set for this
ControlElement.
|
Value |
getValue(int _index) |
Gets the value of any internal variable.
|
void |
setDefaultValue(int _index) |
|
void |
setDrawable(Drawable _dr) |
|
void |
setParent(ControlDrawablesParent _dp) |
|
void |
setValue(int _index,
Value _value) |
Sets the value of the registered variables.
|
addAction, addAction, addAction, getComponent, getGroup, getObject, getProperty, getSimulation, getVisual, implementsProperty, initialize, invokeActions, invokeActions, isActive, parseConstant, propertyIsTypeOf, propertyType, removeAction, removeAction, reset, setActive, setGroup, setProperties, setProperty, toString, variableChanged, variableChangedDoNotUpdate, variablePropertiesClear, variablesChangedpublic static final int NAME
public static final int PARENT
protected ControlDrawablesParent myParent
public ControlDrawable(java.lang.Object _drawable)
_drawable - protected abstract Drawable createDrawable(java.lang.Object drawable)
public final Drawable getDrawable()
public final void setDrawable(Drawable _dr)
public void setParent(ControlDrawablesParent _dp)
public final ControlDrawablesParent getParent()
public void destroy()
ControlElementdestroy in class ControlElementpublic java.util.ArrayList<java.lang.String> getPropertyList()
ControlElementgetPropertyList in class ControlElementpublic java.lang.String getPropertyInfo(java.lang.String _property)
ControlElementgetPropertyInfo in class ControlElementpublic void setValue(int _index,
Value _value)
ControlElementsetValue in class ControlElementpublic void setDefaultValue(int _index)
setDefaultValue in class ControlElementpublic Value getValue(int _index)
ControlElementgetValue in class ControlElement