org.colos.ejs.library.control.drawing2d
Class ControlGroup2D

java.lang.Object
  extended by org.colos.ejs.library.control.ControlElement
      extended by org.colos.ejs.library.control.swing.ControlDrawable
          extended by org.colos.ejs.library.control.drawing2d.ControlElement2D
              extended by org.colos.ejs.library.control.drawing2d.ControlGroup2D
All Implemented Interfaces:
ControlParentOfDrawables, NeedsPreUpdate, InteractionListener

public class ControlGroup2D
extends ControlElement2D
implements NeedsPreUpdate, ControlParentOfDrawables

A group 2d


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
ControlGroup2D()
           
 
Method Summary
 boolean acceptsChild(ControlElement _child)
          Whether this element can have children of the given type
 void addDrawable(Drawable _element)
           
 void addDrawableAtIndex(int _index, Drawable _element)
           
 void addToPreupdateList(NeedsPreUpdate _child)
           
 DrawingPanel getDrawingPanel()
           
 java.lang.String getObjectClassname()
          Returns the expected class of the object that the ControlElement wrapps.
 void preupdate()
           
 void removeDrawable(Drawable _element)
           
 void removeFromPreupdateList(NeedsPreUpdate _child)
           
 
Methods inherited from class org.colos.ejs.library.control.drawing2d.ControlElement2D
createAffineTransform, decodeAffineTransform, getDefaultValueString, getElement, getFullPositionSpot, getFullSizeSpot, getObject, getPosSpot, getPropertyCommonName, getPropertyInfo, getPropertyList, getSizeSpot, getValue, interactionPerformed, parseConstant, setDefaultValue, setValue
 
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
addAction, addAction, addAction, addMenuEntries, editorIsReading, flush, getComponent, getGroup, getObject, getProperty, getSimulation, getValue, getVisual, implementsProperty, indexOf, initialize, invokeActions, invokeActions, isActive, onExit, propertyIndex, propertyIsTypeOf, propertyType, removeAction, removeAction, replaceVisual, reset, setActive, setFieldListValue, setFieldListValues, setGroup, setProperties, setProperty, 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

ControlGroup2D

public ControlGroup2D()
Method Detail

getObjectClassname

public java.lang.String getObjectClassname()
Description copied from class: ControlElement
Returns the expected class of the object that the ControlElement wrapps. Not final because of special needs (see display3d.DrawingPanel3D, f.i.)

Specified by:
getObjectClassname in class ControlElement2D
Returns:
Object

acceptsChild

public boolean acceptsChild(ControlElement _child)
Description copied from class: ControlElement
Whether this element can have children of the given type

Overrides:
acceptsChild in class ControlElement
Parameters:
_child - ControlElement
Returns:
boolean

getDrawingPanel

public DrawingPanel getDrawingPanel()
Specified by:
getDrawingPanel in interface ControlParentOfDrawables

preupdate

public void preupdate()
Specified by:
preupdate in interface NeedsPreUpdate

addToPreupdateList

public void addToPreupdateList(NeedsPreUpdate _child)
Specified by:
addToPreupdateList in interface ControlParentOfDrawables

removeFromPreupdateList

public void removeFromPreupdateList(NeedsPreUpdate _child)
Specified by:
removeFromPreupdateList in interface ControlParentOfDrawables

addDrawable

public void addDrawable(Drawable _element)
Specified by:
addDrawable in interface ControlParentOfDrawables

addDrawableAtIndex

public void addDrawableAtIndex(int _index,
                               Drawable _element)
Specified by:
addDrawableAtIndex in interface ControlParentOfDrawables

removeDrawable

public void removeDrawable(Drawable _element)
Specified by:
removeDrawable in interface ControlParentOfDrawables