public abstract class AddComponentAgent<E extends ModelComponent> extends FrameBasedEditingAgent implements SelectionListener, ComponentChangeListener, ValueChangeListener
Constructor and Description |
---|
AddComponentAgent(Main main,
ComponentList<?> container,
CompositeComponent ancestor) |
Modifier and Type | Method and Description |
---|---|
void |
actionPerformed(java.awt.event.ActionEvent e) |
void |
addBasicProps(java.lang.Class type,
java.lang.String[] basicProperties) |
void |
addComponentType(java.lang.Class type) |
void |
addComponentType(java.lang.Class type,
java.lang.String[] excludedProperties) |
void |
componentChanged(ComponentChangeEvent e) |
void |
dispose()
Disconnects the agent from the ArtiSynth infrastructure and disposes of
its resources.
|
void |
handleLocationEvent(GLViewer viewer,
MouseRayEvent rayEvent)
Called after a left mouse press in one of the viewers when a location
listener is installed.
|
void |
selectionChanged(SelectionEvent e) |
void |
setComponentType(java.lang.Class type)
Called whenever the specific class type of the components being added by
this agent is changed.
|
void |
show(java.awt.Rectangle popupBounds)
Connects the agent to the ArtiSynth infrastructure and makes it visible.
|
void |
valueChange(ValueChangeEvent e) |
addWidget, getDisplay, isVisible
getCenter, intersectClipPlane, intersectViewPlane
public AddComponentAgent(Main main, ComponentList<?> container, CompositeComponent ancestor)
public void show(java.awt.Rectangle popupBounds)
show
in class FrameBasedEditingAgent
popupBounds
- TODOpublic void dispose()
dispose
in interface Disposable
dispose
in class FrameBasedEditingAgent
public void selectionChanged(SelectionEvent e)
selectionChanged
in interface SelectionListener
public void setComponentType(java.lang.Class type)
public void valueChange(ValueChangeEvent e)
valueChange
in interface ValueChangeListener
public void actionPerformed(java.awt.event.ActionEvent e)
actionPerformed
in interface java.awt.event.ActionListener
actionPerformed
in class FrameBasedEditingAgent
public void handleLocationEvent(GLViewer viewer, MouseRayEvent rayEvent)
public void componentChanged(ComponentChangeEvent e)
componentChanged
in interface ComponentChangeListener
componentChanged
in class FrameBasedEditingAgent
public void addComponentType(java.lang.Class type)
public void addComponentType(java.lang.Class type, java.lang.String[] excludedProperties)
public void addBasicProps(java.lang.Class type, java.lang.String[] basicProperties)