Class ControlDrawablesParent
java.lang.Object
org.opensourcephysics.ejs.control.ControlElement
org.opensourcephysics.ejs.control.swing.ControlSwingElement
org.opensourcephysics.ejs.control.swing.ControlDrawablesParent
- All Implemented Interfaces:
NeedsUpdate
A container to hold Drawables.
The base class for ControlDrawingParent, ControlDrawingPanel3D and ControlPlottingPanel
Its visual MUST be a (subclass of) DrawingPanel
It is prepared for interaction, if the visual is interactive
-
Field Summary
Fields inherited from class org.opensourcephysics.ejs.control.swing.ControlSwingElement
ACTION_OFF, ACTION_ON, ACTION_PRESS, BACKGROUND, ENABLED, FONT, FOREGROUND, myVisual, NAME, PARENT, POSITION, SIZE, TOOLTIP, VISIBLE
Fields inherited from class org.opensourcephysics.ejs.control.ControlElement
ACTION, isUnderEjs, METHOD_FOR_VARIABLE, METHOD_TRIGGER, myGroup, myObject, myPropertiesTable, VARIABLE_CHANGED
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
addToPreupdateList
(NeedsPreUpdate _child) void
void
update()
Methods inherited from class org.opensourcephysics.ejs.control.swing.ControlSwingElement
createVisual, getComponent, getIcon, getPropertyInfo, getPropertyList, getValue, getVisual, parseConstant, setDefaultValue, setValue
Methods inherited from class org.opensourcephysics.ejs.control.ControlElement
addAction, addAction, addAction, destroy, getGroup, getObject, getProperty, getSimulation, implementsProperty, initialize, invokeActions, invokeActions, isActive, propertyIsTypeOf, propertyType, removeAction, removeAction, reset, setActive, setGroup, setProperties, setProperty, toString, variableChanged, variableChangedDoNotUpdate, variablePropertiesClear, variablesChanged
-
Constructor Details
-
ControlDrawablesParent
Constructor ControlDrawablesParent- Parameters:
_visual
-
-
-
Method Details
-
update
public void update()- Specified by:
update
in interfaceNeedsUpdate
-
addToPreupdateList
-
removeFromPreupdateList
-
getSelectedDrawable
-