artisynth.core.gui.editorManager
Class MuscleFibreAgent

java.lang.Object
  extended by artisynth.core.gui.editorManager.EditingAgent
      extended by artisynth.core.gui.editorManager.FrameBasedEditingAgent
          extended by artisynth.core.gui.editorManager.AddComponentAgent<C>
              extended by artisynth.core.gui.editorManager.AxialSpringAgent<Muscle>
                  extended by artisynth.core.gui.editorManager.MuscleFibreAgent
All Implemented Interfaces:
SelectionListener, ComponentChangeListener, java.awt.event.ActionListener, java.util.EventListener, Disposable, ValueChangeListener

public class MuscleFibreAgent
extends AxialSpringAgent<Muscle>

Responsible for adding Muscles to a Model.


Constructor Summary
MuscleFibreAgent(Main main, MuscleBundle bundle, CompositeComponent ancestor)
           
 
Method Summary
 void dispose()
          Disconnects the agent from the ArtiSynth infrastructure and disposes of its resources.
 void setInitializeBundle(ComponentList<MuscleBundle> bundleList)
          Used to indicate that the muscle bundle was newly created and this agent should provide widgets to set its name and render properties.
 
Methods inherited from class artisynth.core.gui.editorManager.AxialSpringAgent
actionPerformed, getContinuousAdd, selectionChanged, setContinuousAdd, setPoints
 
Methods inherited from class artisynth.core.gui.editorManager.AddComponentAgent
addBasicProps, addComponentType, addComponentType, componentChanged, handleLocationEvent, setComponentType, show, valueChange
 
Methods inherited from class artisynth.core.gui.editorManager.FrameBasedEditingAgent
addWidget, isVisible
 
Methods inherited from class artisynth.core.gui.editorManager.EditingAgent
getCenter, intersectClipPlane, intersectViewPlane
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

MuscleFibreAgent

public MuscleFibreAgent(Main main,
                        MuscleBundle bundle,
                        CompositeComponent ancestor)
Method Detail

setInitializeBundle

public void setInitializeBundle(ComponentList<MuscleBundle> bundleList)
Used to indicate that the muscle bundle was newly created and this agent should provide widgets to set its name and render properties. bundleList should be the component list to which the bundle was added. A null bundleList will disable bundle initialization. Should be called before show() in order to have any effect.


dispose

public void dispose()
Description copied from class: AddComponentAgent
Disconnects the agent from the ArtiSynth infrastructure and disposes of its resources.

Specified by:
dispose in interface Disposable
Overrides:
dispose in class AddComponentAgent<Muscle>