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, variablesChanged
public 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()
ControlElement
destroy
in class ControlElement
public java.util.ArrayList<java.lang.String> getPropertyList()
ControlElement
getPropertyList
in class ControlElement
public java.lang.String getPropertyInfo(java.lang.String _property)
ControlElement
getPropertyInfo
in class ControlElement
public void setValue(int _index, Value _value)
ControlElement
setValue
in class ControlElement
public void setDefaultValue(int _index)
setDefaultValue
in class ControlElement
public Value getValue(int _index)
ControlElement
getValue
in class ControlElement