|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.colos.ejs.library.control.ControlElement org.colos.ejs.library.control.drawing3d.ControlElement3D org.colos.ejs.library.control.drawing3d.ControlTrail3D
public class ControlTrail3D
Abstract superclass for display3d Elements (children of ControlElements3DParent)
Field Summary |
---|
Fields inherited from class org.colos.ejs.library.control.drawing3d.ControlElement3D |
---|
EL3D_NAME, NULL_COLOR, PARENT, TO_RADIANS |
Fields inherited from class org.colos.ejs.library.control.ControlElement |
---|
ACTION, ACTION_ERROR, ACTION_SUCCESS, METHOD_FOR_VARIABLE, METHOD_TRIGGER, NAME, VARIABLE_CHANGED |
Constructor Summary | |
---|---|
ControlTrail3D()
|
Method Summary | |
---|---|
void |
addMenuEntries()
This is a place holder for elements to add menu entries to a simulation |
java.lang.String |
getDefaultValueString(int _index)
|
java.lang.String |
getObjectClassname()
Returns the expected class of the object that the ControlElement wrapps. |
java.lang.String |
getPropertyInfo(java.lang.String _property)
Returns information about a given property. |
java.util.List<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 |
initialize()
initializes the element. |
void |
preupdate()
|
void |
reset()
resets the element |
void |
setDefaultValue(int _index)
|
ControlElement |
setProperty(java.lang.String _property,
java.lang.String _value)
Sets a property for this ControlElement . |
void |
setValue(int _index,
Value _value)
Sets the value of the registered variables. |
Methods inherited from class org.colos.ejs.library.control.drawing3d.ControlElement3D |
---|
acceptsChild, decodeResolution, destroy, getElement, getFullPositionSpot, getFullSizeSpot, getMenuNameEntry, getObject, getParent, getPosSpot, getPropertyCommonName, getSizeSpot, interactionPerformed, parseConstant, setParent, updatePanel |
Methods inherited from class org.colos.ejs.library.control.ControlElement |
---|
addAction, addAction, addAction, editorIsReading, flush, getComponent, getGroup, getObject, getProperty, getSimulation, getValue, getVisual, implementsProperty, indexOf, invokeActions, invokeActions, isActive, onExit, propertyIndex, propertyIsTypeOf, propertyType, removeAction, removeAction, replaceVisual, setActive, setFieldListValue, setFieldListValues, setGroup, setProperties, setProperty, setPropertyEditor, setVariableEditor, toString, toStringValue, variableChanged, variableChangedDoNotUpdate, variableExtraChanged, variablePropertiesClear, variablesChanged |
Methods inherited from class java.lang.Object |
---|
equals, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Constructor Detail |
---|
public ControlTrail3D()
Method Detail |
---|
public java.lang.String getObjectClassname()
ControlElement
getObjectClassname
in class ControlElement3D
public void reset()
ControlElement
reset
in class ControlElement
public void initialize()
ControlElement
initialize
in class ControlElement
public void preupdate()
preupdate
in interface NeedsPreUpdate
public void addMenuEntries()
ControlElement
addMenuEntries
in class ControlElement
public java.util.List<java.lang.String> getPropertyList()
ControlElement
getPropertyList
in class ControlElement3D
public java.lang.String getPropertyInfo(java.lang.String _property)
ControlElement
getPropertyInfo
in class ControlElement3D
public ControlElement setProperty(java.lang.String _property, java.lang.String _value)
ControlElement
ControlElement
. Implementing
classes are responsible of deciding (by declaring them in the
getPropertyList() method) what properties turn into visual
changes, or different behaviour, of the ControlElement.
However, every propery is accepted, even if it is not meaningful for a particular implementation of this interface. This can serve as a repository of information for future use.
Implementing classes should make sure that the following
requirements are met:
setProperty
in class ControlElement
setProperty
EjsControl
public void setValue(int _index, Value _value)
ControlElement
setValue
in class ControlElement3D
public void setDefaultValue(int _index)
setDefaultValue
in class ControlElement3D
public Value getValue(int _index)
ControlElement
getValue
in class ControlElement3D
public java.lang.String getDefaultValueString(int _index)
getDefaultValueString
in class ControlElement3D
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |