org.opensourcephysics.ejs.control.swing
Class ControlDrawablesParent

java.lang.Object
  extended by org.opensourcephysics.ejs.control.ControlElement
      extended by org.opensourcephysics.ejs.control.swing.ControlSwingElement
          extended by org.opensourcephysics.ejs.control.swing.ControlDrawablesParent
All Implemented Interfaces:
NeedsUpdate

public abstract class ControlDrawablesParent
extends ControlSwingElement
implements 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
ControlDrawablesParent(java.lang.Object _visual)
          Constructor ControlDrawablesParent
 
Method Summary
 void addToPreupdateList(NeedsPreUpdate _child)
           
 ControlDrawable getSelectedDrawable()
           
 void removeFromPreupdateList(NeedsPreUpdate _child)
           
 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
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

ControlDrawablesParent

public ControlDrawablesParent(java.lang.Object _visual)
Constructor ControlDrawablesParent

Parameters:
_visual -
Method Detail

update

public void update()
Specified by:
update in interface NeedsUpdate

addToPreupdateList

public void addToPreupdateList(NeedsPreUpdate _child)

removeFromPreupdateList

public void removeFromPreupdateList(NeedsPreUpdate _child)

getSelectedDrawable

public ControlDrawable getSelectedDrawable()