|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opensourcephysics.ejs.control.ControlElement org.opensourcephysics.ejs.control.swing.ControlDrawable
public abstract class ControlDrawable
Abstract superclass for Drawables (children of ControlDrawableParent)
Field Summary | |
---|---|
protected ControlDrawablesParent |
myParent
|
static int |
NAME
|
static int |
PARENT
|
Fields inherited from class org.opensourcephysics.ejs.control.ControlElement |
---|
ACTION, isUnderEjs, METHOD_FOR_VARIABLE, METHOD_TRIGGER, myGroup, myObject, myPropertiesTable, VARIABLE_CHANGED |
Constructor Summary | |
---|---|
ControlDrawable(java.lang.Object _drawable)
Constructor and utilities |
Method Summary | |
---|---|
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. |
Methods inherited from class org.opensourcephysics.ejs.control.ControlElement |
---|
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 |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Field Detail |
---|
public static final int NAME
public static final int PARENT
protected ControlDrawablesParent myParent
Constructor Detail |
---|
public ControlDrawable(java.lang.Object _drawable)
_drawable
- Method Detail |
---|
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
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |