|
||||||||||
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.swing.ControlDrawable org.colos.ejs.library.control.drawing2d.ControlElement2D org.colos.ejs.library.control.drawing2d.ControlSet2D
public abstract class ControlSet2D
Abstract superclass for display3d Elements (children of ControlElements3DParent)
Field Summary |
---|
Fields inherited from class org.colos.ejs.library.control.drawing2d.ControlElement2D |
---|
E2D_ADDED, NULL_COLOR, TO_RADIANS |
Fields inherited from class org.colos.ejs.library.control.swing.ControlDrawable |
---|
DRAWABLE_NAME, PARENT |
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 | |
---|---|
ControlSet2D()
|
Method Summary | |
---|---|
void |
addMenuEntries()
This is a place holder for elements to add menu entries to a simulation |
Element |
elementAt(int i)
|
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 |
interactionPerformed(InteractionEvent _event)
The method of a registered listener that will be called when an interaction takes place. |
void |
reset()
resets the element |
void |
setDefaultValue(int _index)
|
void |
setName(java.lang.String name)
|
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.drawing2d.ControlElement2D |
---|
createAffineTransform, decodeAffineTransform, getElement, getFullPositionSpot, getFullSizeSpot, getObject, getPosSpot, getPropertyCommonName, getSizeSpot, parseConstant |
Methods inherited from class org.colos.ejs.library.control.swing.ControlDrawable |
---|
destroy, getDrawable, getMenuNameEntry, getParent, replaceDrawable, setParent |
Methods inherited from class org.colos.ejs.library.control.ControlElement |
---|
acceptsChild, 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 ControlSet2D()
Method Detail |
---|
public java.lang.String getObjectClassname()
ControlElement
getObjectClassname
in class ControlElement2D
public Element elementAt(int i)
public void reset()
ControlElement
reset
in class ControlElement
public void initialize()
ControlElement
initialize
in class ControlElement
public void setName(java.lang.String name)
public java.util.List<java.lang.String> getPropertyList()
ControlElement
getPropertyList
in class ControlElement2D
public java.lang.String getPropertyInfo(java.lang.String _property)
ControlElement
getPropertyInfo
in class ControlElement2D
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 addMenuEntries()
ControlElement
addMenuEntries
in class ControlElement
public void setValue(int _index, Value _value)
ControlElement
setValue
in class ControlElement2D
public void setDefaultValue(int _index)
setDefaultValue
in class ControlElement2D
public java.lang.String getDefaultValueString(int _index)
getDefaultValueString
in class ControlElement2D
public Value getValue(int _index)
ControlElement
getValue
in class ControlElement2D
public void interactionPerformed(InteractionEvent _event)
InteractionListener
addInteractionListener
method.
interactionPerformed
in interface InteractionListener
interactionPerformed
in class ControlElement2D
_event
- InteractionEvent
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |